body.dark-body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #020617;
    color: #e5e7eb;
}

a {
    color: #38bdf8;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: #020617;
    border-bottom: 1px solid #1f2937;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 1000;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.navbar-logo {
    font-weight: 700;
    font-size: 18px;
    color: #f9fafb;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.navbar-right a {
    color: #e5e7eb;
    font-size: 14px;
}
.navbar-dropdown.open .dropdown-menu {
    display: block;
}
.navbar-dropdown {
    position: relative;
}

.dropdown-btn {
    background: #111827;
    color: #e5e7eb;
    border: 1px solid #374151;
    border-radius: 999px;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 13px;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: 120%;
    background: #020617;
    border: 1px solid #1f2937;
    border-radius: 10px;
    padding: 6px 0;
    min-width: 160px;
    display: none;   /* ÖNEMLİ */
    z-index: 1000;
}
.dropdown-menu a {
    display: block;
    padding: 6px 12px;
    font-size: 14px;
}

.dropdown-menu a:hover {
    background: #111827;
}
/* Hamburger menü */
/* Hamburger menü */
.navbar-burger {
    display: flex;
    flex-direction: column;   /* ALT ALTA 3 ÇİZGİ */
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 10px;
}

.navbar-burger span {
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background-color: #e5e7eb;
}



/* Sayfa içerik alanı */
.page-content {
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 80px; /* fixed navbar boşluğu */
    padding-bottom: 40px;
}

/* Grid */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.article-card,
.announcement-card {
    background: #020617;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #1f2937;
}

.article-card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 8px;
}

.article-meta,
.announcement-meta {
    font-size: 12px;
    color: #9ca3af;
}

.article-description {
    font-size: 14px;
    color: #d1d5db;
}

/* CKEditor içeriği için ufak ayar */
.article-body,
.announcement-body {
    margin-top: 16px;
    line-height: 1.7;
    font-size: 15px;
}

/* Navbar search */
.navbar-search {
    position: relative;
}

.navbar-search input {
    background: #020617;
    border: 1px solid #374151;
    border-radius: 999px;
    padding: 6px 12px;
    color: #f9fafb;
    min-width: 260px;
    font-size: 13px;
}

.navbar-search input::placeholder {
    color: #6b7280;
}

.search-suggestions {
    position: absolute;
    top: 115%;
    left: 0;
    right: 0;
    background: #020617;
    border: 1px solid #1f2937;
    border-radius: 10px;
    max-height: 260px;
    overflow-y: auto;
    display: none;
}

.search-suggestions.visible {
    display: block;
}

.search-suggestions div {
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
}

.search-suggestions div:hover {
    background: #111827;
}

/* Basit form stilleri */
form input,
form select,
form button,
button {
    background: #020617;
    border: 1px solid #374151;
    border-radius: 8px;
    color: #e5e7eb;
    padding: 6px 10px;
    font-size: 13px;
}

form button,
button {
    cursor: pointer;
}

form button:hover,
button:hover {
    border-color: #38bdf8;
}


.forum-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.btn-primary {
    background: #38bdf8;
    border: none;
    color: #020617;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary:hover {
    filter: brightness(1.1);
}

.forum-question-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.forum-question-item {
    border-bottom: 1px solid #1f2937;
    padding: 12px 0;
}

.forum-question-item h2 {
    margin: 0 0 4px;
    font-size: 16px;
}

.forum-question-meta {
    font-size: 12px;
    color: #9ca3af;
}

.forum-related-article {
    color: #eab308;
}

.forum-question-detail {
    margin-bottom: 24px;
}

.forum-question-body {
    margin-top: 8px;
    line-height: 1.7;
}

.forum-answers {
    margin-top: 24px;
}

.forum-answer-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.forum-answer-item {
    border: 1px solid #1f2937;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 10px;
    background: #020617;
}

.forum-answer-meta {
    margin-top: 8px;
    font-size: 12px;
    color: #9ca3af;
}

.forum-admin-badge {
    color: #f97373;
    font-weight: 700;
    margin-left: 4px;
}

.forum-form .form-field {
    margin-bottom: 12px;
}

.forum-info {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 12px;
}

.articles-filters {
    margin-top: 2rem;     /* başlıktan sonra nefes */
    margin-bottom: 2.5rem; /* filtre ile kartlar arasını aç */
}

.articles-list {
    margin-top: 0.5rem;
}

.search-wrapper {
    position: relative;
    max-width: 320px;
    width: 100%;
}

/* Ortak arama wrapper'ı (navbar ile aynı mantık) */
.search-input-wrapper {
    position: relative;
}

.search-wrapper {
    position: relative;
    max-width: 320;
    width: 100%;
}

/* Makaleler filtre formu tek sırada dursun */
.filters-form {
    display: flex;
    flex-wrap: nowrap;          /* Büyük ekranda tek satır */
    align-items: flex-end;
    gap: 12px;
}

/* Her label + input bloğu dikey olsun */
.filters-form .filter-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
}

/* Arama input'u çok dar kalmasın */
.filters-form .search-wrapper {
    min-width: 260px;
}

/* Filtrele butonu satırın alt hizasına gelsin */
.filters-form > .btn-primary {
    align-self: flex-end;
}

@media (max-width: 768px) {
    .filters-form {
        flex-wrap: wrap;
        align-items: flex-start;
    }
}

#category-search-suggestions {
    position: absolute;
    top: 115%;
    left: 0;
    right: 0;
    background: #020617;
    border: 1px solid #1f2937;
    border-radius: 10px;
    max-height: 260px;
    overflow-y: auto;
    display: none;
    z-index: 300;
}

#category-search-suggestions.visible {
    display: block;
}

#category-search-suggestions div {
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
}

#category-search-suggestions div:hover {
    background: #111827;
}

/* Kategoriler sayfasındaki arama kutusunu daha dar yap */
.category-search-wrapper {
    max-width: 230px;   /* İstersen 200–240 arası oynayabilirsin */
}

.category-search-input {
    width: 100%;
    font-size: 14px;
}
.category-search-wrapper .search-suggestions {
    right: auto;        /* tüm satırı kaplama */
    width: 100%;        /* wrapper ne kadarsa o kadar */
}

/* Kategoriler sayfası grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

.category-card {
    background: #020617;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #1f2937;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-card-image {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    max-height: 180px;
}

.category-card-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
}

.forum-admin-flag {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    background-color: #991b1b;
    color: #fee2e2;
    font-weight: 600;
}

/* Ekibimiz sayfası */
.team-grid {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.team-card {
    background: #020617;
    border-radius: 12px;
    border: 1px solid #1f2937;
    padding: 14px 16px;
}

.team-username {
    margin: 0 0 4px;
    font-size: 16px;
    color: #f9fafb;
}

.team-role {
    margin: 0;
    font-size: 13px;
    color: #9ca3af;
}

.team-categories {
    margin-top: 8px;
    font-size: 12px;
    color: #9ca3af;
}

.team-categories-label {
    font-weight: 600;
    margin-right: 4px;
    color: #e5e7eb;
}

.team-category-chip {
    display: inline-block;
    padding: 2px 8px;
    margin-right: 4px;
    margin-top: 4px;
    border-radius: 999px;
    border: 1px solid #374151;
    font-size: 11px;
    color: #e5e7eb;
}

.team-category-chip:hover {
    background: #111827;
    text-decoration: none;
}


