/*
 * Radarska slika (/radarska-slika/) — Modernized UI, controls & pSEO layout v4.0.
 * Enqueued synchronously on pages with [vm_radarska_slika].
 */

.vm-rdr-page {
    --rdr-surface: var(--vm-card-bg, #ffffff);
    --rdr-surface-alt: var(--vm-bg-secondary, #f8fafc);
    --rdr-border: rgba(15, 23, 42, 0.09);
    --rdr-border-strong: rgba(15, 23, 42, 0.14);
    --rdr-accent: #2563eb;
    --rdr-accent-soft: rgba(37, 99, 235, 0.10);
    --rdr-hero-bg: linear-gradient(155deg, #f0f5ff 0%, #e4edfb 52%, #edf2f9 100%);
    --rdr-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 18px 40px -24px rgba(15, 23, 42, 0.28);
    max-width: 980px;
    margin: 0 auto;
    padding: 0.5rem 0 2.5rem;
}

[data-theme="dark"] .vm-rdr-page {
    --rdr-surface: var(--vm-card-bg, #0f172a);
    --rdr-surface-alt: rgba(30, 41, 59, 0.65);
    --rdr-border: rgba(255, 255, 255, 0.10);
    --rdr-border-strong: rgba(255, 255, 255, 0.16);
    --rdr-accent: #60a5fa;
    --rdr-accent-soft: rgba(96, 165, 250, 0.14);
    --rdr-hero-bg: linear-gradient(155deg, #152033 0%, #1a2740 55%, #162032 100%);
    --rdr-shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 20px 44px -24px rgba(0, 0, 0, 0.82);
}

/* ── Hero Intro Card ─────────────────────────────────────────────────── */
.vm-rdr-page .vm-rdr-intro--hero {
    position: relative;
    overflow: hidden;
    max-width: 980px;
    margin: 0 auto 2rem;
    padding: 1.75rem 1.6rem 1.45rem;
    border: 1px solid var(--rdr-border);
    border-radius: 24px;
    background: var(--rdr-hero-bg);
    box-shadow: var(--rdr-shadow);
    text-align: center;
}

.vm-rdr-page .vm-rdr-intro--hero::after {
    content: "";
    position: absolute;
    right: -90px;
    top: -110px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.18), rgba(59, 130, 246, 0) 70%);
    pointer-events: none;
}

.vm-rdr-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.75rem;
    padding: 5px 13px;
    border: 1px solid rgba(37, 99, 235, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    color: #1d4ed8;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

[data-theme="dark"] .vm-rdr-hero-eyebrow {
    border-color: rgba(96, 165, 250, 0.28);
    background: rgba(15, 23, 42, 0.65);
    color: #93c5fd;
}

.vm-rdr-hero-eyebrow__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.22);
}

.vm-rdr-page .vm-rdr-intro--hero .vm-rdr-heading {
    margin: 0 auto 0.7rem;
    font-size: clamp(1.45rem, 2.8vw, 2.05rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.2;
    color: var(--vm-text-primary);
}

.vm-rdr-page .vm-rdr-intro--hero .vm-rdr-intro-text {
    max-width: 760px;
    margin: 0 auto 1.2rem;
    font-size: 0.96rem;
    line-height: 1.68;
    color: var(--vm-text-secondary);
}

.vm-rdr-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1.15rem;
}

.vm-rdr-intro-secondary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 18px;
    border: 1px solid var(--rdr-border-strong);
    border-radius: 999px;
    background: var(--rdr-surface);
    color: var(--vm-text-primary) !important;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none !important;
    border-bottom: none !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.vm-rdr-intro-secondary:hover {
    transform: translateY(-1px);
    border-color: var(--rdr-accent);
    box-shadow: 0 6px 16px -8px rgba(15, 23, 42, 0.25);
}

.vm-rdr-intro-secondary svg {
    color: #f59e0b;
}

/* Quick-jump navigation pills */
.vm-rdr-quicknav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding-top: 0.95rem;
    border-top: 1px solid var(--rdr-border);
}

.vm-rdr-quicknav__pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border: 1px solid var(--rdr-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.66);
    color: var(--vm-text-secondary) !important;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none !important;
    border-bottom: none !important;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

[data-theme="dark"] .vm-rdr-quicknav__pill {
    background: rgba(15, 23, 42, 0.52);
}

.vm-rdr-quicknav__pill:hover {
    background: var(--rdr-surface);
    border-color: var(--rdr-accent);
    color: var(--vm-text-primary) !important;
}

.vm-rdr-quicknav__num {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--rdr-accent-soft);
    color: var(--rdr-accent);
    font-size: 0.68rem;
    font-weight: 800;
}

