/* ==========================================================================
   AYAYDER - Modern Dark Mode & Light Mode Design System
   Özel Karanlık & Aydınlık Tema Sistemi
   ========================================================================== */

/* 1. Tema Değişkenleri ve Koyu Mod Renk Paleti */
[data-theme="dark"],
html.dark-theme,
body.dark-theme {
    --primary: #93c5fd;
    --primary-dark: #070d18;
    --primary-light: #1d4ed8;
    --accent: #ff6b57;
    --accent-hover: #ff8c7a;
    --accent-orange: #fb923c;
    --accent-blue: #38bdf8;
    --bg-light: #0b1120;
    --bg-white: #131d31;
    --bg-card: #152238;
    --bg-surface: #1e293b;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-light: #64748b;
    --border-color: #1e293b;
    --border-subtle: #18243c;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 20px 35px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
}

/* 2. Genel Gövde ve Sayfa Arka Planı */
[data-theme="dark"] body {
    background-color: #0b1120;
    color: #f1f5f9;
}

/* 3. Başlıklar & Tipografi */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: #f8fafc;
}

[data-theme="dark"] p,
[data-theme="dark"] .lead {
    color: #cbd5e1;
}

/* 4. Üst İletişim Bandı (Top Bar) & Ticker */
[data-theme="dark"] .top-bar {
    background: #070d18;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .news-ticker {
    background: #08101e;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* 5. Header & Navigasyon */
[data-theme="dark"] header {
    background: #0f172a;
    border-bottom: 1px solid #1e293b;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .brand-name {
    color: #f8fafc;
}

[data-theme="dark"] .brand-tagline {
    color: #fb923c;
}

[data-theme="dark"] .nav-link {
    color: #cbd5e1;
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-item:hover>.nav-link,
[data-theme="dark"] .nav-item.active>.nav-link {
    color: #38bdf8;
    background-color: rgba(56, 189, 248, 0.1);
}

[data-theme="dark"] .dropdown-menu {
    background: #152238;
    border: 1px solid #334155;
    box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .dropdown-item a {
    color: #e2e8f0;
}

[data-theme="dark"] .dropdown-item a:hover {
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
}

[data-theme="dark"] .btn-search {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}

[data-theme="dark"] .btn-search:hover {
    background: #0284c7;
    color: #fff;
    border-color: #0284c7;
}

[data-theme="dark"] .hamburger {
    background: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
}

[data-theme="dark"] .hamburger:hover,
[data-theme="dark"] .hamburger.active {
    background: #334155;
    color: #ff6b57;
}

@media (max-width: 1180px) {
    [data-theme="dark"] .nav-menu {
        background: #0f172a;
        box-shadow: -10px 0 35px rgba(0, 0, 0, 0.6);
    }

    [data-theme="dark"] .mobile-drawer-header {
        background: #0f172a;
        border-bottom-color: #1e293b;
    }

    [data-theme="dark"] .mobile-drawer-close {
        background: #1e293b;
        border-color: #334155;
        color: #94a3b8;
    }

    [data-theme="dark"] .mobile-drawer-close:hover {
        background: #334155;
        color: #fff;
    }

    [data-theme="dark"] .nav-link {
        border-bottom-color: #1e293b;
    }

    [data-theme="dark"] .dropdown-menu {
        background: #152238;
        border-color: #1e293b;
    }
}

/* 6. Bölümler (Sections) & Kartlar (Cards) */
[data-theme="dark"] .section-alt {
    background-color: #090e1a;
}

[data-theme="dark"] .section-header .section-title {
    color: #f8fafc;
}

[data-theme="dark"] .section-header .section-desc {
    color: #94a3b8;
}

[data-theme="dark"] .section-action {
    color: #38bdf8;
}

[data-theme="dark"] .section-action:hover {
    color: #7dd3fc;
}

/* 7. İstatistik Sayaç Kutuları */
[data-theme="dark"] .stats-section {
    background: #131d31;
    border-color: #1e293b;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .stat-box {
    border-color: #1e293b;
}

[data-theme="dark"] .stat-number {
    color: #f8fafc;
}

[data-theme="dark"] .stat-label {
    color: #94a3b8;
}

/* 8. Güncel Duyurular Bileşenleri */
[data-theme="dark"] .duyuru-section {
    background-color: #0b1120;
}

[data-theme="dark"] .duyuru-featured-card {
    background: #152238;
    border-color: #1e293b;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .duyuru-featured-title a {
    color: #f8fafc;
}

[data-theme="dark"] .duyuru-featured-title a:hover {
    color: #38bdf8;
}

[data-theme="dark"] .duyuru-featured-summary {
    color: #cbd5e1;
}

[data-theme="dark"] .duyuru-featured-footer {
    border-top-color: #1e293b;
}

[data-theme="dark"] .duyuru-list-container {
    background: #152238;
    border-color: #1e293b;
}

[data-theme="dark"] .duyuru-list-item {
    border-bottom-color: #1e293b;
}

[data-theme="dark"] .duyuru-list-item:hover {
    background: rgba(56, 189, 248, 0.05);
}

[data-theme="dark"] .duyuru-date-block {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .duyuru-day-num {
    color: #f8fafc;
}

[data-theme="dark"] .duyuru-item-title {
    color: #e2e8f0;
}

[data-theme="dark"] .duyuru-list-item:hover .duyuru-item-title {
    color: #38bdf8;
}

[data-theme="dark"] .duyuru-quick-filters {
    background: #131d31;
    border-color: #1e293b;
}

[data-theme="dark"] .duyuru-pill {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}

[data-theme="dark"] .duyuru-pill:hover {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

/* 9. Haber Kartları & Izgara */
[data-theme="dark"] .news-card,
[data-theme="dark"] .hero-news-card,
[data-theme="dark"] .news-list-card,
[data-theme="dark"] .card {
    background: #152238;
    border: 1px solid #1e293b;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .news-card:hover,
[data-theme="dark"] .hero-news-card:hover,
[data-theme="dark"] .news-list-card:hover {
    border-color: #38bdf8;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .news-title a,
[data-theme="dark"] .hero-news-title a {
    color: #f8fafc;
}

[data-theme="dark"] .news-title a:hover,
[data-theme="dark"] .hero-news-title a:hover {
    color: #38bdf8;
}

[data-theme="dark"] .news-summary,
[data-theme="dark"] .hero-news-summary {
    color: #94a3b8;
}

[data-theme="dark"] .news-footer,
[data-theme="dark"] .hero-news-footer,
[data-theme="dark"] .news-card-footer {
    border-top-color: #1e293b;
    color: #ff6b55;
}

[data-theme="dark"] .news-card-footer:hover {
    color: #ffa090;
}

/* 10. Etkinlikler, Kongreler & Takvim */
[data-theme="dark"] .event-card,
[data-theme="dark"] .kongre-card {
    background: #152238;
    border-color: #1e293b;
}

[data-theme="dark"] .event-title a {
    color: #f8fafc;
}

[data-theme="dark"] .event-desc {
    color: #94a3b8;
}

[data-theme="dark"] .event-meta-item {
    color: #cbd5e1;
}

[data-theme="dark"] .event-details-card,
[data-theme="dark"] .event-sidebar-widget {
    background: #152238;
    border-color: #1e293b;
}

/* 11. Bilgi Merkezi & Belgeler */
[data-theme="dark"] .knowledge-card,
[data-theme="dark"] .doc-card,
[data-theme="dark"] .category-filter-box,
[data-theme="dark"] .doc-item {
    background: #152238;
    border-color: #1e293b;
}

[data-theme="dark"] .doc-item:hover {
    background: #1a2942;
}

[data-theme="dark"] .doc-title {
    color: #f8fafc;
}

[data-theme="dark"] .doc-meta {
    color: #94a3b8;
}

/* 12. Yönetim Kurulu & Başkan Sayfası */
[data-theme="dark"] .board-card,
[data-theme="dark"] .baskan-profile-card,
[data-theme="dark"] .profile-card {
    background: #152238;
    border-color: #1e293b;
}

[data-theme="dark"] .board-name {
    color: #f8fafc;
}

[data-theme="dark"] .board-role {
    color: #38bdf8;
}

[data-theme="dark"] .board-bio {
    color: #cbd5e1;
}

/* 13. Kurumsal Sayfalar & Makaleler (Prose) */
[data-theme="dark"] .page-card,
[data-theme="dark"] .page-article,
[data-theme="dark"] .article-container,
[data-theme="dark"] .content-box {
    background: #131d31;
    border-color: #1e293b;
    color: #cbd5e1;
}

[data-theme="dark"] .page-lead-summary {
    background: #1e293b !important;
    color: #f1f5f9 !important;
    border-left-color: var(--accent) !important;
}

[data-theme="dark"] .page-content,
[data-theme="dark"] .article-body,
[data-theme="dark"] .content-body {
    color: #cbd5e1;
}

[data-theme="dark"] .content-body p,
[data-theme="dark"] .content-body span,
[data-theme="dark"] .content-body div,
[data-theme="dark"] .content-body li,
[data-theme="dark"] .content-body td {
    color: #cbd5e1;
}

[data-theme="dark"] .content-body strong,
[data-theme="dark"] .content-body b {
    color: #f8fafc;
}

[data-theme="dark"] .content-body a {
    color: #38bdf8;
}

[data-theme="dark"] .content-body a:hover {
    color: #7dd3fc;
}

[data-theme="dark"] .page-content h1,
[data-theme="dark"] .page-content h2,
[data-theme="dark"] .page-content h3,
[data-theme="dark"] .article-body h2,
[data-theme="dark"] .article-body h3,
[data-theme="dark"] .content-body h1,
[data-theme="dark"] .content-body h2,
[data-theme="dark"] .content-body h3,
[data-theme="dark"] .content-body h4,
[data-theme="dark"] .content-body h5,
[data-theme="dark"] .content-body h6 {
    color: #93c5fd;
    border-bottom-color: #1e293b;
}

[data-theme="dark"] .page-content blockquote,
[data-theme="dark"] .article-body blockquote,
[data-theme="dark"] .content-body blockquote {
    background: #1a263e;
    border-left-color: #38bdf8;
    color: #e2e8f0;
}

/* 13.1 Sidebar & Yan Menü Bileşenleri */
[data-theme="dark"] .sidebar-widget {
    background: #131d31;
    border-color: #1e293b;
    color: #cbd5e1;
}

[data-theme="dark"] .sidebar-widget.widget-light-card {
    background: #152238 !important;
    border-color: #1e293b !important;
}

[data-theme="dark"] .widget-title {
    color: #93c5fd;
    border-bottom-color: var(--accent);
}

[data-theme="dark"] .widget-nav a {
    background: #1e293b;
    color: #e2e8f0;
    border: 1px solid #1e293b;
}

[data-theme="dark"] .widget-nav a span {
    color: #38bdf8;
}

[data-theme="dark"] .widget-nav a:hover,
[data-theme="dark"] .widget-nav a.active {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

[data-theme="dark"] .widget-nav a:hover span,
[data-theme="dark"] .widget-nav a.active span {
    color: #ffffff;
}

[data-theme="dark"] .sidebar-widget h4 a {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .sidebar-widget h4 a:hover {
    color: #38bdf8 !important;
}

[data-theme="dark"] .filter-tab-btn {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}

[data-theme="dark"] .filter-tab-btn:hover {
    background: #334155;
    color: #38bdf8;
    border-color: #38bdf8;
}

[data-theme="dark"] .filter-tab-btn.active {
    background: #0284c7;
    border-color: #0284c7;
    color: #fff;
}

/* 14. Formlar, Giriş Alanları & Tablolar */
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] input[type="tel"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] input[type="search"],
[data-theme="dark"] select,
[data-theme="dark"] textarea {
    background-color: #1e293b;
    border: 1px solid #334155;
    color: #f8fafc;
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: #64748b;
}

[data-theme="dark"] input:focus,
[data-theme="dark"] select:focus,
[data-theme="dark"] textarea:focus {
    border-color: #38bdf8;
    outline: none;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
    background-color: #172338;
}

[data-theme="dark"] .form-label {
    color: #cbd5e1;
}

[data-theme="dark"] table,
[data-theme="dark"] .table {
    border-color: #1e293b;
}

[data-theme="dark"] table th,
[data-theme="dark"] .table th {
    background-color: #1a263e;
    color: #f8fafc;
    border-bottom-color: #334155;
}

[data-theme="dark"] table td,
[data-theme="dark"] .table td {
    background-color: #152238;
    color: #cbd5e1;
    border-bottom-color: #1e293b;
}

[data-theme="dark"] table tr:nth-child(even) td {
    background-color: #131d31;
}

/* 15. Ekmek Kırıntısı (Breadcrumb) & Sayfalama (Pagination) */
[data-theme="dark"] .breadcrumb {
    background: #131d31;
    border-color: #1e293b;
}

[data-theme="dark"] .breadcrumb-item {
    color: #94a3b8;
}

[data-theme="dark"] .breadcrumb-item a {
    color: #38bdf8;
}

[data-theme="dark"] .pagination .page-link {
    background: #152238;
    border-color: #334155;
    color: #cbd5e1;
}

[data-theme="dark"] .pagination .page-link:hover {
    background: #1e293b;
    color: #38bdf8;
}

[data-theme="dark"] .pagination .page-item.active .page-link {
    background: #0284c7;
    border-color: #0284c7;
    color: #fff;
}

/* 16. E-Bülten Bölümü */
[data-theme="dark"] .newsletter-section {
    background: #070d18;
}

[data-theme="dark"] .newsletter-card {
    background: #0f1a2e;
    border-color: #1e293b;
}

/* 17. Footer */
[data-theme="dark"] footer {
    background: #070d18;
    border-top: 1px solid #1e293b;
}

[data-theme="dark"] .footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   TEMA DEĞİŞTİRME BUTONU BİLEŞENLERİ (THEME TOGGLE BUTTONS)
   ========================================================================== */
.theme-toggle-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    flex-shrink: 0;
    padding: 0;
}

.theme-toggle-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: scale(1.08);
}

.theme-toggle-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.theme-toggle-btn .icon-sun {
    display: none;
    color: #f59e0b;
}

.theme-toggle-btn .icon-moon {
    display: block;
    color: #6366f1;
}

/* Karanlık Modda İkon Değişimi */
[data-theme="dark"] .theme-toggle-btn {
    background: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}

[data-theme="dark"] .theme-toggle-btn:hover {
    background: #334155;
    color: #fbbf24;
    border-color: #475569;
}

[data-theme="dark"] .theme-toggle-btn .icon-sun {
    display: block;
    transform: rotate(0deg);
}

[data-theme="dark"] .theme-toggle-btn .icon-moon {
    display: none;
}

/* Üst Bar Buton Varyasyonu */
.topbar-theme-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #cbd5e1;
    padding: 3px 9px;
    border-radius: 18px;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.topbar-theme-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

[data-theme="dark"] .topbar-theme-btn {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.3);
    color: #38bdf8;
}

[data-theme="dark"] .topbar-theme-btn:hover {
    background: rgba(56, 189, 248, 0.25);
    color: #7dd3fc;
}

/* Mobil Menü Tema Seçici Çubuğu */
.mobile-theme-row {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    margin-top: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
}

[data-theme="dark"] .mobile-theme-row {
    background: #152238;
    border-color: #1e293b;
    color: #f1f5f9;
}

@media (max-width: 1180px) {
    .mobile-theme-row {
        display: flex;
    }
}

/* ==========================================================================
   DARK MODE SCROLLBAR
   ========================================================================== */
[data-theme="dark"],
[data-theme="dark"] html,
[data-theme="dark"] body {
    scrollbar-color: rgba(56, 189, 248, 0.4) rgba(15, 23, 42, 0.6);
}

[data-theme="dark"] ::-webkit-scrollbar-track {
    background: rgba(11, 17, 32, 0.8);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.35);
    border: 2px solid rgba(11, 17, 32, 0.8);
    background-clip: padding-box;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: #0284c7;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
}

/* ==========================================================================
   18. GENEL UI BİLEŞENLERİ, BUTONLAR & YARDIMCILAR (DARK MODE)
   ========================================================================== */
[data-theme="dark"] .btn-secondary {
    background: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
}

[data-theme="dark"] .btn-secondary:hover {
    background: #334155;
    color: #38bdf8;
    border-color: #38bdf8;
}

[data-theme="dark"] .breadcrumbs {
    color: #94a3b8;
}

[data-theme="dark"] .breadcrumbs a {
    color: #93c5fd;
}

[data-theme="dark"] .breadcrumbs a:hover {
    color: #38bdf8;
}

[data-theme="dark"] .breadcrumbs span {
    color: #64748b;
}

[data-theme="dark"] .alert-info {
    background: rgba(2, 132, 199, 0.15);
    border-color: rgba(2, 132, 199, 0.4);
    color: #7dd3fc;
}

[data-theme="dark"] .alert-warning {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.4);
    color: #fcd34d;
}

[data-theme="dark"] .alert-success {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
}

[data-theme="dark"] .alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}