/* ==========================================================================
   TERFIUI v5 — Soru Antrenman Merkezi, Lobi & Session (antrenman.css)
   ========================================================================== */

/* Kompakt Antrenman Merkezi Hero Kartı (Kompakt İnce Görünüm) */
.gd-ant-hero-compact {
    position: relative;
    overflow: hidden;
    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-ant-hero-inst-silhouette {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.22;
    filter: grayscale(100%) contrast(130%);
    transition: all 0.3s ease;
    pointer-events: none;
    user-select: none;
}

.gd-ant-hero-inst-silhouette img {
    height: 52px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

.gd-ant-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-ant-hero-compact .gd-page-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
}

.gd-ant-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) */
/* ── Antrenman Modları Grid (3'lü Grid Mimarisi) ── */
.gd-ant-modes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

@media (max-width: 1199px) {
    .gd-ant-modes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .gd-ant-modes-grid {
        grid-template-columns: 1fr;
    }
}

.gd-ant-mode-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    transition: all 0.22s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.gd-ant-mode-card:hover,
.gd-ant-mode-card.active {
    border-color: #2563eb;
    transform: translateY(-3px);
    box-shadow: 0 10px 24px -4px rgba(37, 99, 235, 0.14);
}

.gd-ant-mode-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gd-ant-mode-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.22s ease;
}

.gd-ant-mode-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    transition: stroke 0.22s ease;
}

.gd-ant-mode-card:hover .gd-ant-mode-icon,
.gd-ant-mode-card.active .gd-ant-mode-icon {
    background: #2563eb;
    color: #ffffff;
    transform: scale(1.05);
}

.gd-ant-mode-card:hover .gd-ant-mode-icon svg,
.gd-ant-mode-card.active .gd-ant-mode-icon svg {
    stroke: #ffffff !important;
}

.gd-ant-mode-title-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gd-ant-mode-title {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.gd-ant-mode-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569;
    width: max-content;
    text-transform: uppercase;
}

.gd-ant-mode-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

.gd-ant-mode-select-wrap {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.gd-ant-mode-select-label {
    font-size: 11px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
}

.gd-ant-mode-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    gap: 10px;
}

.gd-ant-mode-meta {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ── Kategori / Seçim Paneli Kartı ── */
.gd-ant-form-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.gd-ant-form-title {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gd-ant-select {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 9px 30px 9px 12px !important;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 13px;
    color: #1e293b;
    background: #f8fafc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 10px center;
    background-size: 16px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-sizing: border-box !important;
    transition: all 0.2s ease;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    cursor: pointer;
}

.gd-ant-select option {
    max-width: 100%;
    font-size: 13px;
    padding: 6px;
}

.gd-ant-select:focus {
    outline: none;
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ── SESSION SORU KARTI STİLLERİ (antreman/session.php) ── */
.gd-ant-session-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 18px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.04);
}

/* Soru Metni ve Kategori Yan Yana Düzeni */
.gd-ant-question-container {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
}

.gd-ant-card-num {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #2563eb;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.gd-ant-question-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.gd-ant-card-cat-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.gd-ant-card-cat {
    font-size: 11px;
    font-weight: 800;
    color: #475569;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    width: max-content;
}

.gd-ant-card-timer {
    font-size: 13px;
    font-weight: 800;
    color: #dc2626;
    background: #fef2f2;
    padding: 4px 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gd-ant-question-text {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.6;
    margin: 0;
}

/* Şıklar Grid */
.gd-ant-options-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gd-ant-option-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.gd-ant-option-item:hover,
.antreman-card-option:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    transform: none !important;
    box-shadow: none !important;
}

.gd-ant-option-item:hover::before,
.antreman-card-option:hover::before {
    display: none !important;
    content: none !important;
}

.gd-ant-option-item.selected {
    background: #eff6ff !important;
    border-color: #2563eb !important;
    color: #1d4ed8 !important;
}

.gd-ant-option-item.selected .gd-ant-option-letter,
.gd-ant-option-item.selected .gd-ant-option-text {
    color: #1d4ed8 !important;
    font-weight: 700 !important;
}

.gd-ant-option-item.correct {
    border-color: #a7f3d0 !important;
    background: #ecfdf5 !important;
    color: #047857 !important;
}

.gd-ant-option-item.correct .gd-ant-option-letter,
.gd-ant-option-item.correct .gd-ant-option-text {
    color: #047857 !important;
    font-weight: 700 !important;
}

.gd-ant-option-item.wrong {
    border-color: #fca5a5 !important;
    background: #fee2e2 !important;
    color: #b91c1c !important;
}

.gd-ant-option-item.wrong .gd-ant-option-letter,
.gd-ant-option-item.wrong .gd-ant-option-text {
    color: #b91c1c !important;
    font-weight: 700 !important;
}

.gd-ant-option-letter {
    font-weight: 800;
    font-size: 14px;
    margin-right: 4px;
    color: #1e293b;
    flex-shrink: 0;
}

.gd-ant-option-text {
    font-size: 14px;
    line-height: 1.5;
    color: #334155;
    flex: 1;
}

/* Çözüm Kutu Stili (sinav-incele ile 1:1 Uyumlu) */
.gd-ant-solution-box {
    background: #eff6ff !important;
    border: 1.5px solid #bfdbfe !important;
    border-radius: 12px !important;
    padding: 14px 16px !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
}

.gd-ant-solution-header {
    font-size: 13.5px;
    font-weight: 800;
    color: #1e40af !important;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gd-ant-solution-body {
    font-size: 13.5px;
    color: #1e3a8a !important;
    line-height: 1.6;
}

.gd-ant-nav-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1.5px solid #f1f5f9;
    gap: 12px;
}

/* ── Tamamlandı Modal Ekranı (Ortalanmış Şık Pop-up - Kural 16) ── */
.gd-ant-finish-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.gd-ant-finish-card {
    background: #ffffff;
    width: 100%;
    max-width: 440px;
    border-radius: 20px;
    padding: 24px;
    text-align: left;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: antModalPop 0.25s ease-out;
    position: relative;
}

@keyframes antModalPop {
    from { transform: scale(0.92); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.gd-ant-finish-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.gd-ant-finish-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #f0fdf4;
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gd-ant-finish-title {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
}

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

/* 🔒 KURAL 27 GUEST & FREEMIUM PAYWALL POPUP STİLLERİ */
.gd-ant-paywall-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.gd-ant-paywall-dialog {
    background: transparent;
    width: 100%;
    max-width: 480px;
    position: relative;
    box-shadow: none;
    animation: antModalPop 0.25s ease-out;
}

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

.gd-exams-lock-close:hover {
    background: #fde68a;
    color: #78350f;
}

/* Responsive */
@media (max-width: 768px) {
    .gd-ant-modes-grid {
        grid-template-columns: 1fr;
    }
}
