.forum-page-wrapper {
    min-height: 100vh;
    background-color: #0d0d1a;
    color: #dcdcdc;
    position: relative;
    overflow: hidden;
    padding: 40px 0;
}
.animated-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.grid-overlay {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}
.forum-page-wrapper .container {
    position: relative;
    z-index: 10;
}

/* Sadece masaüstü cihazlarda (768px ve üzeri) animasyonları etkinleştir */
@media (min-width: 768px) {
    .blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.15; animation: pulse 10s infinite alternate; }
    .blob1 { top: 5%; left: 10%; width: 300px; height: 300px; background-color: #8A2BE2; animation-delay: 0s; }
    .blob2 { bottom: 5%; right: 10%; width: 400px; height: 400px; background-color: #4682B4; animation-delay: 2s; }
    .blob3 { top: 50%; left: 50%; transform: translate(-50%, -50%); width: 500px; height: 500px; background-color: #E94560; animation-delay: 4s; }

    @keyframes pulse {
        0% { transform: scale(0.8); }
        100% { transform: scale(1.2); }
    }
}



.hub-fade-in {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.header-section { margin-bottom: 48px; }
.header-badge {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 24px;
    padding: 8px 16px; background-color: rgba(138, 43, 226, 0.1);
    border: 1px solid rgba(138, 43, 226, 0.2); border-radius: 9999px;
    color: #c084fc; font-size: 0.9rem;
}
.main-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 700; margin-bottom: 24px;
    background-image: linear-gradient(to right, #a78bfa, #f472b6, #60a5fa);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    padding-bottom: 10px;
}
.subtitle {
    font-size: 1.25rem; color: #cbd5e1; max-width: 600px; margin: 0 auto 32px;
}
.btn-primary-gradient {
    background-image: linear-gradient(to right, #8b5cf6, #ec4899);
    border: none; color: white; font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
    color: white;
}

.forum-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
}

.forum-card {
    background-color: rgba(22, 33, 62, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    text-decoration: none;
    color: #dcdcdc;
    position: relative;
    overflow: hidden; /* İçerideki katmanların (overlay) sivri köşelerini gizler */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
}
.forum-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.card-border-glow {
    position: absolute; inset: 0; border-radius: 16px;
    border: 2px solid transparent; transition: border-color 0.4s ease;
    pointer-events: none;
}
.forum-card:hover .card-border-glow {
    border-color: rgba(139, 92, 246, 0.3);
}
.card-gradient-overlay {
    position: absolute; inset: 0; opacity: 0;
    transition: opacity 0.4s ease;
    background-image: linear-gradient(to right, rgba(168, 85, 247, 0.1), rgba(236, 72, 153, 0.1));
}
.forum-card:hover .card-gradient-overlay { opacity: 1; }

.card-content { position: relative; z-index: 1; }

.forum-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.forum-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: #94a3b8;
}

.forum-icon {
    font-size: 2rem;
    color: #a78bfa;
    flex-shrink: 0;
}

.forum-info {
    flex-grow: 1;
    /* Flex item'ın içeriğiyle birlikte sonsuza kadar büyümesini engeller, taşma kurallarının çalışmasını sağlar. */
    min-width: 0;
}

.forum-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e0e0ff;
    margin: 0 0 0.25rem 0;
    white-space: nowrap; /* Metni tek satırda tut */
    overflow: hidden; /* Taşan kısmı gizle */
    text-overflow: ellipsis; /* Taşan kısma üç nokta ekle */
}

.forum-description {
    font-size: 0.9rem;
    color: #8080a0;
    margin: 0;
    white-space: nowrap; /* Metni tek satırda tut */
    overflow: hidden; /* Taşan kısmı gizle */
    text-overflow: ellipsis; /* Taşan kısma üç nokta ekle */
}

.forum-stats {
    display: flex;
    gap: 1rem;
}

.stat-item, .forum-last-activity {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.breadcrumb a { color: #a0a0c0; text-decoration: none; }
.breadcrumb-item.active {
    color: #e0e0ff;
    font-weight: 500;
}

.topic-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.topic-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: #1a1a25;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 1px solid #2a2a3a;
}
.topic-info {
    flex-grow: 1;
}
.topic-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: #e0e0ff;
    text-decoration: none;
    display: block;
}
.topic-title:hover {
    color: #ff6b6b;
}
.topic-author {
    font-size: 0.85rem;
    color: #8080a0;
}
.topic-author a {
    color: #a0a0c0;
    text-decoration: none;
}
.topic-author a:hover {
    text-decoration: underline;
}
.topic-stats, .topic-last-activity {
    text-align: center;
    flex-shrink: 0;
    width: 100px;
}
.topic-list-header-title {
    color: #e0e0ff;
    word-break: break-word; /* Uzun kelimelerin alt satıra inmesini sağlar */
    hyphens: auto; /* Tarayıcı destekliyorsa heceleme yapar */
}


.topic-main-title {
    color: #e0e0ff;
    margin-bottom: 2rem;
}
.post-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.post-card {
    display: flex;
    gap: 1.5rem;
    background-color: #1a1a25;
    border-radius: 8px;
    border: 1px solid #2a2a3a;
}
.post-author-info {
    flex-shrink: 0;
    width: 150px;
    background-color: #161620;
    padding: 1.5rem;
    text-align: center;
    border-radius: 8px 0 0 8px;
}
.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.5rem;
}
.author-username {
    display: block;
    font-weight: 600;
    color: #e0e0ff;
    text-decoration: none;
}
.author-title {
    font-size: 0.8rem;
    color: #8080a0;
}

.author-topic-owner {
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    background-color: #8b5cf6;
    padding: 3px 8px;
    border-radius: 5px;
    margin-top: 5px;
    display: inline-block;
}
.post-content {
    flex-grow: 1;
    padding: 1.5rem;
    min-width: 0; /* Flexbox'ta metin taşmasını önlemek için */
}
.post-meta {
    font-size: 0.85rem;
    color: #8080a0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #2a2a3a;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}
.btn-delete-post {
    background: none;
    border: none;
    color: #8080a0;
    font-size: 0.8rem;
    cursor: pointer;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}
.btn-delete-post:hover {
    color: #ff6b6b;
}

.post-body {
    color: #d0d0e0;
    line-height: 1.7;
    overflow-wrap: break-word; /* Uzun kelimelerin/linklerin alt satıra inmesini sağlar */
}

.reply-form-container h3 {
    margin-bottom: 1rem;
}

.form-container-box {
    max-width: 600px;
    margin: 0 auto;
    background-color: #1a1a25;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #2a2a3a;
}
.form-title {
    color: #e0e0ff;
    font-weight: 600;
}
.form-subtitle {
    color: #a0a0c0;
    margin-bottom: 1.5rem;
}
.form-label {
    color: #c0c0e0;
    font-weight: 500;
}

.form-container-box .form-control,
.reply-form-container .form-control {
    background-color: #1c2938;
    border: 1px solid #343f51;
    color: #d1d5db;
    border-radius: 6px;
    padding: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: none;
}

.form-container-box .form-control:focus,
.reply-form-container .form-control:focus {
    outline: none;
    border-color: #3db4f2;
    box-shadow: 0 0 0 3px rgba(61, 180, 242, 0.2);
    background-color: #1c2938;
}

.form-container-box .form-control::placeholder,
.reply-form-container .form-control::placeholder {
    color: #a0b1c5;
    opacity: 1;
}

.icon-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0;
}

.icon-preview-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: #1c2938;
    border: 1px solid #343f51;
    border-right: none;
    border-radius: 6px 0 0 6px;
    font-size: 1.5rem;
    color: #a78bfa;
}

