/* ================================================================
   Offside Zamka – Offside Kutak (news archive + single post)
   Loaded only on: is_home() || is_singular('post')
   ================================================================ */

/* ── Category badges ─────────────────────────────────────────────────── */
.oz-cat-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.oz-cat--yellow  { background: var(--oz-yellow); color: var(--oz-black); }
.oz-cat--blue    { background: #2563EB; color: #fff; }
.oz-cat--teal    { background: #0891B2; color: #fff; }
.oz-cat--purple  { background: #7C3AED; color: #fff; }
.oz-cat--orange  { background: #EA580C; color: #fff; }
.oz-cat--default { background: var(--oz-dark); color: var(--oz-gray); }

/* ── Page hero header ────────────────────────────────────────────────── */
.oz-kutak-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%;
    padding: 72px 0 56px;
    border-bottom: 1px solid rgba(245, 197, 24, .15);
}

.oz-kutak-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: 20px;
}

.oz-kutak-hero-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900;
    color: #fff;
    margin: 0 0 12px;
    letter-spacing: .04em;
}

.oz-kutak-hero-sub {
    font-size: 16px;
    color: rgba(255, 255, 255, .55);
    margin: 0;
}

/* ── Section labels ──────────────────────────────────────────────────── */
.oz-kutak-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--oz-yellow);
    margin: 0 0 12px;
}

/* ── Featured post ───────────────────────────────────────────────────── */
.oz-kutak-featured-wrap {
    background: var(--oz-light);
    padding: 40px 0 48px;
    border-bottom: 1px solid var(--oz-border);
}

.oz-kutak-featured {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 40px;
    align-items: center;
    background: var(--oz-white);
    border-radius: var(--oz-radius);
    overflow: hidden;
    box-shadow: var(--oz-shadow);
}

.oz-kutak-featured-img-wrap {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--oz-dark);
    flex-shrink: 0;
}

.oz-kutak-featured-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.oz-kutak-featured-img-wrap:hover img {
    transform: scale(1.03);
}

.oz-kutak-featured-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--oz-gray);
    font-size: 14px;
    background: #2a2a2a;
}

.oz-kutak-featured-body {
    padding: 36px 36px 36px 0;
}

.oz-kutak-featured-title {
    font-size: clamp(20px, 2.5vw, 30px);
    font-weight: 900;
    line-height: 1.2;
    margin: 0 0 14px;
    color: var(--oz-black);
}

.oz-kutak-featured-title a {
    color: inherit;
    text-decoration: none;
}

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

.oz-kutak-featured-excerpt {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin: 0 0 18px;
}

.oz-kutak-featured-meta {
    display: flex;
    gap: 6px;
    align-items: center;
    font-size: 13px;
    color: var(--oz-gray);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.oz-kutak-featured-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    background: var(--oz-yellow);
    color: var(--oz-black);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .05em;
    border-radius: 6px;
    text-decoration: none;
    transition: opacity .2s, transform .15s;
}

.oz-kutak-featured-btn:hover {
    opacity: .85;
    transform: translateY(-1px);
    text-decoration: none;
    color: var(--oz-black);
}

/* ── Filter bar ──────────────────────────────────────────────────────── */
.oz-kutak-filter-bar {
    background: var(--oz-white);
    border-bottom: 1px solid var(--oz-border);
    padding: 14px 0;
    position: sticky;
    top: 68px;
    z-index: 80;
}

.oz-filter-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.oz-filter-pill {
    display: inline-block;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    border: 1.5px solid var(--oz-border);
    border-radius: 20px;
    color: var(--oz-black);
    background: var(--oz-white);
    text-decoration: none;
    transition: border-color .15s, background .15s, color .15s;
    white-space: nowrap;
}

.oz-filter-pill:hover {
    border-color: var(--oz-yellow);
    color: var(--oz-black);
    text-decoration: none;
}

.oz-filter-pill.active {
    background: var(--oz-yellow);
    border-color: var(--oz-yellow);
    color: var(--oz-black);
}

/* ── Posts grid body ─────────────────────────────────────────────────── */
.oz-kutak-body {
    background: var(--oz-light);
    padding: 48px 0 72px;
}

.oz-kutak-grid-head {
    margin-bottom: 28px;
}

.oz-kutak-grid-title {
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 900;
    color: var(--oz-black);
    margin: 0;
}

.oz-kutak-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

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

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

.oz-kutak-card-img-wrap {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--oz-dark);
}

.oz-kutak-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

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

.oz-kutak-card-placeholder {
    width: 100%;
    height: 100%;
    background: #222;
}

