/*
Theme Name: Planet Band
Theme URI: https://planet-band.com
Author: SneXhost
Author URI: https://snexhost.com
Description: Lagana vlastita tema za Planet Band – termini s datumom, audio player, YouTube na klik, obrazac za upit bez reCAPTCHA.
Version: 1.0.0
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: planetband
*/

/* ---------- Varijable ---------- */
:root {
	--bg: #081127;
	--bg-2: #0B1736;
	--card: #0F1D44;
	--card-2: #13245A;
	--line: rgba(143, 179, 255, .16);
	--text: #EEF3FF;
	--muted: #A9B8DC;
	--link: #8FB3FF;
	--accent: #2F62F0;
	--radius: 14px;
	--pill: 999px;
	--wrap: 1240px;
	--f-head: "Barlow Condensed", "Arial Narrow", sans-serif;
	--f-body: Barlow, system-ui, -apple-system, "Segoe UI", sans-serif;
	--header-h: 72px;
}

/* ---------- Osnova ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--f-body); font-size: 17px; line-height: 1.6; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { color: #BFD3FF; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.05; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid #8FB3FF; outline-offset: 3px; border-radius: 4px; }
.ico { flex-shrink: 0; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed !important; top: 12px; left: 12px; width: auto; height: auto; clip: auto; z-index: 100; background: #fff; color: var(--bg); padding: 12px 18px; border-radius: 8px; font-weight: 700; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap--uski { max-width: 860px; }

.h-xl, .h-lg, .hero__naslov, .logo__tekst { font-family: var(--f-head); font-weight: 800; text-transform: uppercase; letter-spacing: .01em; }
.h-xl { font-size: clamp(44px, 6vw, 72px); line-height: .95; }
.h-lg { font-size: clamp(38px, 4.6vw, 56px); line-height: 1; }
.lead { font-size: 19px; color: var(--muted); max-width: 560px; }
.muted { color: var(--muted); }
.eyebrow { margin: 0 0 14px; font-weight: 700; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--link); }
.prazno { padding: 28px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

/* ---------- Gumbi ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 14px 28px; border: 1px solid transparent; border-radius: var(--pill); background: var(--accent); color: #fff; font: inherit; font-weight: 700; line-height: 1.2; cursor: pointer; transition: filter .15s, background .15s, transform .15s; }
.btn:hover { color: #fff; filter: brightness(1.12); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; border-color: rgba(143, 179, 255, .45); color: var(--text); }
.btn--ghost:hover { background: rgba(143, 179, 255, .1); color: var(--text); }
.btn--ghost-light { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .12); }
.btn--dark { background: var(--bg); }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.btn--block { width: 100%; }
.btn-red { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.link-strelica { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }

/* ---------- Zaglavlje ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(8, 17, 39, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--text); }
.logo:hover { color: var(--text); }
.logo__znak { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--accent); display: inline-flex; align-items: center; justify-content: center; }
.logo__tekst { font-size: 26px; letter-spacing: .08em; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 26px; }
.nav__list > li { position: relative; }
.nav__list a { color: var(--text); font-weight: 600; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; display: block; padding: 8px 0; }
.nav__list a:hover, .nav__list .current-menu-item > a { color: var(--link); }
.nav__list .sub-menu { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: -16px; min-width: 230px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; }
.nav__list li:hover > .sub-menu, .nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav__list .sub-menu a { padding: 10px 12px; border-radius: 8px; text-transform: none; letter-spacing: 0; font-size: 16px; }
.nav__list .sub-menu a:hover { background: var(--card-2); }
.nav__tel { white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); width: 48px; height: 48px; align-items: center; justify-content: center; cursor: pointer; border-radius: 10px; }
.nav-toggle__close { display: none; }

@media (max-width: 1020px) {
	/* backdrop-filter bi zarobio position:fixed izbornik unutar zaglavlja */
	.site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
	.nav-toggle { display: inline-flex; }
	.nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg); flex-direction: column; align-items: stretch; gap: 20px; padding: 20px 24px 40px; overflow-y: auto; transform: translateX(100%); transition: transform .25s ease; visibility: hidden; }
	.admin-bar .nav { top: calc(var(--header-h) + 46px); }
	body.nav-open { overflow: hidden; }
	body.nav-open .nav { transform: none; visibility: visible; }
	body.nav-open .nav-toggle__open { display: none; }
	body.nav-open .nav-toggle__close { display: inline; }
	.nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.nav__list > li { border-bottom: 1px solid var(--line); }
	.nav__list a { padding: 16px 0; font-size: 20px; }
	.nav__list .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; background: none; border: 0; box-shadow: none; padding: 0 0 12px 12px; min-width: 0; }
	.nav__list .sub-menu a { font-size: 17px; padding: 10px 0; color: var(--muted); }
	.nav__tel { justify-content: center; font-size: 18px; min-height: 54px; }
}