.icon-input-wrapper .form-control {
    border-radius: 0 6px 6px 0;
}

.icon-picker-wrapper {
    position: absolute;
    z-index: 100;
    background-color: #1c2938;
    border: 1px solid #343f51;
    border-radius: 8px;
    padding: 0.5rem;
    margin-top: 0.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.icon-picker-list {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
}

.icon-picker-item {
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    font-size: 1.5rem;
    color: #a0b1c5;
    transition: background-color 0.2s, color 0.2s;
}

.icon-picker-item:hover {
    background-color: #3db4f2;
    color: white;
}

.empty-forum-placeholder {
    background-color: #161620;
    border: 1px solid #2a2a3a;
    color: #a0b1c5;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

@media (max-width: 768px) {
    .topic-card {
        padding: 0.75rem 1rem;
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .topic-last-activity {
        display: none; /* Mobil cihazlarda son aktiviteyi gizle */
    }

    .topic-stats {
        width: auto;
        padding: 0.25rem 0.5rem;
        background-color: #2a2a3a;
        border-radius: 6px;
        font-size: 0.8rem;
        order: 3; /* İstatistikleri en sona taşı */
        margin-left: auto; /* Sağa yasla */
    }

    .topic-info {
        flex-basis: 100%; /* Başlık ve yazar bilgisinin tam genişlik kaplamasını sağla */
    }

    .post-card {
        gap: 0.75rem; /* Boşluğu azalt */
    }

    .post-author-info {
        width: 90px; /* Yazar bilgi kutusunu daralt */
        padding: 1rem 0.5rem;
        flex-shrink: 0;
    }

    .author-avatar {
        width: 50px; /* Avatarı küçült */
        height: 50px;
    }

    .author-username {
        font-size: 0.8rem; /* Kullanıcı adı fontunu küçült */
        word-break: break-all; /* Çok uzun isimlerin taşmasını engelle */
    }

    .post-content {
        padding: 1rem; /* İçerik alanının padding'ini azalt */
    }
}

.auth-prompt-box {
    background-color: #1a1a25;
    border: 1px solid #2a2a3a;
    color: #a0a0c0;
    border-radius: 8px;
}

.auth-prompt-link {
    color: #a78bfa;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}
.auth-prompt-link:hover {
    color: #c4a9fc;
    text-decoration: underline;
}
}