/* ================================================================
   Offside Zamka – Home / Front-page styles
   Loaded only on: is_front_page() && !is_home()
   ================================================================ */

/* ── Hero ─────────────────────────────────────────────────────── */
.oz-hero {
    background:
        radial-gradient(circle, rgba(255, 255, 255, .055) 1px, transparent 1px),
        linear-gradient(135deg, #111 0%, #1a1a1a 60%, #1f1a00 100%);
    background-size: 26px 26px, 100% 100%;
    color: var(--oz-white);
    padding: 80px 0 0;
    overflow: hidden;
    position: relative;
}

.oz-hero-inner {
    display: flex;
    align-items: center;
    gap: 48px;
    max-width: var(--oz-max-w);
    margin: 0 auto;
    padding: 0 24px;
}

.oz-hero-content {
    flex: 1;
}

.oz-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(245, 197, 24, .12);
    border: 1px solid rgba(245, 197, 24, .3);
    color: var(--oz-yellow);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 24px;
}

.oz-hero-title {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -.02em;
    margin-bottom: 20px;
    color: var(--oz-white);
}

.oz-hero-title span {
    color: var(--oz-yellow);
    display: block;
}

.oz-hero-subtitle {
    font-size: 16px;
    color: var(--oz-gray);
    margin-bottom: 36px;
    line-height: 1.6;
}

.oz-hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.oz-btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--oz-yellow);
    color: var(--oz-black);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    border-radius: 8px;
    text-decoration: none;
    transition: opacity .2s, transform .15s;
}

.oz-btn-hero-primary:hover {
    opacity: .88;
    transform: translateY(-2px);
    text-decoration: none;
    color: var(--oz-black);
}

.oz-btn-hero-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: transparent;
    color: var(--oz-white);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    border-radius: 8px;
    border: 1.5px solid rgba(255, 255, 255, .25);
    text-decoration: none;
    transition: border-color .2s, color .2s;
}

.oz-btn-hero-outline:hover {
    border-color: var(--oz-yellow);
    color: var(--oz-yellow);
    text-decoration: none;
}

.oz-hero-graphic {
    flex: 0 0 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Tactical three-piece composition */
.oz-hero-tactical {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    position: relative;
    width: 100%;
}

.oz-tactic-left,
.oz-tactic-right {
    flex: 0 0 auto;
    max-width: 110px;
    opacity: .9;
    pointer-events: none;
    will-change: transform, opacity;
}

.oz-tactic-left {
    align-self: flex-end;
    margin-bottom: 36px;
    animation: oz-tactic-left-drift 4.8s ease-in-out infinite;
    transform-origin: bottom center;
}

.oz-tactic-right {
    align-self: flex-start;
    margin-top: 16px;
    animation: oz-tactic-right-drift 5.6s ease-in-out infinite 1.3s;
    transform-origin: top center;
}

@keyframes oz-tactic-left-drift {

    0%,
    100% {
        transform: rotate(0deg);
        opacity: .9;
    }

    30% {
        transform: rotate(-2.5deg);
        opacity: .75;
    }

    65% {
        transform: rotate(1.8deg);
        opacity: .95;
    }
}

@keyframes oz-tactic-right-drift {

    0%,
    100% {
        transform: translateX(0) scale(1);
        opacity: .9;
    }

    40% {
        transform: translateX(6px) scale(1.04);
        opacity: .7;
    }

    75% {
        transform: translateX(-4px) scale(.97);
        opacity: 1;
    }
}

/* Logo with motion */
.oz-tactic-logo-wrap {
    flex: 0 0 auto;
    position: relative;
    z-index: 2;
}

.oz-tactic-logo {
    display: block;
    width: clamp(160px, 18vw, 240px);
    animation: oz-logo-float 3.5s ease-in-out infinite;
    filter: drop-shadow(0 16px 40px rgba(245, 197, 24, .35));
    will-change: transform;
}

@keyframes oz-logo-float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        filter: drop-shadow(0 16px 40px rgba(245, 197, 24, .35));
    }

    50% {
        transform: translateY(-14px) rotate(1deg);
        filter: drop-shadow(0 28px 50px rgba(245, 197, 24, .5));
    }
}

