/* Sınav Rehberi (/sinav-rehberi) — kart yapısı main.css'teki .holiday-card'ı kullanır. */

/* Kartlar esner: son satır boş hücre bırakmadan genişler. */
.exam-type-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.6rem;
}
.exam-type-card {
    --exam-tone: var(--accent);
    --exam-tone-bg: rgba(232, 163, 23, 0.12);
    flex: 1 1 14rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 1rem 1.05rem 0.95rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: linear-gradient(160deg, var(--exam-tone-bg) 0%, var(--bg-card) 55%);
    color: var(--text-primary);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.exam-type-card--soon {
    --exam-tone: #e0604f;
    --exam-tone-bg: rgba(224, 96, 79, 0.13);
}
.exam-type-card--none {
    --exam-tone: var(--text-muted);
    --exam-tone-bg: rgba(120, 140, 160, 0.06);
}
.exam-type-card:hover {
    transform: translateY(-2px);
    border-color: var(--exam-tone);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}
.exam-type-top {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
.exam-type-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.7rem;
    background: var(--exam-tone-bg);
    color: var(--exam-tone);
    font-size: 1.05rem;
}
.exam-type-name {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.15;
}
.exam-type-name strong {
    font-family: var(--font-display);
    font-size: 1.12rem;
}
.exam-type-name small {
    margin-top: 0.15rem;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.exam-type-arrow {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity var(--transition), transform var(--transition);
}
.exam-type-card:hover .exam-type-arrow {
    opacity: 1;
    transform: none;
    color: var(--exam-tone);
}
.exam-type-count {
    font-size: 0.82rem;
    color: var(--text-secondary);
}
.exam-type-count b {
    margin-right: 0.15rem;
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1;
    color: var(--exam-tone);
}
.exam-type-count--muted {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
}
.exam-type-date {
    font-size: 0.76rem;
    color: var(--text-muted);
}
.exam-type-bar {
    display: block;
    height: 4px;
    margin-top: 0.15rem;
    border-radius: 999px;
    background: var(--bg-secondary);
    overflow: hidden;
}
.exam-type-bar > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--exam-tone);
}

.exam-section {
    margin-bottom: 1.4rem;
}
.exam-past > summary {
    cursor: pointer;
    list-style: none;
}
.exam-past > summary::-webkit-details-marker {
    display: none;
}
.exam-past > summary::after {
    content: ' +';
}
.exam-past[open] > summary::after {
    content: ' −';
}

.exam-card::before {
    background: var(--accent);
}
.exam-card--past {
    opacity: 0.68;
}
.exam-card--past::before {
    background: var(--text-muted);
}
.exam-card .holiday-card-sub a {
    color: var(--accent);
    text-decoration: none;
}
.exam-card-app,
.exam-card-meta {
    margin: 0.2rem 0 0;
    font-size: 0.74rem;
    line-height: 1.35;
    color: var(--text-secondary);
}
.exam-card-app--open {
    color: #3d9468;
    font-weight: 600;
}
[data-theme="dark"] .exam-card-app--open {
    color: #6fd39a;
}
.exam-card-app--late {
    color: var(--accent);
    font-weight: 600;
}
.exam-countdown {
    background: rgba(232, 163, 23, 0.14);
    color: var(--accent);
}
.exam-countdown--soon {
    background: rgba(220, 80, 60, 0.14);
    color: #c9483a;
}
[data-theme="dark"] .exam-countdown--soon {
    color: #ff8a7a;
}
.exam-countdown--past {
    background: rgba(120, 140, 160, 0.14);
    color: var(--text-muted);
}
.exam-card-source {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-decoration: none;
    white-space: nowrap;
}
.exam-card-source:hover {
    color: var(--accent);
}

.exam-table-wrap {
    overflow-x: auto;
}
.exam-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
}
.exam-table th,
.exam-table td {
    padding: 0.55rem 0.6rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}
.exam-table th {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.exam-table td:nth-child(2),
.exam-table td:nth-child(3) {
    white-space: nowrap;
}

.exam-guide-content {
    margin-bottom: 1.4rem;
    color: var(--text-secondary);
    line-height: 1.7;
}
.exam-guide-content h2 {
    margin: 1.4rem 0 0.5rem;
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--text-primary);
}
.exam-guide-content h3 {
    margin: 1rem 0 0.4rem;
    font-size: 1.02rem;
    color: var(--text-primary);
}
.exam-guide-content ul,
.exam-guide-content ol {
    padding-left: 1.2rem;
}

.exam-faq-item {
    border-bottom: 1px solid var(--border);
    padding: 0.6rem 0;
}
.exam-faq-item summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
}
.exam-faq-item p {
    margin: 0.45rem 0 0;
    color: var(--text-secondary);
    line-height: 1.6;
}
.exam-back a {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.86rem;
}

@media (max-width: 560px) {
    .exam-type-card {
        flex-basis: calc(50% - 0.4rem);
        padding: 0.85rem 0.8rem;
    }
    .exam-type-count b {
        font-size: 1.35rem;
    }
    .exam-card {
        flex-wrap: wrap;
    }
    .exam-card .holiday-card-tags {
        flex-direction: row;
        width: 100%;
        justify-content: flex-end;
    }
}
