/* ═══ Home page — premium hero & centered countdown ═══ */

.home-hero {
    position: relative;
    overflow: hidden;
    padding: 3rem 0 3.5rem;
    margin-bottom: 0;
    color: #fff;
}

.home-hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(56, 189, 248, .35), transparent 55%),
        radial-gradient(ellipse 50% 40% at 90% 80%, rgba(234, 88, 12, .2), transparent 50%),
        linear-gradient(155deg, #0c4a6e 0%, #075985 45%, #0e7490 100%);
    z-index: 0;
}

.home-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: .6;
}

.home-hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 820px;
}

.home-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5.5vw, 3rem);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -.03em;
    margin: 0 0 1rem;
    color: #fff;
}

.home-hero__lead {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    color: rgba(255, 255, 255, .82);
    max-width: 52ch;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.hero__eyebrow--light {
    background: rgba(255, 255, 255, .14);
    color: #fde68a;
    border: 1px solid rgba(255, 255, 255, .2);
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn--lg {
    padding: .85rem 1.5rem;
    font-size: .95rem;
}

.btn--ghost-light {
    background: rgba(255, 255, 255, .1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .35);
    backdrop-filter: blur(8px);
}

.btn--ghost-light:hover {
    background: rgba(255, 255, 255, .2);
    color: #fff;
    border-color: rgba(255, 255, 255, .5);
}

/* ─── YKS Countdown component ─── */
.yks-countdown {
    margin: 0 auto;
}

.yks-countdown__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.yks-countdown__head {
    margin-bottom: 1.25rem;
}

.yks-countdown__eyebrow {
    margin: 0 0 .35rem;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    opacity: .75;
}

.yks-countdown__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 3vw, 1.6rem);
    font-weight: 600;
}

.yks-countdown__subtitle {
    margin: .5rem 0 0;
    font-size: .875rem;
    opacity: .8;
}

.yks-countdown__grid {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .5rem 1rem;
}

.yks-countdown__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 4.5rem;
    padding: .85rem 1rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(12px);
}

.yks-countdown__num {
    display: block;
    font-size: clamp(2rem, 6vw, 2.75rem);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    letter-spacing: -.02em;
}

.yks-countdown__label {
    margin-top: .35rem;
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: .8;
}

.yks-countdown__sep {
    font-size: 1.75rem;
    font-weight: 300;
    opacity: .45;
    line-height: 1;
    user-select: none;
}

.yks-countdown__foot {
    margin: 1.25rem 0 0;
}

.yks-countdown__link {
    color: inherit;
    font-size: .875rem;
    font-weight: 600;
    opacity: .9;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.yks-countdown__link:hover {
    opacity: 1;
    color: #fff;
}

/* Hero variant (on dark background) */
.yks-countdown--hero {
    max-width: 640px;
    margin-inline: auto;
    color: #fff;
}

.yks-countdown--hero .yks-countdown__item {
    min-width: 5rem;
    padding: 1rem 1.15rem;
}

/* Page variant (standalone tool page) */
.yks-countdown--page {
    max-width: 720px;
    margin: 0 auto 2.5rem;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, #075985 100%);
    color: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.yks-countdown--page .yks-countdown__item {
    background: rgba(255, 255, 255, .14);
}

.yks-countdown--default {
    background: linear-gradient(135deg, var(--primary) 0%, #075985 100%);
    color: #fff;
    border-radius: var(--radius);
    padding: 1.75rem 2rem;
    box-shadow: var(--shadow-lg);
}

.yks-countdown--ended .yks-countdown__title::after {
    content: ' — Sınav zamanı!';
}

/* ─── Home body sections ─── */
.home-body {
    padding: 2.5rem 0 1rem;
}

.home-quick {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.home-quick__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    padding: 1.15rem 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: .875rem;
    font-weight: 600;
    color: var(--text);
    text-align: center;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}

.home-quick__item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
    color: var(--primary);
}

.home-quick__icon {
    font-size: 1.35rem;
}

.home-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.home-section-head h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
}

.home-section-head__link {
    font-size: .875rem;
    font-weight: 600;
    white-space: nowrap;
}

.feature-grid--home {
    margin: 0 0 2rem;
}

.feature-card--home h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    margin: 0 0 .35rem;
}

.feature-card--home p {
    margin: 0;
    font-size: .85rem;
    color: var(--text-muted);
}

.feature-card--highlight {
    border-color: var(--primary-light);
    background: linear-gradient(180deg, #f0f9ff, var(--bg-elevated));
}

.home-news {
    padding-top: 0;
}

.card-grid--home {
    margin-top: 0;
}

.card--home:hover {
    transform: translateY(-3px);
}

.home-latest__list {
    list-style: none;
    margin: 0;
    padding: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.home-latest__list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: .85rem 1.15rem;
    border-bottom: 1px solid var(--border);
}

.home-latest__list li:last-child {
    border-bottom: none;
}

.home-latest__list a {
    font-weight: 600;
    color: var(--text);
}

.home-latest__list a:hover {
    color: var(--primary-light);
}

.home-latest__list time {
    font-size: .75rem;
    color: var(--text-subtle);
    white-space: nowrap;
}

.widget--home {
    margin-bottom: 1.25rem;
}

.widget--accent {
    background: var(--accent-soft);
    border-color: #fed7aa;
}

@media (max-width: 768px) {
    .home-hero {
        padding: 2rem 0 2.5rem;
    }

    .home-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .home-hero__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .yks-countdown__sep {
        display: none;
    }

    .yks-countdown__grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: .65rem;
        width: 100%;
    }

    .yks-countdown__item {
        min-width: 0;
        width: 100%;
    }

    .home-quick {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 380px) {
    .home-quick {
        grid-template-columns: 1fr;
    }
}
