/* LOGO Tech · stil stranice
   Boje i oblici prate novi logo: crna podloga, brušeni metal,
   narančasti akcent i "odrezani" kutovi kao na slovima LOGO. */

:root {
  --bg: #0b0d11;
  --surface: #14171c;
  --surface-2: #1d2128;
  --line: #2a2f37;
  --metal: #b8b8b8;
  --text: #eef0f2;
  --muted: #9ba1a9;
  --orange: #f85c02;
  --orange-hi: #ff7d0d;

  --font-display: "Chakra Petch", "Segoe UI", sans-serif;
  --font-body: "Barlow", "Segoe UI", Arial, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
}

/* Gumbi, playeri i kartice imaju "odrezane" kutove (gore lijevo i dolje desno),
   kao slova LOGO u logotipu. To radi clip-path s varijablom --cut. */

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 600; }

p { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

:focus-visible {
  outline: 2px solid var(--orange-hi);
  outline-offset: 3px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--orange); color: var(--bg);
  padding: 10px 16px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Gumbi ---------- */

.btn {
  --cut: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.8rem 1.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: background-color .15s ease, color .15s ease;
}
/* clip-path odreže i obični outline, pa fokus crtamo iznutra */
.btn:focus-visible,
.player:focus-visible,
.social-link:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--text);
}

.btn-primary { background-color: var(--orange); color: var(--bg); }
.btn-primary:hover { background-color: var(--orange-hi); }

.btn-ghost { background-color: var(--surface-2); color: var(--text); }
.btn-ghost:hover { background-color: var(--line); }

.btn-sm { padding: 0.55rem 1rem; font-size: 0.95rem; --cut: 7px; }

.text-link {
  color: var(--muted);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
}
.text-link:hover { color: var(--text); text-decoration-color: var(--orange); }

/* ---------- Zaglavlje ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 17, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 64px;
}

.brand img { height: 32px; width: auto; }

.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}
.nav a:hover { color: var(--text); }

/* ---------- Banner ---------- */

.hero { position: relative; background: #000; }

.hero-img {
  width: 100%;
  height: auto;
  max-height: 78vh;
  object-fit: cover;
  object-position: center 40%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 22%;
  background: linear-gradient(to bottom, rgba(11, 13, 17, 0), var(--bg));
  pointer-events: none;
}

/* ---------- Uvod ---------- */

.intro { padding: 40px 0 64px; }

.intro-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px 56px;
  align-items: end;
}

.intro h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.7rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.intro-side p {
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 46ch;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* ---------- Sekcije ---------- */

.section { padding: 72px 0; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

/* ---------- Videi ---------- */

.videos { padding-top: 24px; }

.video-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.player {
  --cut: 14px;
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}

.player img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Narančasti trokut u donjem lijevom kutu, kao na slovu L */
.player::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44px;
  height: 44px;
  background: var(--orange);
  clip-path: polygon(0 0, 0 100%, 100% 100%);
  pointer-events: none;
}

.play {
  --cut: 8px;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 78px;
  height: 54px;
  transform: translate(-50%, -50%);
  background: var(--orange);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: background-color .15s ease;
}
.play::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-35%, -50%);
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--bg);
}
a.player:hover .play { background: var(--orange-hi); }

.featured-meta { margin-top: 18px; }

.featured-title {
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  font-weight: 600;
  line-height: 1.25;
}

.date {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.video-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.video-item {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 8px 10px 8px 8px;
  border-left: 3px solid transparent;
  text-decoration: none;
  transition: background-color .15s ease;
}
.video-item:hover { background: var(--surface); }
.video-item.is-active { background: var(--surface); border-left-color: var(--orange); }

.video-item img {
  width: 132px;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--surface-2);
}

.vi-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 500;
  font-size: 0.98rem;
  line-height: 1.35;
}
.video-item .date { margin-top: 4px; font-size: 0.82rem; }

/* ---------- O kanalu ---------- */

.about {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.about-badge { width: 100%; height: auto; }

.about-text { max-width: 64ch; }
.about-text h2 { margin-bottom: 16px; }
.about-text > p { color: var(--muted); }

.topics { margin: 28px 0 0; }
.topics div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.topics div:last-child { border-bottom: 1px solid var(--line); }
.topics dt { font-family: var(--font-display); font-weight: 600; }
.topics dd { margin: 0; color: var(--muted); }

.about-text .note { margin-top: 24px; }

/* ---------- Mreže ---------- */

.social h2 { margin-bottom: 28px; }

.social-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.social-link {
  --cut: 10px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: center;
  padding: 18px 20px;
  background: var(--surface);
  text-decoration: none;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: background-color .15s ease;
}
.social-link:hover { background: var(--surface-2); }

.social-link svg {
  grid-row: 1 / span 2;
  width: 28px;
  height: 28px;
  fill: var(--metal);
  transition: fill .15s ease;
}
.social-link:hover svg { fill: var(--orange); }

.s-name { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; line-height: 1.2; }
.s-handle {
  color: var(--muted);
  font-size: 0.88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Podnožje ---------- */

.site-footer {
  border-top: 1px solid var(--orange);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-inner img { height: 26px; width: auto; }
.footer-inner p { color: var(--muted); font-size: 0.9rem; }

/* ---------- Tablet i mobitel ---------- */

@media (max-width: 900px) {
  .intro-inner { grid-template-columns: 1fr; }
  .video-layout { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; gap: 32px; }
  .about-badge { max-width: 200px; }
  .social-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .nav { display: none; }
  .header-inner { justify-content: space-between; gap: 16px; min-height: 58px; }
  .brand img { height: 26px; }
  .hero-img { max-height: none; }
  .intro { padding: 24px 0 48px; }
  .section { padding: 56px 0; }
  .videos { padding-top: 16px; }
  .video-item { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; }
  .video-item img { width: 112px; }
  .topics div { grid-template-columns: 1fr; gap: 2px; }
  .social-link { padding: 14px 16px; column-gap: 12px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .social-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
