/* ================================================================
   Offside Zamka – Base Styles (loaded on every page)
   Palette: #F5C518 yellow | #111111 dark | #1A1A1A black
   ================================================================ */

:root {
    --oz-yellow: #F5C518;
    --oz-black: #1A1A1A;
    --oz-dark: #111111;
    --oz-darker: #0A0A0A;
    --oz-white: #ffffff;
    --oz-light: #F4F4F4;
    --oz-border: #E0E0E0;
    --oz-gray: #9CA3AF;
    --oz-green: #22B24C;
    --oz-red: #DC3232;
    --oz-radius: 10px;
    --oz-shadow: 0 4px 24px rgba(0, 0, 0, .08);
    --oz-max-w: 1200px;
}

/* ── Accessibility helpers ────────────────────────────────────── */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── Reset ────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--oz-black);
    background: var(--oz-white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--oz-yellow);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 .6em;
    line-height: 1.25;
    font-weight: 800;
    color: var(--oz-black);
}

p {
    margin: 0 0 1.2em;
}

/* ── Layout ───────────────────────────────────────────────────── */
.oz-container {
    max-width: var(--oz-max-w);
    margin: 0 auto;
    padding: 0 24px;
}

#page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#content {
    flex: 1;
}

/* ── Header ───────────────────────────────────────────────────── */
.oz-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--oz-dark);
    border-bottom: 3px solid var(--oz-yellow);
}

.oz-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 16px;
}

.oz-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: .07em;
    color: var(--oz-white);
    text-decoration: none;
    white-space: nowrap;
}

.oz-logo:hover {
    text-decoration: none;
    color: var(--oz-white);
}

.oz-logo span {
    color: var(--oz-yellow);
}

/* Nav */
.oz-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.oz-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4px;
    align-items: center;
}

.oz-nav ul li a {
    display: block;
    padding: 8px 10px;
    color: var(--oz-gray);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.oz-nav ul li a:hover {
    color: var(--oz-yellow);
    border-bottom-color: var(--oz-yellow);
    text-decoration: none;
}

.oz-nav ul li.current-menu-item>a {
    color: var(--oz-yellow);
    border-bottom-color: var(--oz-yellow);
    text-decoration: none;
}

/* Header CTA button */
.oz-header-cta {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 9px 20px;
    background: var(--oz-yellow);
    color: var(--oz-black);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    border-radius: 6px;
    text-decoration: none;
    transition: opacity .2s, transform .15s;
}

.oz-header-cta:hover {
    opacity: .88;
    transform: translateY(-1px);
    text-decoration: none;
    color: var(--oz-black);
}

/* Hamburger */
.oz-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.oz-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--oz-white);
    border-radius: 2px;
    transition: all .3s;
}

/* Mobile nav */
@media (max-width: 768px) {
    .oz-hamburger {
        display: flex;
    }

    .oz-header-cta {
        display: none;
    }

    .oz-nav {
        position: absolute;
        top: 71px;
        left: 0;
        right: 0;
        background: var(--oz-dark);
        border-bottom: 2px solid var(--oz-yellow);
        padding: 12px 0;
        display: none;
        flex: none;
        justify-content: flex-start;
    }

    .oz-nav.open {
        display: block;
    }

    .oz-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .oz-nav ul li a {
        padding: 12px 24px;
        border-bottom: none;
    }
}

/* ── Page content ─────────────────────────────────────────────── */
.oz-page-wrap {
    padding: 48px 0 64px;
}

.oz-page-header {
    background: var(--oz-dark);
    border-left: 5px solid var(--oz-yellow);
    padding: 36px 32px;
    margin-bottom: 40px;
    border-radius: var(--oz-radius);
}

.oz-page-header h1 {
    color: var(--oz-white);
    font-size: 32px;
    margin: 0;
}

/* ── Post / Article ───────────────────────────────────────────── */
.oz-entry {
    max-width: 760px;
}

.oz-entry-thumb {
    border-radius: var(--oz-radius);
    overflow: hidden;
    margin-bottom: 28px;
}

.oz-entry-thumb img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.oz-entry-meta {
    font-size: 13px;
    color: var(--oz-gray);
    margin-bottom: 20px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.oz-entry-meta span::before {
    content: '• ';
}

.oz-entry-meta span:first-child::before {
    content: '';
}

.oz-entry-title {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

.oz-entry-content {
    line-height: 1.8;
}

.oz-entry-content h2 {
    font-size: 22px;
    margin-top: 2em;
}

.oz-entry-content h3 {
    font-size: 18px;
    margin-top: 1.8em;
}

.oz-entry-content p {
    margin-bottom: 1.4em;
}

.oz-entry-content img {
    border-radius: var(--oz-radius);
    margin: 20px 0;
}

.oz-entry-content ul,
.oz-entry-content ol {
    padding-left: 1.5em;
    margin-bottom: 1.4em;
}

/* ── Archive / Post grid ──────────────────────────────────────── */
.oz-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

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

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

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

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

.oz-post-card-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.oz-post-card-body {
    padding: 20px;
}

.oz-post-card-cat {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--oz-yellow);
    background: rgba(245, 197, 24, .1);
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.oz-post-card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.35;
}

.oz-post-card-title a {
    color: var(--oz-black);
}

.oz-post-card-title a:hover {
    color: var(--oz-yellow);
    text-decoration: none;
}

.oz-post-card-date {
    font-size: 12px;
    color: var(--oz-gray);
}

/* ── Pagination ───────────────────────────────────────────────── */
.oz-pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 48px;
    flex-wrap: wrap;
}