/* ── Radar Cards (1. Gradište, 2. Bilogora, 3. RHMZ Hero) ────────────── */
.vm-rdr-page .vm-rdr-card-grid {
    max-width: 920px;
    margin: 0 auto 2.25rem;
    gap: 24px;
}

.vm-rdr-page .vm-rdr-card,
.vm-rdr-page .vm-rdr-hero {
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--rdr-border);
    border-radius: 22px;
    background: var(--rdr-surface);
    box-shadow: var(--rdr-shadow);
    overflow: hidden;
    scroll-margin-top: 96px;
}

.vm-rdr-page .vm-rdr-hero {
    margin-bottom: 2.5rem;
    padding: 0;
}

.vm-rdr-card__top,
.vm-rdr-page .vm-rdr-hero .vm-rdr-source-header {
    padding: 1.25rem 1.4rem 1rem;
    border-bottom: 1px solid var(--rdr-border);
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.03) 0%, rgba(59, 130, 246, 0) 100%);
    margin-bottom: 0;
}

.vm-rdr-page .vm-rdr-card__head,
.vm-rdr-source-header__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 14px;
    padding: 0;
    margin-bottom: 0.5rem;
}

.vm-rdr-page .vm-rdr-card__title,
.vm-rdr-page .vm-rdr-source-title {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.015em;
    margin: 0;
    color: var(--vm-text-primary);
}

.vm-rdr-badge--secondary {
    display: inline-flex;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(14, 165, 233, 0.12);
    color: #0284c7;
    border: 1px solid rgba(14, 165, 233, 0.25);
}

[data-theme="dark"] .vm-rdr-badge--secondary {
    background: rgba(56, 189, 248, 0.15);
    color: #7dd3fc;
    border-color: rgba(56, 189, 248, 0.28);
}

.vm-rdr-page .vm-rdr-card__desc,
.vm-rdr-page .vm-rdr-source-desc {
    padding: 0;
    margin: 0 0 0.75rem;
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--vm-text-secondary);
}

.vm-rdr-specs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.vm-rdr-spec {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border: 1px solid var(--rdr-border);
    border-radius: 999px;
    background: var(--rdr-surface-alt);
    color: var(--vm-text-secondary);
    font-size: 0.75rem;
    line-height: 1.35;
}

.vm-rdr-spec strong {
    color: var(--vm-text-primary);
    font-weight: 700;
}

/* ── Cohesive Toolbar: Freshness + Feedback + Action Buttons ─────────── */
.vm-rdr-toolbar {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.9rem 1.4rem;
    border-bottom: 1px solid var(--rdr-border);
    background: var(--rdr-surface-alt);
}

.vm-rdr-toolbar > .vm-rdr-latest,
.vm-rdr-page .vm-rdr-source-header > .vm-rdr-latest {
    margin: 0.65rem 0 0;
}

.vm-rdr-toolbar > .vm-rdr-latest {
    margin: 0;
}

.vm-rdr-toolbar__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem 1rem;
}

.vm-rdr-feedback {
    margin: 0;
    flex: 1 1 240px;
    color: var(--vm-text-muted, #64748b);
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.45;
    text-align: left !important;
    overflow-wrap: anywhere;
}

.vm-rdr-feedback--error {
    color: var(--vm-text-primary, #0f172a);
    background: rgba(245, 158, 11, 0.12);
    border-left: 3px solid #d97706;
    padding: 0.55rem 0.75rem;
    border-radius: 0.4rem;
}

.vm-rdr-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
}

.vm-rdr-page .vm-rdr-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    min-width: 44px;
    padding: 0.45rem 0.9rem;
    border: 1px solid var(--rdr-border-strong);
    border-radius: 10px;
    background: var(--rdr-surface);
    color: var(--vm-text-primary, #0f172a);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.25;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.vm-rdr-page .vm-rdr-action:hover:not(:disabled) {
    background: var(--rdr-accent-soft);
    border-color: var(--rdr-accent);
    transform: translateY(-1px);
}

.vm-rdr-page .vm-rdr-action:disabled,
.vm-rdr-page button:disabled {
    opacity: 0.48;
    cursor: default;
}

.vm-rdr-page .vm-rdr-action[hidden],
.vm-rdr-page .vm-rdr-feedback[hidden] {
    display: none !important;
}

.vm-rdr-page button:focus-visible,
.vm-rdr-page input:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 3px;
}