/* Stats bar */
.oz-stats-bar {
    background: rgba(255, 255, 255, .04);
    border-top: 1px solid rgba(255, 255, 255, .07);
    margin-top: 60px;
}

.oz-stats-bar-inner {
    max-width: var(--oz-max-w);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.oz-stat-item {
    padding: 28px 24px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, .07);
}

.oz-stat-item:last-child {
    border-right: none;
}

.oz-stat-value {
    font-size: 28px;
    font-weight: 900;
    color: var(--oz-yellow);
    line-height: 1;
    margin-bottom: 4px;
    display: block;
}

.oz-stat-label {
    font-size: 12px;
    color: var(--oz-gray);
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .oz-hero-inner {
        flex-direction: column;
        padding-top: 0;
        gap: 32px;
    }

    .oz-hero-graphic {
        flex: none;
        width: 100%;
        max-width: 380px;
        margin: 0 auto;
    }

    .oz-tactic-logo {
        width: clamp(120px, 30vw, 180px);
    }

    .oz-tactic-left,
    .oz-tactic-right {
        max-width: 80px;
    }

    .oz-stats-bar-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .oz-stat-item:nth-child(2) {
        border-right: none;
    }

    .oz-stat-item:nth-child(3) {
        border-top: 1px solid rgba(255, 255, 255, .07);
    }

    .oz-stat-item:nth-child(4) {
        border-top: 1px solid rgba(255, 255, 255, .07);
        border-right: none;
    }
}

@media (max-width: 540px) {
    .oz-hero {
        padding: 48px 0 0;
    }

    .oz-stats-bar-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .oz-hero-content {
        text-align: center;
    }

    .oz-hero-buttons {
        justify-content: center;
    }
}

/* ── Quiz section ─────────────────────────────────────────────── */
.oz-quiz-section {
    background: var(--oz-light);
}

.oz-quiz-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}

/* Featured card */
.oz-quiz-card-featured {
    border-radius: var(--oz-radius);
    overflow: hidden;
    min-height: 340px;
    background: linear-gradient(135deg, #111111 0%, #1a1a0a 60%, #2a2500 100%) center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    transition: transform .25s, box-shadow .25s;
}

.oz-quiz-card-featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, .4);
}

.oz-quiz-card-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, .94) 0%, rgba(0, 0, 0, .65) 55%, rgba(0, 0, 0, .1) 100%);
    padding: 28px 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.oz-qc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.oz-quiz-card-num {
    font-size: 36px;
    font-weight: 900;
    color: rgba(245, 197, 24, .28);
    line-height: 1;
    letter-spacing: -.04em;
}

.oz-quiz-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--oz-yellow);
    background: rgba(245, 197, 24, .15);
    border: 1px solid rgba(245, 197, 24, .35);
    padding: 4px 12px;
    border-radius: 20px;
    width: fit-content;
}

/* Lock icon — corner badge on both card types */
.oz-badge-lock {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 13px;
    line-height: 1;
    padding: 5px 6px;
    border-radius: 7px;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(6px);
    z-index: 2;
}

.oz-quiz-card-title {
    font-size: 26px;
    font-weight: 900;
    color: var(--oz-white);
    margin: 0;
    line-height: 1.2;
}

.oz-quiz-card-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.oz-pill {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .75);
    border: 1px solid rgba(255, 255, 255, .12);
}

.oz-pill-diff {
    background: rgba(245, 197, 24, .15);
    color: var(--oz-yellow);
    border-color: rgba(245, 197, 24, .3);
}

/* Small quiz card */
.oz-quiz-card-small {
    background: #1a1a1a;
    border: 1px solid rgba(245, 197, 24, .1);
    border-top: 3px solid var(--oz-yellow);
    border-radius: var(--oz-radius);
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
    display: flex;
    flex-direction: column;
    position: relative;
}

.oz-quiz-card-small:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(245, 197, 24, .14);
}

.oz-quiz-card-body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.oz-qc-sm-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}

.oz-qc-sm-num {
    font-size: 36px;
    font-weight: 900;
    color: rgba(245, 197, 24, .18);
    line-height: 1;
    letter-spacing: -.04em;
}

