/* ============================================================
   dartr.org — dijeljeni stylesheet za podstranice (V0 build log)
   Dizajn-jezik nasljeđuje index.html: crna / bijela / crveni akcent,
   blueprint pozadina + tamna magla, tekst preko glow sjena.
   Tokeni su izdvojeni u :root da ih kasniji CMS (V1a) reusa.
   ============================================================ */

:root {
    --bg: #000000;
    --fg: #ffffff;
    --muted: #bfbfbf;
    --accent: #ff3333;
    --card: rgba(17, 17, 17, 0.72);
    --card-border: rgba(255, 255, 255, 0.15);
    --font: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    --mono: 'Courier New', Courier, monospace;
    --glow: 0 0 6px #000, 0 0 14px #000, 0 2px 3px #000;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    background-color: var(--bg);
    font-family: var(--font);
    color: var(--fg);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    background-image: url('../index/pozadina1.jpg?v=5');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    min-height: 100dvh;
}

/* Tamna magla preko blueprinta — jača nego na heroju jer ovdje ima puno teksta za čitati */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    pointer-events: none;
    z-index: 0;
}

/* ---------- TOP-NAV (isti izbornik kao na home) ---------- */
.site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    pointer-events: none;
}
.site-nav a { pointer-events: auto; }
.nav-brand {
    font-weight: 800;
    letter-spacing: 1px;
    font-size: 1rem;
    color: var(--fg);
    text-decoration: none;
    text-shadow: var(--glow);
}
.nav-brand .nav-r { color: var(--accent); }
.nav-links a {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    padding: 10px 6px;
    text-shadow: var(--glow);
    transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--fg); }

/* ---------- LAYOUT ---------- */
.page {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 110px 22px 90px;
}
.page--vulcano { max-width: 1200px; }

.page-head { text-align: center; margin-bottom: 14px; }
.eyebrow {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    text-shadow: var(--glow);
}
.page-title {
    font-size: 2.4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 10px 0 0;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.9);
}
.page-title .nav-r { color: var(--accent); }
/* Vulcano naslov-logo (PNG ima pravu alfu -> drop-shadow prati obris) */
.vulcano-logo {
    display: block;
    width: 100%;
    max-width: 420px;
    height: auto;
    margin: 10px auto 0;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.9)) drop-shadow(0 0 14px rgba(0,0,0,0.7));
}
/* naslov za čitače ekrana / SEO kad je vidljivi naslov slika */
.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}
.page-intro {
    max-width: 560px;
    margin: 16px auto 0;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--fg);
    text-align: center;
    text-shadow: var(--glow);
}

/* ---------- PROJEKTI: kartice ---------- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    margin-top: 50px;
}
.project-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.project-card:hover {
    border-color: rgba(255, 255, 255, 0.55);
    transform: translateY(-5px);
}
.project-thumb {
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: repeating-linear-gradient(45deg, #0d0d0d, #0d0d0d 12px, #111 12px, #111 24px);
    color: #555;
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.project-body { padding: 20px 22px 24px; }
.project-name {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin: 0 0 8px;
}
.project-name .nav-r { color: var(--accent); }
.project-desc { margin: 0 0 14px; font-size: 0.95rem; line-height: 1.6; color: #ddd; }
.status-pill {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid rgba(255, 51, 51, 0.5);
    border-radius: 999px;
    padding: 5px 12px;
}

/* ---------- VULCANO: update timeline ---------- */
.timeline { margin-top: 46px; }
.update {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 26px 26px 30px;
    margin-bottom: 28px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}
.update-head {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 14px;
    margin-bottom: 18px;
}
.update-num {
    font-family: var(--mono);
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1px;
}
.update-date {
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 1px;
    color: var(--muted);
}
.update-title {
    flex-basis: 100%;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin: 4px 0 0;
}
.update-body { font-size: 1rem; line-height: 1.7; color: #eaeaea; }
.update-body p { margin: 0 0 1em; }
.update-body p:last-child { margin-bottom: 0; }

.update-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 20px;
}
.update-gallery-stacked {
    grid-template-columns: 1fr;
}
.shot { margin: 0; }
.shot img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-inline: auto;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.shot figcaption {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 8px;
    line-height: 1.4;
}
/* placeholder dok prava slika ne stigne */
.shot--placeholder {
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px dashed rgba(255, 255, 255, 0.25);
    background: repeating-linear-gradient(45deg, #0d0d0d, #0d0d0d 12px, #111 12px, #111 24px);
    color: #666;
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    padding: 12px;
}

/* ---------- FOOTER ---------- */
.page-foot {
    text-align: center;
    margin-top: 60px;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.page-foot a {
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s ease;
}
.page-foot a:hover { color: var(--fg); }

/* ---------- MOBILNO (≥16px tekst, scroll bg, manji naslovi) ---------- */
@media (max-width: 600px) {
    body { background-attachment: scroll; }     /* fixed trza/zumira na iOS/Android */
    .page { padding: 92px 16px 70px; }
    .page-title { font-size: 1.7rem; letter-spacing: 2px; }
    .update { padding: 20px 18px 24px; }
    .update-title { font-size: 1.2rem; }
    .update-body, .page-intro { font-size: 1rem; }
}

/* ---------- A1: tipkovnicki fokus (diskretan bijeli prsten, crno-bijelo-crveni identitet) ---------- */
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 3px; }

/* ---------- A2: reduced motion — ugasi smooth-scroll i pomake samo za korisnike s tom postavkom ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