.oz-kutak-card-body {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.oz-kutak-card-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 10px;
    color: var(--oz-black);
}

.oz-kutak-card-title a {
    color: inherit;
    text-decoration: none;
}

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

.oz-kutak-card-meta {
    display: flex;
    gap: 6px;
    font-size: 12px;
    color: var(--oz-gray);
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.oz-kutak-card-read {
    font-size: 12px;
    color: var(--oz-gray);
    margin: 0 0 14px;
}

.oz-kutak-card-link {
    margin-top: auto;
    font-size: 13px;
    font-weight: 700;
    color: var(--oz-yellow);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color .2s;
    align-self: flex-start;
}

.oz-kutak-card-link:hover {
    border-bottom-color: var(--oz-yellow);
    text-decoration: none;
}

/* ── Single post: breadcrumb ─────────────────────────────────────────── */
.oz-single-breadcrumb {
    background: var(--oz-light);
    border-bottom: 1px solid var(--oz-border);
    padding: 12px 0;
    font-size: 13px;
    color: var(--oz-gray);
}

.oz-single-breadcrumb a {
    color: var(--oz-gray);
    text-decoration: none;
}

.oz-single-breadcrumb a:hover {
    color: var(--oz-yellow);
    text-decoration: none;
}

.oz-single-breadcrumb-sep {
    margin: 0 8px;
    color: var(--oz-border);
}

/* ── Single post: hero ───────────────────────────────────────────────── */
.oz-single-hero {
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(135deg, #111 0%, #1a1a1a 60%, #1f1a00 100%);
}

.oz-single-hero--plain { padding: 60px 0 40px; }
.oz-single-hero--img   { padding: 0; }

.oz-single-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .45;
}

.oz-single-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.85) 40%, rgba(0,0,0,.2) 100%);
}

.oz-single-hero-content {
    position: relative;
    z-index: 2;
    padding-top: 48px;
    padding-bottom: 48px;
    width: 100%;
    max-width: 760px;
}

.oz-single-title {
    font-size: clamp(24px, 3.5vw, 44px);
    font-weight: 900;
    color: var(--oz-white);
    line-height: 1.15;
    margin: 8px 0 16px;
}

.oz-single-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 14px;
    color: rgba(255,255,255,.7);
    flex-wrap: wrap;
}

.oz-view-count {
    font-size: 13px;
    opacity: .85;
}

/* ── Single post: content body ───────────────────────────────────────── */
.oz-single-body {
    padding: 56px 0 72px;
    background: var(--oz-white);
}

.oz-single-body .oz-entry-content {
    max-width: 720px;
    font-size: 17px;
    line-height: 1.85;
    color: #333;
}

.oz-single-body .oz-entry-content h2 { font-size: 24px; margin-top: 2em; }
.oz-single-body .oz-entry-content h3 { font-size: 20px; margin-top: 1.8em; }
.oz-single-body .oz-entry-content p  { margin-bottom: 1.5em; }
.oz-single-body .oz-entry-content img {
    border-radius: var(--oz-radius);
    margin: 24px 0;
    max-width: 100%;
}
.oz-single-body .oz-entry-content figure { margin: 24px 0; }
.oz-single-body .oz-entry-content figcaption {
    font-size: 13px;
    color: var(--oz-gray);
    text-align: center;
    margin-top: 8px;
}
.oz-single-body .oz-entry-content ul,
.oz-single-body .oz-entry-content ol {
    padding-left: 1.5em;
    margin-bottom: 1.5em;
}
.oz-single-body .oz-entry-content blockquote {
    border-left: 4px solid var(--oz-yellow);
    padding: 12px 20px;
    margin: 24px 0;
    background: var(--oz-light);
    border-radius: 0 var(--oz-radius) var(--oz-radius) 0;
    font-style: italic;
    color: #444;
}

.oz-single-back {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--oz-border);
}

.oz-single-back a {
    font-size: 14px;
    font-weight: 700;
    color: var(--oz-gray);
    text-decoration: none;
    transition: color .2s;
}

.oz-single-back a:hover {
    color: var(--oz-yellow);
    text-decoration: none;
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .oz-kutak-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .oz-kutak-featured {
        grid-template-columns: 340px 1fr;
    }
}

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

    .oz-kutak-featured {
        grid-template-columns: 1fr;
    }

    .oz-kutak-featured-img-wrap {
        aspect-ratio: 16 / 9;
    }

    .oz-kutak-featured-body {
        padding: 24px;
    }
}

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

    .oz-single-hero {
        min-height: 260px;
    }
}
