/* =====================================================
   RESPONSIVE.CSS — Tablet & Mobil Uyumluluk
   Breakpoints:
     1200px → geniş tablet
     1024px → tablet
      900px → küçük tablet
      768px → mobil
      480px → küçük mobil
===================================================== */

/* ===== TABLET GENİŞ (≤1200px) ===== */
@media (max-width: 1200px) {
    .container { padding: 0 24px; }
    .nav-list > li > a { padding: 16px 12px; font-size: 13px; }
}

/* ===== TABLET (≤1024px) ===== */
@media (max-width: 1024px) {
    .quick-access-grid { grid-template-columns: repeat(3, 1fr); }
    .news-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .about-strip-layout { grid-template-columns: 1fr; gap: 30px; }
    .membership-grid { grid-template-columns: 1fr 1fr; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-template-rows: auto; }
    .gallery-item:first-child { grid-column: span 1; grid-row: span 1; }
    .galeri-grid { grid-template-columns: 1fr 1fr; }
    .page-layout { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .nav-list > li > a { padding: 16px 11px; font-size: 13px; }
    .stat-cards { grid-template-columns: repeat(2, 1fr); }

    /* Yönetim kurulu önizleme 4-sütun → 2-sütun */
    .board-preview-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .board-preview-featured { grid-column: span 2 !important; }

    /* Hero */
    .hero-slider { min-height: 500px; }
    .slide-content h2 { font-size: 40px; }
}

/* ===== KÜÇÜK TABLET (≤900px) ===== */
@media (max-width: 900px) {
    .featured-duyuru-inner { grid-template-columns: 1fr; gap: 28px; }
    .featured-duyuru-image { order: -1; }
    .featured-duyuru-image-wrap { max-width: 480px; margin: 0 auto; }

    .membership-grid { grid-template-columns: 1fr; }
    .stat-cards { grid-template-columns: repeat(2, 1fr); }

    /* Baskan profil kartı: yan yana → üst alta */
    .baskan-profil-flex { flex-direction: column !important; }
    .baskan-profil-foto { width: 100% !important; max-width: 320px; margin: 0 auto; }
}

/* ===== MOBİL (≤768px) ===== */
@media (max-width: 768px) {

    /* Top bar gizle */
    .top-bar { display: none; }

    /* Logo bar */
    .logo-bar { padding: 10px 0; }
    .logo-bar .container { gap: 10px; }
    .logo-text h1 { font-size: 14px; }
    .logo-text p { font-size: 10px; }
    .logo-icon { width: 44px; height: 44px; }
    .logo-bar .container > div:last-child { display: none; }

    /* Header & nav */
    .header-inner { padding: 10px 16px; justify-content: flex-start; gap: 12px; }
    .hamburger { display: flex; z-index: 2001; position: relative; }

    nav {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: var(--black);
        z-index: 2000;
        overflow-y: auto;
        padding: 70px 0 40px;
    }
    nav.open { display: block; }
    .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav-list > li > a {
        padding: 14px 20px;
        font-size: 15px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        color: rgba(255,255,255,0.9);
    }
    .nav-list > li > a:hover,
    .nav-list > li > a.active {
        background: rgba(232,101,10,0.15);
        color: var(--orange-primary);
    }
    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: rgba(255,255,255,0.05);
        border-radius: 0;
        display: none;
    }
    .dropdown.open { display: block; }
    .dropdown a { padding: 10px 32px; color: rgba(255,255,255,0.7); border-bottom: 1px solid rgba(255,255,255,0.05); }
    .dropdown a:hover { background: rgba(232,101,10,0.1); color: var(--orange-primary); }

    .hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.open span:nth-child(2) { opacity: 0; }
    .hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .nav-close {
        display: flex;
        position: absolute;
        top: 20px; right: 20px;
        font-size: 22px;
        cursor: pointer;
        color: white;
        background: rgba(255,255,255,0.1);
        border: none;
        width: 36px; height: 36px;
        border-radius: 4px;
        align-items: center;
        justify-content: center;
    }

    /* Hero slider */
    .hero-slider { height: auto; min-height: 420px; }
    .hero-inner { padding: 60px 20px 40px; align-items: flex-end; }
    .slide-content { max-width: 100%; }
    .slide-content h2 { font-size: 28px; line-height: 1.25; }
    .slide-content p { font-size: 14px; margin-bottom: 20px; }
    .slide-label span:last-child { font-size: 10px; letter-spacing: 1.5px; }
    .slide-actions { flex-direction: column; align-items: flex-start; gap: 10px; }
    .slide-actions .btn-primary,
    .slide-actions .btn-hero-outline { width: 100%; text-align: center; padding: 12px 20px; }
    .slider-controls { transform: translateX(-50%); left: 50%; bottom: 14px; }
    .slider-arrows { padding: 0 10px; }

    /* Yönetim kurulu önizleme: 1-sütun, başkan tam genişlik */
    .board-preview-grid { grid-template-columns: 1fr !important; }
    .board-preview-featured {
        grid-column: span 1 !important;
        flex-direction: column !important;
    }
    .board-preview-featured > div:first-child {
        width: 100% !important;
        height: 220px !important;
    }

    /* Quick access */
    .quick-access-grid { grid-template-columns: repeat(3, 1fr); }

    /* Haberler & duyurular */
    .news-grid { grid-template-columns: 1fr; }
    .ann-layout { grid-template-columns: 1fr; }

    /* Stat kartları */
    .stat-cards { grid-template-columns: 1fr 1fr; }

    /* Üyelik */
    .membership-grid { grid-template-columns: 1fr; }

    /* Hakkımızda features */
    .about-features { grid-template-columns: 1fr 1fr; }

    /* Galeri */
    .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
    .gallery-item:first-child { grid-column: span 1; grid-row: span 1; }
    .galeri-grid { grid-template-columns: 1fr; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }

    /* Sayfa içi */
    .section-title h2 { font-size: 24px; }
    .about-text h2 { font-size: 24px; }
    .cta-banner h2 { font-size: 24px; }
    .page-hero h1 { font-size: 22px; }
    .page-hero { padding: 36px 0; }
    .content-card { padding: 20px 16px; }
    .ilan-form { padding: 20px 16px; }
    .form-row { grid-template-columns: 1fr; }

    /* Baskan profil kartı - yığma düzen */
    .baskan-profil-flex {
        flex-direction: column !important;
        align-items: center !important;
    }
    .baskan-profil-foto {
        width: 100% !important;
        max-width: 100% !important;
    }
    .baskan-profil-foto img { height: 280px !important; object-fit: cover; }

    /* İç sayfa genel */
    .page-layout { grid-template-columns: 1fr; gap: 28px; }

    /* Denetim/Yönetim kurulu sayfası ızgaraları */
    .sidebar-widget { margin-bottom: 20px; }

    /* Yönetim kurulu sayfası üye ızgarası */
    .yk-uyeler-grid { grid-template-columns: repeat(2, 1fr) !important; }

    /* Yönetim kurulu sayfası başkan kartı */
    .yonetim-baskan-card { flex-direction: column !important; }
    .yonetim-baskan-foto { width: 100% !important; height: 220px; }
}

