/* ==========================================================================
   TERFIUI v5 — Sınavlarım (my_exams) Modüler Sayfa Stilleri
   ========================================================================== */

/* Sayfa Gövdesi — 8px Boşluklu Hizalama Kuralı */
/* ── Kilitli Ön Gösterim Kapsayıcısı ── */
.gd-exams-lock-wrap {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px !important;
}

/* ── Hero Header Kartı (category_documents.php 1:1 Birebir Aynı Kompakt İnce Görünüm) ── */
.gd-doc-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-doc-hero-compact .gd-page-header-main {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 260px;
}

.gd-doc-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-doc-hero-compact .gd-page-title-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

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

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

.gd-doc-hero-compact .gd-page-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* ── Misafir Kilit Overlay ── */
.gd-exams-lock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 50;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 16px;
    box-sizing: border-box;
    border-radius: 14px;
}

.gd-exams-lock-card {
    width: 100%;
    max-width: 530px;
    background: rgba(255, 255, 255, 0.98);
    padding: 4px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    margin-top: 20px;
    position: relative;
}

.gd-exams-lock-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #475569;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 60;
    transition: all 0.2s ease;
}

.gd-exams-lock-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* ── Ana Kart Kapsayıcısı ── */
.gd-exams-container {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-sizing: border-box;
}

/* ── Hercai Hoca Telafi Testi Banner (DİKKAT ÇEKİCİ ZEKAI AI TASARIMI) ── */
.gd-exams-recovery-banner {
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 50%, #eff6ff 100%);
    border: 1.5px solid #bfdbfe;
    border-radius: 16px;
    padding: 18px 22px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.08), 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    color: #0f172a;
    transition: all 0.3s ease;
}

.gd-exams-recovery-banner:hover {
    border-color: #93c5fd;
    box-shadow: 0 8px 28px rgba(37, 99, 235, 0.14);
}

.gd-exams-recovery-sparkle-bg {
    position: absolute;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, rgba(99, 102, 241, 0.05) 50%, transparent 75%);
    top: -60px;
    left: -40px;
    pointer-events: none;
    animation: gdPulseGlow 4s infinite alternate ease-in-out;
}

@keyframes gdPulseGlow {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.15); opacity: 1; }
}

.gd-exams-recovery-main {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    z-index: 1;
    flex: 1;
    min-width: 280px;
}

.gd-exams-recovery-avatar-wrap {
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
}

.gd-exams-recovery-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #93c5fd;
    color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
    transition: transform 0.2s ease;
}

.gd-exams-recovery-banner:hover .gd-exams-recovery-avatar {
    transform: scale(1.05) rotate(-3deg);
}

.gd-exams-recovery-online-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: #22c55e;
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
    animation: gdGreenPulse 2s infinite ease-in-out;
}

@keyframes gdGreenPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.gd-exams-recovery-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gd-exams-recovery-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #2563eb;
    background: rgba(37, 99, 235, 0.08);
    padding: 3px 10px;
    border-radius: 20px;
    width: fit-content;
    margin-bottom: 2px;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.gd-exams-recovery-badge-icon {
    display: flex;
    align-items: center;
}

.gd-exams-recovery-badge-pill {
    background: #2563eb;
    color: #ffffff;
    padding: 1px 7px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 800;
    margin-left: 2px;
}

.gd-exams-recovery-title {
    color: #0f172a;
    font-size: 16px;
    font-weight: 800;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.gd-exams-recovery-desc {
    color: #475569;
    font-size: 13px;
    margin: 0;
    line-height: 1.5;
}

.gd-exams-recovery-highlight {
    color: #1d4ed8;
    background: #dbeafe;
    padding: 1px 6px;
    border-radius: 5px;
    font-weight: 700;
}

.gd-exams-recovery-action {
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.gd-exams-recovery-btn {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff !important;
    padding: 11px 22px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transition: all 0.25s ease;
}

.gd-exams-recovery-btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.45);
}