.oz-qc-sm-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 16px;
}

.oz-quiz-card-small-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--oz-white);
    margin: 0 0 8px;
    line-height: 1.3;
}

.oz-quiz-card-small-meta {
    font-size: 12px;
    color: var(--oz-gray);
    margin: 0;
    line-height: 1.4;
}

/* Play buttons */
.oz-quiz-play-btn {
    display: inline-flex;
    align-items: center;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    border-radius: 7px;
    text-decoration: none;
    transition: opacity .2s, transform .15s;
    width: fit-content;
}

.oz-quiz-play-btn:hover {
    opacity: .85;
    transform: translateY(-1px);
    text-decoration: none;
}

.oz-quiz-play-btn-primary {
    background: var(--oz-yellow);
    color: var(--oz-black);
    padding: 12px 24px;
    font-size: 13px;
}

.oz-quiz-play-btn-small {
    background: var(--oz-yellow);
    color: var(--oz-black);
    padding: 9px 20px;
    font-size: 12px;
    font-weight: 800;
}

.oz-quiz-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.oz-all-quizzes-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--oz-yellow);
    text-decoration: none;
    text-align: right;
    display: block;
    padding: 8px 4px 4px;
    letter-spacing: .03em;
    opacity: .8;
    transition: opacity .2s;
}

.oz-all-quizzes-link:hover {
    text-decoration: underline;
    opacity: 1;
}

/* Coming soon states */
.oz-coming-soon-card {
    text-align: center;
    padding: 8px 0;
}

.oz-coming-soon-card .oz-quiz-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.oz-coming-soon-icon {
    font-size: 28px;
}

.oz-coming-soon-text {
    font-size: 13px;
    color: var(--oz-gray);
    margin: 0;
}

.oz-coming-soon-block {
    text-align: center;
    padding: 64px 24px;
    background: var(--oz-white);
    border: 2px dashed var(--oz-border);
    border-radius: var(--oz-radius);
}

.oz-coming-soon-big-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
}

.oz-coming-soon-block h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.oz-coming-soon-block p {
    color: var(--oz-gray);
    margin: 0;
}

@media (max-width: 900px) {
    .oz-quiz-layout {
        grid-template-columns: 1fr;
    }

    .oz-quiz-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .oz-quiz-card-small {
        flex: 1 1 260px;
    }

    .oz-quiz-card-featured {
        min-height: 260px;
    }
}

@media (max-width: 560px) {
    .oz-quiz-card-small {
        flex: 1 1 100%;
    }
}

/* ── News section ─────────────────────────────────────────────── */
.oz-news-section {
    background: var(--oz-white);
}

.oz-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.oz-news-card {
    background: var(--oz-white);
    border: 1px solid var(--oz-border);
    border-radius: var(--oz-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s, box-shadow .2s;
}

.oz-news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .1);
}

.oz-news-card-img-wrap {
    display: block;
    height: 200px;
    overflow: hidden;
    background: #2a2a1e;
    position: relative;
}

.oz-news-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s;
}

.oz-news-card:hover .oz-news-card-img-wrap img {
    transform: scale(1.04);
}

.oz-news-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2e2d1f;
    color: #666;
    font-size: 13px;
    letter-spacing: .04em;
}

.oz-news-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.oz-news-card-cat {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--oz-black);
    background: var(--oz-yellow);
    padding: 3px 10px;
    border-radius: 4px;
    width: fit-content;
}

.oz-news-card-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    line-height: 1.35;
}

.oz-news-card-title a {
    color: var(--oz-black);
    text-decoration: none;
}

.oz-news-card-title a:hover {
    color: var(--oz-yellow);
}

.oz-news-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--oz-gray);
}

.oz-news-card-read {
    font-size: 12px;
    color: var(--oz-gray);
    margin: 0;
    border-bottom: 2px solid var(--oz-yellow);
    padding-bottom: 12px;
    width: fit-content;
}

.oz-news-card-link {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--oz-yellow);
    text-decoration: none;
    margin-top: auto;
}

.oz-news-card-link:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .oz-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .oz-news-grid {
        grid-template-columns: 1fr;
    }
}