/* ---------- Hero ---------- */
.hero { display: flex; flex-wrap: wrap; min-height: min(720px, calc(100vh - var(--header-h))); }
.hero__slika { flex: 1 1 520px; min-height: 380px; position: relative; background: var(--card); overflow: hidden; }
.hero__slika img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__slika::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 17, 39, 0) 60%, rgba(8, 17, 39, .55)); }
.hero__tekst { flex: 1 1 520px; display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 6vw, 80px) clamp(24px, 4.5vw, 64px); background: linear-gradient(180deg, #0D1B45, var(--bg)); }
.hero__naslov { margin: 0; font-size: clamp(60px, 8vw, 116px); line-height: .9; }
.hero .lead { margin-top: 22px; }
.sljedeci { display: inline-flex; flex-direction: column; gap: 2px; margin-top: 34px; padding: 14px 18px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--text); align-self: flex-start; }
.sljedeci:hover { color: var(--text); border-color: rgba(143, 179, 255, .4); }
.sljedeci__lbl { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.sljedeci__val { font-weight: 700; font-size: 19px; }
.statistika { display: flex; flex-wrap: wrap; gap: 36px; margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--line); }
.statistika strong { display: block; font-family: var(--f-head); font-weight: 800; font-size: 40px; line-height: 1; }
.statistika span { color: var(--muted); font-size: 14px; }

/* ---------- Sekcije ---------- */
.sekcija { padding: clamp(64px, 8vw, 96px) 0; }
.sekcija--tamnija { background: var(--bg-2); }
.sekcija--bez-vrha { padding-top: 0; }
.sekcija__glava { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 32px; }
.sekcija__glava .h-lg { margin-bottom: 6px; }
.sekcija__glava p { margin: 0; }