.vm-rdr-page .vm-rdr-card .vm-rdr-image-wrap {
    padding: 1.1rem;
    background: radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.02), rgba(15, 23, 42, 0.05));
}

[data-theme="dark"] .vm-rdr-page .vm-rdr-card .vm-rdr-image-wrap {
    background: rgba(2, 6, 23, 0.45);
}

.vm-rdr-page .vm-rdr-card .vm-rdr-image {
    border-radius: 12px;
    box-shadow: 0 6px 20px -8px rgba(15, 23, 42, 0.25);
}

.vm-rdr-page .vm-rdr-hero .vm-rdr-stale-banner {
    margin: 0.85rem 1.4rem 0;
}

.vm-rdr-page .vm-rdr-hero .vm-rdr-player {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.vm-rdr-player__time { flex-wrap: wrap; }
.vm-rdr-player__time #vm-rdr-time-text { white-space: normal; }

/* ── Section Headers (dBZ, Comparison, Info, FAQ) ───────────────────── */
.vm-rdr-section {
    max-width: 920px;
    margin: 0 auto 2.5rem;
    scroll-margin-top: 96px;
}

.vm-rdr-section-head {
    text-align: center;
    margin-bottom: 1.15rem;
}

.vm-rdr-section-kicker {
    display: inline-block;
    margin-bottom: 0.3rem;
    color: var(--rdr-accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.vm-rdr-section-head .vm-rdr-heading {
    margin: 0;
    font-size: clamp(1.22rem, 2.2vw, 1.55rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* ── dBZ Scale 5-Tier Breakdown Grid ─────────────────────────────────── */
.vm-rdr-page .vm-rdr-dbz-card {
    border-radius: 20px;
    border: 1px solid var(--rdr-border);
    box-shadow: var(--rdr-shadow);
    padding: 1.5rem;
}

.vm-rdr-dbz-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
    gap: 10px;
    margin-top: 1.15rem;
}

.vm-rdr-dbz-tier {
    padding: 0.85rem 0.95rem;
    border: 1px solid var(--rdr-border);
    border-radius: 14px;
    background: var(--rdr-surface-alt);
}

.vm-rdr-dbz-tier__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 0.4rem;
    font-size: 0.84rem;
    color: var(--vm-text-primary);
}

.vm-rdr-dbz-tier__swatch {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    flex-shrink: 0;
}

.vm-rdr-dbz-tier--low .vm-rdr-dbz-tier__swatch { background: #38bdf8; box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2); }
.vm-rdr-dbz-tier--mod .vm-rdr-dbz-tier__swatch { background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2); }
.vm-rdr-dbz-tier--heavy .vm-rdr-dbz-tier__swatch { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2); }
.vm-rdr-dbz-tier--severe .vm-rdr-dbz-tier__swatch { background: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2); }
.vm-rdr-dbz-tier--extreme .vm-rdr-dbz-tier__swatch { background: #a855f7; box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.22); }

.vm-rdr-dbz-tier__rate {
    margin-left: auto;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--rdr-surface);
    border: 1px solid var(--rdr-border);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--vm-text-secondary);
    font-variant-numeric: tabular-nums;
}

.vm-rdr-dbz-tier p {
    margin: 0;
    font-size: 0.79rem;
    line-height: 1.5;
    color: var(--vm-text-secondary);
}

/* ── Radar Comparison Table & Regional Hub ───────────────────────────── */
.vm-rdr-table-wrap {
    overflow-x: auto;
    margin-bottom: 1.35rem;
    border: 1px solid var(--rdr-border);
    border-radius: 18px;
    background: var(--rdr-surface);
    box-shadow: var(--rdr-shadow);
}

