/* GİRİŞ SİSTEMİ - KAYIT SİSTEMİ CSS */
/* Login/Registration Container */
.login-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 400px;
    margin: 60px auto;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.login-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* Form başlığı */
.login-container h2 {
    margin-bottom: 25px;
    color: #2b5cff;
    font-size: 1.8rem;
}

/* Input alanları */
.login-container input[type="text"],
.login-container input[type="email"],
.login-container input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    margin: 10px 0 20px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.login-container input:focus {
    border-color: #2b5cff;
    box-shadow: 0 0 5px rgba(43, 92, 255, 0.5);
    outline: none;
}

/* Giriş/Kayıt butonu */
.login-container button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(90deg, #2b5cff, #7ab1ff);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-container button:hover {
    filter: brightness(110%);
    transform: translateY(-2px);
}

/* Mesajlar */
.login-container .success-message {
    background: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.login-container .error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

/* Kayıt/Giriş linki */
.login-container .register-link {
    margin-top: 15px;
    display: block;
    color: #2b5cff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.login-container .register-link:hover {
    text-decoration: underline;
}

/* Responsive mobil uyumlu */
@media (max-width: 768px) {
    .login-container {
        margin: 30px 15px;
        padding: 30px 20px;
        max-width: 90%;
    }

    .login-container h2 {
        font-size: 1.6rem;
    }

    .login-container input[type="text"],
    .login-container input[type="email"],
    .login-container input[type="password"] {
        font-size: 15px;
        padding: 10px 12px;
    }

    .login-container button {
        font-size: 16px;
        padding: 10px;
    }

    .login-container .success-message,
    .login-container .error-message {
        font-size: 0.85rem;
        padding: 8px;
    }

    .login-container .register-link {
        font-size: 0.9rem;
    }
}

/* Genel Wrapper */
.forum-wrapper {
    max-width: 1000px;
    margin: 20px auto;      /* 50px → 20px (üst–alt boşluk azalır) */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 0 8px;         /* yan boşluk biraz küçüldü */
}

/* Her bölüm (üst kategori) */
.forum-section {
    background: #ffffff;
    border-radius: 6px;              /* 10px → 6px */
    margin-bottom: 12px;             /* 25px → 12px */
    box-shadow: 0 2px 8px rgba(0,0,0,0.06); /* daha hafif gölge */
    overflow: hidden;
    transition: transform 0.15s;
}
.forum-section:hover {
    transform: translateY(-2px);
}

/* Her satır (alt kategori) */
.forum-table .forum-row {
    display: grid;
    grid-template-columns: 36px 1fr; /* 50px → 36px */
    align-items: center;
    padding: 8px 14px;              /* 15px 25px → 8px 14px */
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: #333;
    transition: background 0.2s, transform 0.2s;
    border-left: 3px solid transparent;
}

/* Alt kategori başlığı */
.forum-title {
    font-size: 13px;   /* daha küçük */
    font-weight: 1000;
    line-height: 1.3;
}

/* Her satır (alt kategori) */
.forum-table .forum-row {
    display: grid;
    grid-template-columns: 50px 1fr;
    align-items: center;
    padding: 15px 25px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: #333;
    transition: background 0.2s, transform 0.2s;
    border-left: 4px solid transparent;
}

.forum-table .forum-row:hover {
    background: #f9f9f9;
    border-left: 4px solid #2b5cff;
    transform: translateX(3px);
}

/* Icon kısmı */
.forum-icon {
    font-size: 20px;
    text-align: center;
    color: #2b5cff;
}

.forum-title {
    font-weight: 400;
    font-size: 13px;
    padding-left: 5px;
    white-space: nowrap;
}

/* Alt kategori yok mesajı */
.forum-row .forum-title:empty {
    color: #777;
    font-style: italic;
}


/* Başlık */
.forum-section-header {
    font-size: 20px;        /* 32px → 20px */
    font-weight: 400;       /* daha okunaklı */
    margin-bottom: 10px;    /* 25px → 10px */
    color: #ffffff;
    background-color: #2b5cff;
    padding: 8px 14px;      /* 15px 20px → 8px 14px */
    border-radius: 6px;     /* 8px → 6px */
}

/* Post Card */
.forum-post {
    background: #ffffff;
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
    margin-bottom: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.forum-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Prefix Label */
.post-prefix {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ff7eb9, #ff758c);
    transition: background 0.4s ease;
}

.post-prefix:hover {
    background: linear-gradient(135deg, #ff758c, #ff7eb9);
}

/* İçerik */
.post-content {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 15px;
    display: block;       /* Flex/grid etkilenmesini engeller */
    width: 100%;          /* Container’ı doldur */
    overflow: visible;    /* Gizlemeyi kaldır */
    word-wrap: break-word; /* Çok uzun kelimelerde taşmayı engelle */
}

.post-content a {
    color: #2b5cff;
    text-decoration: none;
    transition: all 0.3s ease;
}
.post-content a:hover {
    color: #7ab1ff;
    text-decoration: underline;
}

/* Etiketler */
.post-tags {
    margin-top: 20px;
    background: none; /* Altında gri kutu olmasını engelle */
    padding: 0;       /* Gereksiz padding kaldır */
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-tags .tag {
    display: inline-block;
    background: linear-gradient(135deg, #7ab1ff, #2b5cff);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    margin-right: 8px;
    font-size: 13px;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.post-tags .tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}
/* Animasyonlar */
@keyframes fadeInTitle {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .forum-section-header {
        font-size: 26px;
    }
    .forum-post {
        padding: 20px;
    }
    .post-meta {
        flex-direction: column;
    }
}



/* Kategori başlığı */
.forum-category-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1c3b5a;
    margin-bottom: 25px;
}

/* Liste görünümü */
.forum-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Her satır kutu */
.forum-row-card {
    display: flex;
    flex-direction: row;   /* Masaüstü: yan yana */
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px 20px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
    text-decoration: none;
    color: inherit;
    word-break: break-word;
    flex-wrap: nowrap; /* Masaüstü için aynı satırda */
}

.forum-row-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

/* Post içeriğindeki tüm img'leri mobil uyumlu yap */
.forum-post img {
    max-width: 100%;   /* Konteyner genişliğini aşamasın */
    height: auto;      /* Oran bozulmasın */
    display: block;    /* alt satıra geçsin, taşmayı önler */
    margin: 10px 0;    /* biraz boşluk */
}

/* Optional: iframe gibi gömülü içerikler için de */
.forum-post iframe {
    max-width: 100%;
    height: auto;
}

/* Sol alan: prefix ve başlık aynı satırda */
.forum-row-left {
    display: flex;
    align-items: center; /* Prefix ve başlık yatay hizalanır */
    gap: 10px; /* Prefix ve başlık arasında boşluk */
    flex-wrap: wrap; /* Çok uzun başlıkta taşmayı engeller */
}

/* Prefix */
.forum-prefix {
    display: inline-block;
    padding: 4px 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    border-radius: 6px;
    text-transform: uppercase;
    white-space: normal;       /* Alt satıra geçebilir */
    flex-shrink: 0;            /* Kutuyu küçültme */
    max-width: 100%;           /* Kutuyu aşmasın */
}


/* Meta bilgiler */
.forum-meta {
    font-size: 0.85rem;
    color: #666;
    display: flex;
    gap: 15px;
}

/* Sağ alan (tarih) */
.forum-row-right {
    flex-shrink: 0;           /* Küçülmesini engeller */
    white-space: nowrap;       /* Sayı tek satırda */
    margin-left: 15px;
}

/* Hiç post yoksa */
.no-posts {
    font-size: 1rem;
    color: #999;
    text-align: center;
    padding: 40px 0;
}

/* Mobil uyumluluk */
@media (max-width: 768px) {
    /* Grid'i kaldır, flex kullan */
    .forum-table .forum-row {
        display: flex;
        flex-wrap: wrap;           /* Taşarsa alt satıra geçsin */
        align-items: flex-start;   /* Yatayda hizalama */
        gap: 10px;                 /* Prefix ve başlık arasında boşluk */
        padding: 12px 15px;
    }

    /* Başlık stilini yeniden ayarla */
    .forum-title {
        padding-left: 0;
        font-size: 0.95rem;
        white-space: normal;       /* Alt satıra geçsin */
        word-wrap: break-word;     /* Uzun kelimeleri kesmesin */
    }

    /* Prefix kutusu alt satıra geçebilir */
    .forum-prefix {
        max-width: 100%;
        white-space: normal;       /* Alt satıra geçsin */
    }

    /* Sağdaki "view sayısı" alanı */
    .forum-row-right {
        margin-left: 0;
        margin-top: 8px;           /* Prefix + başlık alt satıra geçince biraz boşluk */
    }

    /* Kutu genişliğini tam aç */
    .forum-row-left {
        max-width: 100%;        /* Mobilde kutu genişliği %100 */
    }
}

/* ANA KAPSAYICI */
.topic-list {
    max-width: 1000px;
    margin: 30px auto;
    border-radius: 6px;
    overflow: hidden;
    font-size: 14px;
    color: #e5f2ff;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.06);

    /* yumuşak giriş */
    animation: fadeSlideIn 0.5s ease;
}

/* HEADER */
.topic-list-header {
    display: grid;
    grid-template-columns: 1fr 160px 90px 120px;
    background: linear-gradient(90deg, #2b5cff, #7ab1ff);
    padding: 12px 16px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.3px;
}

/* SATIR */
.topic-row {
    display: grid;
    grid-template-columns: 1fr 160px 90px 120px;
    padding: 12px 16px;
    align-items: center;
    background: #ffffff;
    border-top: 1px solid rgba(0,0,0,0.04);

    /* animasyon */
    transition:
        background 0.25s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

/* HOVER */
.topic-row:hover {
    background: #f5f8ff;
    transform: translateY(-1px);
    box-shadow: inset 0 0 0 9999px rgba(43,92,255,0.03);
}

/* BAŞLIK */
.col-title a {
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.col-title a:hover {
    color: #2b5cff;
    text-decoration: underline;
}

/* META */
.topic-meta {
    font-size: 12px;
    color: #4b4b4b;
    margin-top: 3px;
    opacity: 0.85;
}

/* DİĞER KOLONLAR */
.col-category,
.col-replies,
.col-views {
    text-align: center;
    color: #000000;
    font-size: 13px;
    transition: color 0.2s ease;
}

.col2-category,
.col2-replies,
.col2-views {
    text-align: center;
    color: #ffffff;
}

/* HOVER'DA HAFİF VURGU */
.topic-row:hover .col-category,
.topic-row:hover .col-replies,
.topic-row:hover .col-views {
    color: #2b5cff;
}

/* YUMUŞAK GİRİŞ ANİMASYONU */
@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (max-width: 768px) {

    .topic-list {
        max-width: 100%;
        margin: 20px 10px;
        font-size: 13px;
    }

    /* Header'ı gizle */
    .topic-list-header {
        display: none;
    }

    .topic-row {
        grid-template-columns: 1fr;
        row-gap: 8px;
        padding: 14px;
    }

    .col-title {
        font-size: 15px;
    }

    .topic-meta {
        font-size: 12px;
    }

    /* Alt bilgiler */
    .col-category,
    .col-replies,
    .col-views {
        text-align: left;
        font-size: 12px;
        color: #000000;
    }

    .col-category::before {
        content: "📂 ";
    }

    .col-replies::before {
        content: "🏷 ";
    }

    .col-views::before {
        content: "👁 ";
    }
}

/* İlk 5 dışındakiler gizli */
.topic-row {
    display: none;
}

.topic-row.visible {
    display: grid;
}

/* Daha fazla göster */
.load-more-wrapper {
    text-align: center;
    padding: 16px;
    background: #ffffff;
}

#loadMoreTopics {
    background: linear-gradient(90deg, #2b5cff, #7ab1ff);
    color: #fff;
    border: none;
    padding: 10px 22px;
    font-size: 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
}

#loadMoreTopics:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
    font-size: 14px;
    cursor: pointer;
}

.remember-me input {
    cursor: pointer;
}

.post-date {
    font-size: 12px;
    color: #8fa7c3;
    margin-left: auto; /* ⬅️ asıl olay bu */
    white-space: nowrap;
}

/* Wrapper */
.stats-wrapper {
    display: flex;
    flex-wrap: wrap;          /* Mobilde alt alta geçmesi için */
    gap: 20px;
    margin: 25px 0 40px;
    justify-content: center;
}

/* Kart (yatay) */
.stat-card {
    display: flex;            /* yatay flex */
    align-items: center;
    gap: 15px;                /* ikon ile yazı arası boşluk */
    background: linear-gradient(135deg, #2b5cff, #7ab1ff);
    border-radius: 16px;
    padding: 15px 25px;
    min-width: 250px;
    max-width: 350px;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    cursor: default;
}

/* Hover efekti */
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.35);
    background: linear-gradient(135deg, #3c6aff, #9bc7ff);
}

/* İkon */
.stat-icon i {
    font-size: 36px;
    color: #fff;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Hover’da ikon hareketi */
.stat-card:hover .stat-icon i {
    transform: scale(1.2) rotate(10deg);
    color: #fffa;
}

/* Metin kısmı (rakam + label) */
.stat-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

.breadcrumb {
    background: linear-gradient(135deg, rgba(43,92,255,0.08), rgba(122,177,255,0.12));
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 13px;
    color: #1f2937;
    margin-bottom: 15px;
}

.breadcrumb a {
    color: #2b5cff;
    font-weight: 500;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #111827;
    font-weight: 600;
}
.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 10px;
    margin-bottom: 16px;

    background: linear-gradient(135deg, rgba(43,92,255,0.06), rgba(122,177,255,0.10));
    backdrop-filter: blur(4px);
}

.post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #1f2937;
}

.post-category {
    background: linear-gradient(135deg, #2b5cff, #7ab1ff);
    color: #fff;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(43,92,255,0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-category:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(43,92,255,0.35);
}

.logo a {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-decoration: none;

    background: linear-gradient(135deg, #f5f5f5ff, #b7d3faff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    transition: opacity 0.2s ease;
}

.logo a:hover {
    opacity: 0.85;
}


@media (max-width: 768px) {
    .logo a {
        font-size: 20px;
    }
}

/* Mobil uyumluluk */
@media (max-width: 600px) {
    .stat-card {
        flex-direction: row;      /* hala yatay kalabilir */
        min-width: 90%;
        max-width: 90%;
        padding: 12px 18px;
    }

    .stat-number {
        font-size: 24px;
    }

    .stat-icon i {
        font-size: 30px;
    }

    .stat-text {
        align-items: flex-start;
    }
}

/* ================= PAGINATION ================= */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 30px 0 40px;
    flex-wrap: wrap;
}

.pagination a {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 14px;
    font-weight: 500;
    text-decoration: none;

    color: #444;
    background: #f3f3f3;
    border-radius: 6px;
    border: 1px solid #e0e0e0;

    transition: all 0.2s ease;
}

.pagination a:hover {
    background: #e9e9e9;
    color: #000;
}

/* AKTİF SAYFA */
.pagination a.active {
    background: #2c7be5;
    color: #fff;
    border-color: #2c7be5;
    cursor: default;
    pointer-events: none;
}