.gd-exams-recovery-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    color: #64748b;
    font-weight: 600;
}

/* ── Sınav Kartları Izgarası ── */
.gd-exams-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.gd-exams-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    box-sizing: border-box;
}

.gd-exams-card:hover {
    border-color: #bfdbfe;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -4px rgba(37, 99, 235, 0.12);
}

.gd-exams-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.gd-exams-card-title {
    font-size: 15px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.3;
    margin: 0;
}

.gd-exams-cat-badge {
    font-size: 10px;
    background: #eff6ff;
    color: #1e40af;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.gd-exams-card-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: #64748b;
}

.gd-exams-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* İlerleme Çubuğu */
.gd-exams-progress-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gd-exams-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
}

.gd-exams-progress-val {
    color: #2563eb;
    font-weight: 800;
}

.gd-exams-progress-bg {
    width: 100%;
    height: 6px;
    background: #f1f5f9;
    border-radius: 999px;
    overflow: hidden;
}

.gd-exams-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb 0%, #10b981 100%);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.gd-exams-progress-sub {
    font-size: 10px;
    color: #94a3b8;
}

/* Kart Aksiyonları */
.gd-exams-card-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.gd-exams-card-actions .gd-btn-primary {
    flex: 1;
    justify-content: center;
}

.gd-exams-del-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    background: #fef2f2;
    color: #ef4444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.gd-exams-del-btn:hover {
    background: #ef4444;
    color: #ffffff;
}

/* ── Boş Durum ── */
.gd-exams-empty {
    text-align: center;
    padding: 60px 24px;
    background: #ffffff;
    border-radius: 14px;
    border: 2px dashed #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.gd-exams-empty-icon {
    width: 60px;
    height: 60px;
    background: #eff6ff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
}

.gd-exams-empty-title {
    font-size: 16px;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
}

.gd-exams-empty-desc {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    max-width: 400px;
}

/* ── Sayfalama (Pagination) ── */
.gd-exams-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding-top: 10px;
}

.gd-exams-page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.gd-exams-page-btn:hover:not(.disabled):not(.active) {
    border-color: #cbd5e1;
    color: #2563eb;
    background: #f8fafc;
}

.gd-exams-page-btn.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.gd-exams-page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* ── Silme Onay Modalı (Rule 16) ── */
.gd-exams-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-exams-confirm-modal {
    background: #ffffff;
    width: 100%;
    max-width: 400px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: examsModalSlideUp 0.22s ease-out;
}

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

.gd-exams-confirm-body {
    padding: 24px 20px 16px;
    text-align: center;
}

.gd-exams-confirm-icon {
    width: 48px;
    height: 48px;
    background: #fee2e2;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    color: #ef4444;
}

.gd-exams-confirm-title {
    font-size: 16px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 6px;
}

.gd-exams-confirm-desc {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.gd-exams-confirm-footer {
    display: flex;
    gap: 8px;
    padding: 14px 20px;
    border-top: 1px solid #f1f5f9;
}

.gd-exams-confirm-footer .gd-btn {
    flex: 1;
    justify-content: center;
}

/* ── Bildirim Uyarı Kutuları ── */
.gd-exams-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    border: 1.5px solid transparent;
    margin-bottom: 12px;
}

.gd-exams-alert.success {
    background: #dcfce7;
    color: #15803d;
    border-color: #bbf7d0;
}

.gd-exams-alert.error {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fecaca;
}

.gd-exams-alert-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── Responsive ── */
@media (max-width: 992px) {
    .gd-exams-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .gd-exams-container {
        padding: 16px;
        gap: 16px;
    }

    .gd-exams-recovery-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px;
    }

    .gd-exams-recovery-action {
        width: 100%;
        align-items: stretch;
    }

    .gd-exams-recovery-btn {
        width: 100%;
        justify-content: center;
    }
}