.vm-rdr-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.5;
    text-align: left;
}

.vm-rdr-table th,
.vm-rdr-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--rdr-border);
    vertical-align: top;
}

.vm-rdr-table thead th {
    background: var(--rdr-surface-alt);
    color: var(--vm-text-primary);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.vm-rdr-table tbody tr:last-child td {
    border-bottom: 0;
}

.vm-rdr-regions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.vm-rdr-region-card {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.2rem 1.25rem;
    border: 1px solid var(--rdr-border);
    border-radius: 18px;
    background: var(--rdr-surface);
    box-shadow: var(--rdr-shadow);
}

.vm-rdr-region-card__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--vm-text-primary);
    line-height: 1.3;
}

.vm-rdr-region-card__text {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.62;
    color: var(--vm-text-secondary);
}

.vm-rdr-region-card__links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    padding-top: 0.35rem;
}

.vm-rdr-region-card__links a {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border: 1px solid var(--rdr-border);
    border-radius: 999px;
    background: var(--rdr-surface-alt);
    color: var(--rdr-accent) !important;
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: none !important;
    border-bottom: none !important;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.vm-rdr-region-card__links a:hover {
    background: var(--rdr-accent-soft);
    border-color: var(--rdr-accent);
}

/* ── Educational Info Grid & FAQ Accordion ───────────────────────────── */
.vm-rdr-seo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.vm-rdr-page .vm-rdr-info-card {
    margin-bottom: 0;
    border-radius: 18px;
    border: 1px solid var(--rdr-border);
    border-left: 4px solid var(--rdr-accent);
    box-shadow: var(--rdr-shadow);
}

.vm-rdr-faq__list {
    display: grid;
    gap: 10px;
}

.vm-rdr-faq__item {
    border: 1px solid var(--rdr-border);
    border-radius: 16px;
    background: var(--rdr-surface);
    box-shadow: 0 2px 10px -6px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.vm-rdr-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 1rem 1.2rem;
    cursor: pointer;
    list-style: none;
    font-size: 0.95rem;
    font-weight: 750;
    color: var(--vm-text-primary);
    line-height: 1.35;
}

.vm-rdr-faq__question::-webkit-details-marker { display: none; }
.vm-rdr-faq__question::marker { content: ""; }

.vm-rdr-faq__chevron {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--rdr-surface-alt);
    color: var(--vm-text-muted);
    flex-shrink: 0;
    transition: transform 0.2s ease, background-color 0.15s ease, color 0.15s ease;
}

.vm-rdr-faq__item[open] .vm-rdr-faq__chevron {
    transform: rotate(180deg);
    background: var(--rdr-accent-soft);
    color: var(--rdr-accent);
}

.vm-rdr-faq__answer {
    padding: 0 1.2rem 1.1rem;
    border-top: 1px solid var(--rdr-border);
}

.vm-rdr-faq__answer p {
    margin: 0.85rem 0 0;
    font-size: 0.89rem;
    line-height: 1.7;
    color: var(--vm-text-secondary);
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .vm-rdr-regions-grid {
        grid-template-columns: 1fr;
    }
    .vm-rdr-page .vm-rdr-intro--hero {
        padding: 1.35rem 1.1rem 1.15rem;
        border-radius: 20px;
    }
    .vm-rdr-card__top,
    .vm-rdr-page .vm-rdr-hero .vm-rdr-source-header,
    .vm-rdr-toolbar {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .vm-rdr-page .vm-rdr-card .vm-rdr-image-wrap {
        padding: 0.65rem;
    }
}

@media (max-width: 480px) {
    .vm-rdr-page .vm-rdr-latest { grid-template-columns: auto 1fr; }
    .vm-rdr-page .vm-rdr-latest__age { grid-column: 2; }
    .vm-rdr-player__time { max-width: 12rem; }
    .vm-rdr-toolbar__row {
        flex-direction: column;
        align-items: stretch;
    }
    .vm-rdr-actions {
        width: 100%;
    }
    .vm-rdr-page .vm-rdr-action {
        flex: 1 1 auto;
    }
}