/* ===== KÜÇÜK MOBİL (≤480px) ===== */
@media (max-width: 480px) {
    /* Yönetim kurulu üye ızgarası tek sütun */
    .yk-uyeler-grid { grid-template-columns: 1fr !important; }

    .container { padding: 0 14px; }

    /* Quick access 2 sütun */
    .quick-access-grid { grid-template-columns: repeat(2, 1fr); }

    /* Stat tek sütun */
    .stat-cards { grid-template-columns: 1fr; }

    /* Hakkımızda features tek sütun */
    .about-features { grid-template-columns: 1fr; }

    /* Galeri tek sütun */
    .gallery-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    .gallery-item:first-child { grid-column: 1; grid-row: 1; }

    /* Slider okları gizle */
    .slider-arrows { display: none; }

    /* CTA butonlar */
    .cta-buttons { flex-direction: column; align-items: center; }

    /* Hero */
    .hero-slider { min-height: 400px; }
    .slide-content h2 { font-size: 24px; }

    /* Yazı boyutları */
    .section-title h2 { font-size: 21px; }
    .page-hero h1 { font-size: 20px; }

    /* Logo bar */
    .logo-text h1 { font-size: 12px; }
    .logo-icon { width: 38px; height: 38px; }

    /* Footer */
    .footer-about p { font-size: 13px; }

    /* News card */
    .news-card .news-img { height: 180px; }

    /* Duyuru */
    .featured-duyuru-actions { flex-direction: column; }
    .featured-duyuru-actions a { text-align: center; }
}