.oz-pagination a,
.oz-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    border: 1.5px solid var(--oz-border);
    color: var(--oz-black);
    transition: all .2s;
}

.oz-pagination a:hover,
.oz-pagination .current {
    background: var(--oz-yellow);
    border-color: var(--oz-yellow);
    color: var(--oz-black);
    text-decoration: none;
}

/* ── 404 ──────────────────────────────────────────────────────── */
.oz-404 {
    text-align: center;
    padding: 80px 24px;
}

.oz-404 h1 {
    font-size: 120px;
    color: var(--oz-yellow);
    margin-bottom: 8px;
}

.oz-404 h2 {
    font-size: 28px;
    margin-bottom: 16px;
}

.oz-404 p {
    color: var(--oz-gray);
    margin-bottom: 32px;
}

/* ── Buttons ──────────────────────────────────────────────────── */
.oz-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .04em;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: transform .15s, box-shadow .15s, opacity .15s;
}

.oz-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .15);
    text-decoration: none;
}

.oz-btn-primary {
    background: var(--oz-yellow);
    color: var(--oz-black);
}

.oz-btn-secondary {
    background: var(--oz-light);
    color: var(--oz-black);
    border: 1.5px solid var(--oz-border);
}

/* ── Footer ───────────────────────────────────────────────────── */
.oz-site-footer {
    background: var(--oz-dark);
    color: var(--oz-white);
    border-top: 3px solid var(--oz-yellow);
}

.oz-site-footer * {
    box-sizing: border-box;
}

.oz-footer-inner {
    max-width: var(--oz-max-w);
    margin: 0 auto;
    padding: 0 24px;
}

.oz-footer-main {
    padding: 56px 0 48px;
}

.oz-footer-main .oz-footer-inner {
    display: flex;
    gap: 64px;
    align-items: flex-start;
}

.oz-footer-brand {
    flex: 0 0 300px;
}

.oz-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: .08em;
    color: var(--oz-white);
    text-decoration: none;
    margin-bottom: 14px;
    line-height: 1;
}

.oz-footer-logo:hover {
    text-decoration: none;
    color: var(--oz-white);
}

.oz-footer-logo span {
    color: var(--oz-yellow);
}

.oz-footer-tagline {
    color: var(--oz-gray);
    font-size: 13px;
    line-height: 1.7;
    margin: 0 0 24px;
}

.oz-footer-social {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.oz-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1.5px solid #333;
    border-radius: 20px;
    font-weight: 600;
    color: var(--oz-white);
    transition: border-color .2s, color .2s;
}

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

.oz-footer-nav {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.oz-footer-col-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    color: var(--oz-white);
    margin: 0 0 16px;
    text-transform: uppercase;
}

.oz-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.oz-footer-col ul li {
    margin-bottom: 10px;
}

.oz-footer-col ul li a {
    color: var(--oz-gray);
    font-size: 13.5px;
    text-decoration: none;
    transition: color .2s;
}

.oz-footer-col ul li a:hover {
    color: var(--oz-yellow);
}

.oz-footer-bottom {
    background: var(--oz-darker);
    border-top: 1px solid #1F1F1F;
    padding: 18px 0;
}

.oz-footer-bottom .oz-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    color: var(--oz-gray);
    gap: 16px;
}

@media (max-width: 900px) {
    .oz-footer-main .oz-footer-inner {
        flex-direction: column;
        gap: 40px;
    }

    .oz-footer-brand {
        flex: none;
        width: 100%;
    }

    .oz-footer-nav {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .oz-footer-nav {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .oz-footer-bottom .oz-footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* ── Shared section styles ────────────────────────────────────── */
.oz-section {
    padding: 72px 0;
}

.oz-section--dark {
    background: var(--oz-black);
}

.oz-section--dark .oz-section-label {
    color: var(--oz-yellow);
}

.oz-section--dark .oz-section-title {
    color: var(--oz-white);
}

.oz-section-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--oz-yellow);
}

.oz-section-title {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 900;
    color: var(--oz-black);
    margin: 0 0 40px;
}

.oz-section-head {
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;
    gap: 8px;
}

.oz-section-head .oz-section-title {
    margin-bottom: 0;
}

.oz-all-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--oz-yellow);
    text-decoration: none;
    white-space: nowrap;
    transition: opacity .2s;
}

.oz-all-link:hover {
    opacity: .75;
    text-decoration: none;
}

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

@media (max-width: 380px) {
    .oz-container {
        padding: 0 16px;
    }
}

/* ── Quiz: login modal ───────────────────────────────────────────────── */
.oz-login-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.oz-login-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .65);
    cursor: pointer;
}

