/* ==========================================================================
   TERFIUI v5 — Sınav Müfredatı (mufredat.php) Modüler Sayfa Stilleri
   ========================================================================== */

/* Kompakt Müfredat Hero Kartı (Kompakt İnce Görünüm) */
.gd-muf-hero-compact {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    padding: 14px 18px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 0 !important;
}

.gd-muf-hero-compact .gd-page-header-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gd-muf-hero-compact .gd-page-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
}

.gd-muf-hero-compact .gd-page-subtitle {
    font-size: 12.5px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

/* Sayfa Gövdesi — 8px Boşluklu Hizalama Kuralı (Kural 20) */
/* ── Kategori Grupları ve Kart Gridleri ── */
.gd-mufredat-group {
    margin-bottom: 24px;
}

/* Grup Başlığı Banner Kartı (sample_page.php Bileşeni) */
.gd-mufredat-banner-group {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 60%, #1e293b 100%);
    border-radius: 16px;
    padding: 20px 24px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.18);
    width: 100%;
    margin-bottom: 16px;
    box-sizing: border-box;
}

.gd-mufredat-banner-group .gd-banner-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gd-mufredat-banner-group .gd-banner-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.gd-mufredat-banner-group .gd-banner-text-group {
    flex: 1;
    min-width: 260px;
}

.gd-mufredat-banner-group .gd-banner-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
}

.gd-mufredat-banner-group .gd-banner-subtitle {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.gd-btn-banner-cta {
    background: #ffffff !important;
    color: #1e40af !important;
    border: none !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    padding: 10px 20px !important;
    border-radius: 99px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.gd-btn-banner-cta:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2) !important;
    color: #1d4ed8 !important;
}

.gd-mufredat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

/* Kategori Kartı */
.gd-mufredat-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    transition: all 0.22s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.gd-mufredat-card:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(59, 130, 246, 0.15);
}

.gd-mufredat-card-title {
    font-size: 14px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.35;
    margin: 0 0 4px 0;
}

.gd-mufredat-card-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
    margin: 0;
}

.gd-mufredat-card-actions {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
    padding-top: 10px !important;
    border-top: 1px solid #f1f5f9 !important;
    width: 100% !important;
}

.gd-mufredat-card-actions .gd-btn,
.gd-mufredat-card-actions button.gd-btn,
.gd-mufredat-card-actions a.gd-btn {
    width: 100% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 7px 6px !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    height: 32px !important;
}

/* ── Aktif Kurum Sınavları Kayan Slider / Marquee Alanı ── */
.gd-mufredat-exams-wrap {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

.gd-mufredat-exams-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 12px;
}

.gd-mufredat-exams-title-box {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gd-mufredat-exams-title {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gd-mufredat-exams-subtitle {
    font-size: 12px;
    color: #64748b;
    margin: 0;
}

/* Slider Navigasyon Butonları */
.gd-mufredat-slider-navs {
    display: flex;
    gap: 6px;
}

.gd-mufredat-slider-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gd-mufredat-slider-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #2563eb;
}

/* Kayan Kapsayıcı ve Track */
.gd-mufredat-slider-viewport {
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 2px 10px 2px;
}

.gd-mufredat-slider-viewport::-webkit-scrollbar {
    display: none;
}

.gd-mufredat-slider-track {
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
    width: max-content;
}

.gd-mufredat-exam-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    width: 250px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.gd-mufredat-exam-card:hover {
    border-color: #2563eb;
    background: #eff6ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px -4px rgba(37, 99, 235, 0.12);
}

.gd-mufredat-exam-icon {
    width: 38px;
    height: 38px;
    background: #dbeafe;
    color: #1d4ed8;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.gd-mufredat-exam-card:hover .gd-mufredat-exam-icon {
    background: #2563eb;
    color: #ffffff;
}

.gd-mufredat-exam-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.gd-mufredat-exam-name {
    font-size: 13px;
    font-weight: 800;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gd-mufredat-exam-inst {
    font-size: 11px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Modern Zippi Misafir Modalı (Kural 16) ── */
.gd-mufredat-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 20000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.gd-mufredat-modal-card {
    background: #ffffff;
    width: 100%;
    max-width: 440px;
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: mufredatModalSlide 0.22s ease-out;
}

@keyframes mufredatModalSlide {
    from { transform: translateY(16px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

.gd-mufredat-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s ease;
}

.gd-mufredat-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.gd-mufredat-modal-icon {
    width: 64px;
    height: 64px;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.gd-mufredat-modal-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px;
}

.gd-mufredat-modal-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 20px;
}

.gd-mufredat-modal-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
}

.gd-mufredat-modal-actions .gd-btn {
    width: 100%;
    justify-content: center;
    padding: 10px 8px;
    font-size: 12px;
    font-weight: 700;
}

/* ── RESPONSIVE DÜZENLEME: MOBİLDE 2'Lİ GRID ── */
@media (max-width: 991px) {
    .gd-mufredat-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
}

@media (max-width: 768px) {
    .gd-mufredat-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .gd-mufredat-card {
        padding: 12px;
        gap: 8px;
    }

    .gd-mufredat-card-title {
        font-size: 13px;
    }

    .gd-mufredat-card-desc {
        font-size: 11px;
        line-height: 1.3;
    }

    .gd-mufredat-card-actions {
        flex-direction: column;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .gd-mufredat-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }
}