/* ---------- Termini ---------- */
.termini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.termin { display: flex; gap: 18px; align-items: center; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.termin__datum { width: 68px; height: 68px; flex-shrink: 0; border-radius: 12px; background: var(--accent); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.termin__dan { font-family: var(--f-head); font-weight: 800; font-size: 30px; line-height: 1; }
.termin__mj { font-size: 12px; font-weight: 700; text-transform: uppercase; }
.termin__god { font-size: 11px; font-weight: 600; opacity: .8; line-height: 1; }
.termin__info { min-width: 0; }
.termin__mjesto { margin: 0; font-family: var(--f-body); font-size: 20px; font-weight: 700; line-height: 1.25; }
.termin__drzava { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.termin__nap { margin: 6px 0 0; display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--link); }
.mjesec-naslov { margin: 48px 0 16px; font-family: var(--f-head); font-weight: 700; font-size: 30px; text-transform: uppercase; color: var(--muted); }
.mjesec-naslov:first-child { margin-top: 0; }
.godine { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.godine a { padding: 10px 18px; border-radius: var(--pill); border: 1px solid var(--line); color: var(--text); font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.godine a[aria-current="page"] { background: var(--accent); border-color: var(--accent); }

/* ---------- Repertoar + player ---------- */
.dvostupac { display: flex; flex-wrap: wrap; gap: 48px; }
.dvostupac__uski { flex: 1 1 320px; min-width: 0; }
.dvostupac__siroki { flex: 999 1 560px; min-width: 0; }
.h-md { font-family: var(--f-head); font-weight: 800; text-transform: uppercase; font-size: 34px; line-height: 1; margin-bottom: 20px; }
.repertoar { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.repertoar a { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-radius: 12px; background: var(--card); color: var(--text); font-weight: 700; font-size: 19px; border: 1px solid transparent; transition: border-color .15s; }
.repertoar a:hover { border-color: var(--line); color: var(--text); }
.repertoar .ico { color: var(--link); }

.player { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.player__top { display: flex; align-items: center; gap: 18px; padding: 20px 22px; background: var(--card-2); }
.player__btn { width: 54px; height: 54px; flex-shrink: 0; border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.player__btn .player__ico-pause, .player.is-playing .player__btn .player__ico-play { display: none; }
.player.is-playing .player__btn .player__ico-pause { display: inline; }
.player__info { flex: 1; min-width: 0; }
.player__naslov { font-weight: 700; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__traka { height: 18px; display: flex; align-items: center; cursor: pointer; margin-top: 4px; position: relative; }
.player__traka::before { content: ""; position: absolute; left: 0; right: 0; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .15); }
.player__napredak { position: relative; height: 4px; width: 0; border-radius: 2px; background: var(--link); }
.player__vrijeme { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.player__lista { list-style: none; margin: 0; padding: 8px 12px 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); column-gap: 12px; }
.pjesma { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 8px 10px; border: 0; border-bottom: 1px solid rgba(143, 179, 255, .08); background: none; color: var(--text); font: inherit; font-size: 15px; text-align: left; cursor: pointer; border-radius: 8px; }
.pjesma:hover { background: rgba(143, 179, 255, .07); }
.pjesma.is-active { color: #fff; background: rgba(47, 98, 240, .25); }
.pjesma__br { width: 22px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pjesma__naslov { flex: 1; }
.pjesma__duz { color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- Video ---------- */
.video-grid { display: grid; gap: 16px; grid-template-columns: 2fr 1fr; }
.video-grid--1 { grid-template-columns: 1fr; max-width: 900px; }
.video-grid--2 { grid-template-columns: 1fr 1fr; }
.video-grid--3 > :first-child { grid-row: span 2; }
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: var(--card); cursor: pointer; }
.video-grid--3 > .yt:first-child { aspect-ratio: auto; height: 100%; min-height: 300px; }
.yt img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.yt:hover img { transform: scale(1.03); }
.yt__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 68px; height: 68px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--bg); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 30px rgba(0, 0, 0, .35); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-kanal { display: flex; align-items: center; gap: 18px; padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: 19px; }
.yt-kanal .ico { color: #FF4D4D; }
@media (max-width: 760px) {
	.video-grid, .video-grid--2 { grid-template-columns: 1fr; }
	.video-grid--3 > :first-child { grid-row: auto; }
	.video-grid--3 > .yt:first-child { aspect-ratio: 16 / 9; height: auto; min-height: 0; }
}

/* ---------- Kontakt ---------- */
.kontakt { background: var(--accent); color: #fff; }
.kontakt__in { display: flex; flex-wrap: wrap; gap: 48px; padding-top: clamp(64px, 8vw, 88px); padding-bottom: clamp(64px, 8vw, 88px); align-items: flex-start; }
.kontakt__tekst { flex: 1 1 400px; min-width: 0; }
.kontakt .lead { color: rgba(255, 255, 255, .88); }
.kontakt__podaci { display: flex; flex-direction: column; gap: 6px; margin-top: 30px; }
.kontakt__ime { font-size: 15px; opacity: .85; }
.kontakt__tel { color: #fff; font-family: var(--f-head); font-weight: 800; font-size: clamp(34px, 4vw, 44px); line-height: 1.1; }
.kontakt__mail { color: #fff; text-decoration: underline; text-underline-offset: 3px; font-size: 18px; }
.kontakt a:hover { color: #fff; opacity: .9; }
.kontakt__brzo { display: flex; gap: 10px; margin-top: 16px; }

.upit { flex: 1 1 460px; min-width: 0; background: #fff; color: #0A1530; border-radius: 16px; padding: clamp(20px, 3vw, 30px); display: flex; flex-direction: column; gap: 14px; }
.polje { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; min-width: 0; }
.polje-red .polje { flex: 1 1 190px; }
.polje-red { display: flex; flex-wrap: wrap; gap: 14px; }
.polje input, .polje select, .polje textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #C2CDE6; border-radius: 10px; background: #fff; color: #0A1530; font: inherit; font-weight: 400; font-size: 16px; }
.polje textarea { min-height: 110px; resize: vertical; }
.polje input:focus, .polje select:focus, .polje textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47, 98, 240, .25); }
.upit__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.upit__poruka { margin: 0; padding: 14px 16px; border-radius: 10px; font-weight: 600; }
.upit__poruka--ok { background: #E3F5E9; color: #13532C; }
.upit__poruka--err { background: #FDE7E7; color: #8A1C1C; }
.upit .btn--dark:hover { background: #142456; filter: none; }

/* ---------- Stranice ---------- */
.page-head { padding: clamp(56px, 7vw, 88px) 0 clamp(32px, 4vw, 48px); background: linear-gradient(180deg, #0D1B45, var(--bg)); margin-bottom: clamp(32px, 4vw, 48px); }
.page-head .lead { margin-top: 12px; }
.sadrzaj { padding-bottom: 72px; font-size: 18px; }
.sadrzaj h2, .sadrzaj h3, .sadrzaj h4 { font-family: var(--f-head); font-weight: 700; text-transform: uppercase; margin-top: 1.6em; }
.sadrzaj h2 { font-size: 34px; }
.sadrzaj h3, .sadrzaj h4 { font-size: 26px; color: var(--link); }
.sadrzaj ul, .sadrzaj ol { padding-left: 1.2em; }
.sadrzaj li { margin: .25em 0; }
.sadrzaj img { border-radius: 10px; }
.sadrzaj table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.sadrzaj td, .sadrzaj th { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.sadrzaj em { color: var(--muted); }
.repertoar-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 28px; margin-bottom: 72px; background: var(--card); border-radius: var(--radius); }
.repertoar-cta p { margin: 0; font-weight: 600; }
.koraci { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.koraci li { padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.koraci__br { display: inline-flex; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); align-items: center; justify-content: center; font-family: var(--f-head); font-weight: 800; font-size: 24px; margin-bottom: 16px; }
.koraci h2 { font-size: 22px; font-weight: 700; }
.koraci p { margin: 0; color: var(--muted); }
.lista-clanak { padding: 24px 0; border-bottom: 1px solid var(--line); }
.lista-clanak h2 { font-size: 26px; }
.lista-clanak h2 a { color: var(--text); }
.nav-links { display: flex; gap: 12px; margin-top: 32px; }
.page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); }
.page-numbers.current { background: var(--accent); border-color: var(--accent); }

/* ---------- Podnožje ---------- */
.site-footer { border-top: 1px solid var(--line); padding-top: 40px; color: var(--muted); font-size: 15px; }
.site-footer__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 32px; }
.site-footer__brand p { margin: 10px 0 0; }
.site-footer__kontakt { display: flex; flex-direction: column; gap: 4px; }
.site-footer__kontakt a { color: var(--text); font-weight: 600; }
.drustvene { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
.drustvene a { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--text); }
.drustvene a:hover { background: var(--card); }
.site-footer__dno { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--line); font-size: 14px; }

@media (max-width: 600px) {
	body { font-size: 16px; }
	.hero__slika { min-height: 300px; flex-basis: 100%; }
	.statistika { gap: 24px; }
	.termin { padding: 16px; }
	.player__top { padding: 16px; gap: 14px; }
	.player__lista { padding: 6px 6px 10px; }
}