.oz-login-modal-box {
    position: relative;
    background: var(--oz-white);
    border-radius: 14px;
    padding: 48px 40px 40px;
    max-width: 400px;
    width: calc(100% - 48px);
    text-align: center;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .35);
    z-index: 1;
}

.oz-login-modal-x {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--oz-gray);
    line-height: 1;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background .15s;
}

.oz-login-modal-x:hover {
    background: var(--oz-light);
}

.oz-login-modal-icon {
    font-size: 48px;
    margin-bottom: 16px;
    line-height: 1;
}

.oz-login-modal-box h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--oz-black);
    margin: 0 0 10px;
}

.oz-login-modal-box p {
    font-size: 15px;
    color: var(--oz-gray);
    margin: 0 0 28px;
    line-height: 1.6;
}

.oz-login-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

body.oz-modal-open {
    overflow: hidden;
}

/* ── Quiz: inline error notice ───────────────────────────────────────── */
.oz-error-notice {
    background: rgba(220, 50, 50, .1);
    border: 1px solid rgba(220, 50, 50, .35);
    border-left: 4px solid var(--oz-red);
    color: #8b0000;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

/* ── Shared table (Rezultati + Moje igre) ────────────────────────────── */
.oz-rez-table-wrap {
    background: #1e1e1e;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.oz-rez-table {
    width: 100%;
    border-collapse: collapse;
}

.oz-rez-table thead tr {
    background: rgba(245, 197, 24, .08);
    border-bottom: 1px solid rgba(245, 197, 24, .2);
}

.oz-rez-table th {
    padding: 14px 16px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    color: var(--oz-yellow);
    text-align: left;
}

.oz-rez-table td {
    padding: 14px 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, .7);
    border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.oz-rez-table tbody tr:last-child td {
    border-bottom: none;
}

.oz-rez-table tbody tr:hover {
    background: rgba(255, 255, 255, .03);
}

.oz-rez-row-top td {
    color: #fff;
}

.oz-rez-row-me {
    background: rgba(245, 197, 24, .05) !important;
}

.oz-rez-th-rank,
.oz-rez-td-rank {
    width: 60px;
}


.oz-rez-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, .15);
    flex-shrink: 0;
}

.oz-rez-avatar-ph {
    background: rgba(255, 255, 255, .08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.oz-rez-player-name {
    font-weight: 600;
    margin-left: 10px;
}

.oz-rez-you-badge {
    background: var(--oz-yellow);
    color: var(--oz-black);
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: .05em;
}

.oz-rez-td-score {
    color: var(--oz-yellow) !important;
    font-weight: 700;
}

/* Accuracy colour helpers — used in both Moje igre and Rezultati */
.oz-moje-igre-accuracy {
    font-weight: 700;
}

.oz-acc-good {
    color: #4caf50;
}

.oz-acc-mid {
    color: var(--oz-yellow);
}

.oz-acc-low {
    color: #f44336;
}

/* ── Header auth UI ──────────────────────────────────────────────────── */
.oz-header-auth {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.oz-avatar-sm {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid var(--oz-yellow);
    object-fit: cover;
    display: block;
}

.oz-avatar-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 197, 24, .15);
    font-size: 16px;
    line-height: 1;
}

/* Avatar dropdown trigger */
.oz-header-dropdown-wrap {
    position: relative;
}

.oz-header-avatar-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    border-radius: 20px;
    transition: opacity .2s;
}

.oz-header-avatar-btn:hover {
    opacity: .85;
}

.oz-header-chevron {
    font-size: 10px;
    color: rgba(255, 255, 255, .5);
    transition: transform .2s;
}

.oz-header-dropdown-wrap.open .oz-header-chevron {
    transform: rotate(180deg);
}

/* Dropdown panel */
.oz-header-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #1e1e1e;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
    min-width: 190px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .18s, transform .18s, visibility .18s;
    z-index: 200;
}

.oz-header-dropdown-wrap.open .oz-header-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.oz-header-dropdown-name {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, .4);
    padding: 4px 8px 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    margin-bottom: 4px;
}

.oz-header-dropdown-item {
    display: block;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, .75);
    text-decoration: none;
    border-radius: 6px;
    transition: background .15s, color .15s;
    white-space: nowrap;
}

.oz-header-dropdown-item:hover {
    background: rgba(255, 255, 255, .07);
    color: #fff;
    text-decoration: none;
}

.oz-header-dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, .07);
    margin: 4px 0;
}

.oz-header-dropdown-logout {
    color: rgba(255, 100, 100, .7);
}

.oz-header-dropdown-logout:hover {
    background: rgba(255, 80, 80, .08);
    color: #ff8080;
}

/* Login link (not logged in) */
.oz-header-login-link {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    color: rgba(255, 255, 255, .7);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 6px;
    text-decoration: none;
    transition: all .2s;
    white-space: nowrap;
}

.oz-header-login-link:hover {
    color: var(--oz-yellow);
    border-color: var(--oz-yellow);
    text-decoration: none;
}

@media (max-width: 768px) {
    .oz-header-auth {
        display: flex;
    }

    .oz-header-login-link {
        padding: 6px 11px;
        font-size: 11px;
    }
}