/* =====================================================================
   Otroška igra – OSNOVA
   Barvni žetoni, tipografija, gumbi, povezave, glava, noga, valoviti
   prehodi med odseki in nežne animacije. Velja na vseh straneh.

   Datoteke CSS (nalagajo se v tem vrstnem redu, glej inc/videz.php):
     osnova.css      – ta datoteka
     strani.css      – notranje strani, trgovina, blog, obrazci
     orodja.css      – iskalnik iger, kontrolna seznama, termini, predogled PDF
     naslovnica.css  – samo naslovnica
   ===================================================================== */

:root {
  /* blagovna znamka – sodobna, topla in umirjena paleta (imena spremenljivk so ostala iz prve različice) */
  --oi-caramel: #C96F55;     /* terakota – glavna barva, gumbi */
  --oi-caramel-d: #B05B42;
  --oi-caramel-t: #9E4E37;   /* terakota za majhno besedilo – dovolj kontrasta */
  --oi-brown: #3F3330;
  --oi-choc: #2B2422;        /* temno črnilo – naslovi, temni odseki */
  --oi-orange: #D99A4E;
  --oi-sun: #E9C77B;         /* med – poudarki na temni podlagi */
  --oi-sand: #F5EEE8;
  --oi-cream: #FBF8F4;
  --oi-line: #E9DFD6;
  --oi-txt: #5E5550;

  /* pridušene pastelne barve – podlaga + barva besedila na njej */
  --oi-peach: #F3E0D6;  --oi-peach-t: #8E4A35;
  --oi-sage: #E2E9DF;   --oi-sage-t: #4B6148;
  --oi-sky: #DFE8ED;    --oi-sky-t: #3A5F70;
  --oi-butter: #F3E8CF; --oi-butter-t: #6F5520;

  /* oblike in sence */
  --oi-radius: 14px;
  --oi-radius-l: 24px;
  --oi-shadow: 0 1px 2px rgba(43,36,34,.04), 0 12px 32px -18px rgba(43,36,34,.28);
  --oi-shadow-h: 0 2px 6px rgba(43,36,34,.05), 0 24px 48px -24px rgba(43,36,34,.38);
  --oi-ease: cubic-bezier(.2,.7,.2,1);
  --oi-gutter: clamp(16px, 4vw, 48px);
  --oi-blob: 999px 999px 24px 24px;   /* lok – oblika fotografij */
}

/* ---------- tipografija ---------- */
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2 { font-weight: 500; letter-spacing: -.015em; text-wrap: balance; }
h3 { text-wrap: balance; }
p { text-wrap: pretty; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--oi-caramel); font-weight: 400; }
a { color: var(--oi-brown); }
::selection { background: var(--oi-peach); color: var(--oi-choc); }
:focus-visible { outline: 2px solid var(--oi-caramel); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

/* Ročno narisana valovita črta pod poudarjeno besedo v naslovih odsekov (h2 em) */
.entry-content h2 em {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12'%3E%3Cpath d='M2 8c12-5 22-5 34 0s22 5 34 0 22-5 34 0 10 3 14 2' fill='none' stroke='%23E2B9A6' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") left bottom / 100% .32em no-repeat;
  padding-bottom: .12em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* Pisana ročna pisava (Dancing Script, gostovana na strani) – razred oi-script */
@font-face {
  font-family: 'Dancing Script'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/wp-content/uploads/fonts/dancing-script/dancing-script-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Dancing Script'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/wp-content/uploads/fonts/dancing-script/dancing-script-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
h2.oi-script { font-family: 'Dancing Script', cursive !important; font-weight: 600 !important; font-size: clamp(2.6rem, 6vw, 3.6rem) !important; letter-spacing: 0 !important; line-height: 1.1; }
h2.oi-script em { font-style: normal; font-weight: 600; background: none; padding: 0; }

/* ---------- odseki ---------- */
.page .content-area, .home .content-area { margin-top: 0; margin-bottom: 0; }
.page .entry-content-wrap { padding-top: 0; }
.entry-content > .alignfull:first-child { margin-top: 0; }
.entry-content > .wp-block-group.alignfull, .entry-content > .wp-block-cover.alignfull { margin-top: 0 !important; margin-bottom: 0 !important; }

.oi-sec { padding: clamp(36px, 5vw, 64px) 20px; }
.oi-sand { background: var(--oi-sand); }
.entry-content .wp-block-group.alignfull.oi-sec,
.entry-content .wp-block-group.alignfull.oi-news,
.entry-content .oi-pagehead, .entry-content .oi-section, .entry-content .oi-band {
  padding-left: var(--oi-gutter) !important;
  padding-right: var(--oi-gutter) !important;
}
.entry-content .wp-block-group.alignfull.oi-sec { padding-top: clamp(56px, 7vw, 96px) !important; padding-bottom: clamp(56px, 7vw, 96px) !important; }
.entry-content .wp-block-group.alignfull.oi-news, .entry-content .oi-pagehead, .entry-content .oi-section, .entry-content .oi-band { padding-top: clamp(44px, 6vw, 80px) !important; padding-bottom: clamp(44px, 6vw, 80px) !important; }

/* Naslov odseka: oznaka nad naslovom, naslov, podnaslov */
.oi-eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--oi-caramel-t); margin-bottom: .9em !important;
  display: flex; align-items: center; justify-content: inherit; gap: .7em;
}
.oi-eyebrow.has-text-align-center { justify-content: center; }
.oi-eyebrow::before, .oi-eyebrow.has-text-align-center::after {
  content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--oi-caramel); opacity: .55;
}
.oi-sub { color: var(--oi-caramel-t); font-size: 1.08rem; margin-top: .5em; margin-bottom: 2em !important; }
.oi-mt { margin-top: 2.4em !important; }

/* Povezava s puščico: »Vse ideje →« */
.oi-link a {
  color: var(--oi-brown); font-weight: 600; text-decoration: none;
  background: linear-gradient(var(--oi-caramel), var(--oi-caramel)) left bottom / 0 2px no-repeat, linear-gradient(var(--oi-line), var(--oi-line)) left bottom / 100% 2px no-repeat;
  padding-bottom: 3px; transition: background-size .35s var(--oi-ease), color .2s;
}
.oi-link a:hover { color: var(--oi-choc); background-size: 100% 2px, 100% 2px; }

/* ---------- gumbi ---------- */
.wp-block-button__link, .button, button.button, .wc-block-components-button, .oi-pill {
  transition: background .2s, color .2s, border-color .2s, transform .25s var(--oi-ease), box-shadow .25s var(--oi-ease);
}
.wp-block-button__link { border-radius: 999px !important; letter-spacing: .02em; font-weight: 600; padding: .95em 1.7em; }
.wp-block-button__link:hover, .oi-pill:hover { transform: translateY(-2px); }
.wp-block-button__link:active, .oi-pill:active { transform: translateY(0); }
.oi-btn-solid .wp-block-button__link { background: var(--oi-caramel) !important; color: #fff !important; border: 1px solid var(--oi-caramel) !important; box-shadow: 0 10px 24px -12px rgba(160,125,98,.8); }
.oi-btn-solid .wp-block-button__link:hover { background: var(--oi-caramel-d) !important; border-color: var(--oi-caramel-d) !important; box-shadow: 0 16px 30px -14px rgba(160,125,98,.9); }
.oi-btn-ghost .wp-block-button__link { background: transparent !important; color: var(--oi-sand) !important; border: 1px solid rgba(232,213,196,.6) !important; }
.oi-btn-ghost .wp-block-button__link:hover { background: rgba(255,255,255,.1) !important; }
.oi-btn-outline .wp-block-button__link { background: transparent !important; color: var(--oi-brown) !important; border: 1.5px solid var(--oi-caramel) !important; }
.oi-btn-outline .wp-block-button__link:hover { background: var(--oi-caramel) !important; color: #fff !important; }
.oi-btn-light .wp-block-button__link { background: #fff8f3 !important; color: var(--oi-brown) !important; }
.oi-btn-light .wp-block-button__link:hover { background: var(--oi-caramel) !important; color: #fff !important; }
.oi-pill { display: inline-block; background: var(--oi-brown); color: var(--oi-sand) !important; border-radius: 999px; padding: 8px 18px; font-size: 13.5px; font-weight: 600; text-decoration: none; }
.oi-pill:hover { background: var(--oi-caramel-d); }
.oi-pill-light { background: #fff8f3; color: var(--oi-brown) !important; }
.oi-pill-light:hover { background: #fff; }

/* ---------- glava ---------- */
.site-top-header-wrap .header-html, .site-top-header-wrap .mobile-html { font-size: 13px; color: var(--oi-brown); letter-spacing: .01em; text-align: center; }
.site-top-header-wrap .header-html a, .site-top-header-wrap .mobile-html a { color: var(--oi-orange); font-weight: 600; text-decoration: none; }
#masthead .site-title { font-weight: 500; letter-spacing: -.01em; }
.site-header .site-title, .site-branding .site-title { white-space: nowrap; }
.site-branding { flex-shrink: 0; }
/* lepljiva glava med drsenjem: prosojna z zameglitvijo in nežno senco */
#masthead .kadence-sticky-header.item-is-fixed:not(.item-at-start) {
  background: rgba(250,248,245,.86) !important;
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 rgba(232,213,196,.7), 0 10px 30px -22px rgba(61,42,30,.5);
}
/* meni: tanka črta pod aktivno ali izbrano povezavo */
.header-navigation .menu > li > a { position: relative; }
.header-navigation .menu > li > a::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: 6px; height: 2px; border-radius: 2px;
  background: var(--oi-caramel); transition: left .3s var(--oi-ease), right .3s var(--oi-ease);
}
.header-navigation .menu > li > a:hover::after,
.header-navigation .menu > li.current-menu-item > a::after,
.header-navigation .menu > li.current-menu-ancestor > a::after { left: 14px; right: 14px; }
@media (min-width: 1025px) and (max-width: 1240px) {
  .header-navigation .menu > li > a { padding-left: 11px !important; padding-right: 11px !important; font-size: .95rem; }
  .header-navigation .menu > li > a:hover::after { left: 11px; right: 11px; }
}
@media (max-width: 380px) { .site-header .site-title { font-size: 1.35rem !important; } }

/* ---------- noga ---------- */
.site-footer { position: relative; }
.site-footer::before { /* valovit zgornji rob noge */
  content: ""; position: absolute; left: 0; right: 0; top: -27px; height: 28px; z-index: 1; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 28' preserveAspectRatio='none'%3E%3Cpath d='M0 28V14C120 4 240 0 360 6s240 18 360 16 240-16 360-18 240 6 360 12v18z' fill='%233D2A1E'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.site-footer h3, .site-footer h4 { color: #F5EDE4; font-weight: 500; }
.site-footer h4 { font-family: var(--global-body-font-family); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--oi-caramel); }
.site-footer a { color: #E8D5C4; text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.site-footer .widget p { color: #D4B99A; }
.site-footer .oi-foot-links, .site-footer ul.oi-foot-links { padding-left: 0 !important; margin-left: 0 !important; list-style: none !important; }
.oi-foot-links li { margin: .45em 0; }
.oi-foot-brand { font-size: 1.8rem; }
.site-footer .oi-foot-ig a { display: inline-flex; align-items: center; gap: 10px; color: #E8D5C4; font-size: .95rem; }
.site-footer .oi-foot-ig a:hover { color: #fff; }
.site-footer .oi-foot-ig svg { flex-shrink: 0; }

/* ---------- valoviti prehodi med odseki ----------
   Odsek z razredom oi-val-zgoraj / oi-val-spodaj dobi valovit rob v svoji barvi podlage,
   ki sega čez sosednji odsek. Barva vala = --oi-val (privzeto pesek). */
.oi-sand, .oi-citat, .oi-news, .oi-band { --oi-val: var(--oi-sand); position: relative; }
.oi-citat { --oi-val: var(--oi-choc); }
.oi-news, .oi-band { --oi-val: var(--oi-brown); }
.entry-content > .oi-sand::before, .entry-content > .oi-citat::before, .entry-content > .oi-news::before,
.entry-content > .oi-sand::after, .entry-content > .oi-citat::after {
  content: ""; position: absolute; left: 0; right: 0; height: 26px; z-index: 1; pointer-events: none;
  background: var(--oi-val);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 26' preserveAspectRatio='none'%3E%3Cpath d='M0 26V12C160 2 300 0 460 8s300 16 480 12 320-14 500-10v16z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 26' preserveAspectRatio='none'%3E%3Cpath d='M0 26V12C160 2 300 0 460 8s300 16 480 12 320-14 500-10v16z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.entry-content > .oi-sand::before, .entry-content > .oi-citat::before, .entry-content > .oi-news::before { top: -25px; }
.entry-content > .oi-sand::after, .entry-content > .oi-citat::after { bottom: -25px; transform: scaleY(-1) scaleX(-1); }
/* zadnji odsek pred nogo ne potrebuje spodnjega vala (noga ima svojega) */
.entry-content > .oi-sand:last-child::after, .entry-content > .oi-citat:last-child::after { display: none; }
/* barvni odsek, ki mu sledi drug barvni odsek: spodnji val skrijemo, zgornji val naslednjega zadošča */
.entry-content > :is(.oi-sand, .oi-citat):has(+ :is(.oi-sand, .oi-citat, .oi-news, .oi-band))::after { display: none; }
/* dva odseka iste barve drug ob drugem: brez vala vmes */
.entry-content > .oi-sand + .oi-sand::before { display: none; }

/* ---------- nežno pojavljanje ob drsenju (js/oblikovanje.js) ----------
   Brez JavaScripta ali ob »manj gibanja« je vse takoj vidno. */
@media (prefers-reduced-motion: no-preference) {
  .oi-js .oi-pojavi { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--oi-ease), transform .8s var(--oi-ease); transition-delay: calc(var(--oi-i, 0) * 70ms); }
  .oi-js .oi-pojavi.oi-vidno { opacity: 1; transform: none; }
}

/* ---------- telefon ---------- */
@media (max-width: 781px) {
  .entry-content h2 { font-size: clamp(1.8rem, 7.4vw, 2.3rem); }
  .oi-sub { font-size: 1rem; }
}

/* trak »DEMO« (samo na demo kopiji, glej inc/videz.php) */
.oi-demo-trak {
  position: fixed; z-index: 99999; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); pointer-events: none;
  background: var(--oi-choc); color: #fff8f3; font: 600 11px/1 var(--global-body-font-family); letter-spacing: .14em; text-transform: uppercase;
  padding: 8px 12px; border-radius: 999px; box-shadow: 0 8px 20px -10px rgba(0,0,0,.6); opacity: .9;
}

/* =====================================================================
   SODOBNI SLOG – večji, mirnejši naslovi, ploski gumbi, temen zgornji pas
   ===================================================================== */
body { color: var(--oi-txt); }
h1, h2, h3, h4 { color: var(--oi-choc); letter-spacing: -.025em; }
h1 em, h2 em, h3 em { color: var(--oi-caramel); font-weight: 400; }
.entry-content h2 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); line-height: 1.08; }
.oi-eyebrow { color: var(--oi-caramel-t); }
.oi-eyebrow::before, .oi-eyebrow.has-text-align-center::after { background: var(--oi-caramel); opacity: .6; }

.oi-btn-solid .wp-block-button__link, .wp-block-button:not(.oi-btn-ghost):not(.oi-btn-outline):not(.is-style-outline):not(.oi-btn-light) .wp-block-button__link {
  background: var(--oi-choc) !important; color: #fff !important; border: 0 !important; box-shadow: 0 12px 26px -14px rgba(43,36,34,.7) !important;
}
.oi-btn-solid .wp-block-button__link:hover, .wp-block-button:not(.oi-btn-ghost):not(.oi-btn-outline):not(.is-style-outline):not(.oi-btn-light) .wp-block-button__link:hover {
  background: var(--oi-caramel) !important; box-shadow: 0 16px 30px -14px rgba(201,111,85,.8) !important;
}
.oi-btn-ghost .wp-block-button__link, .oi-btn-outline .wp-block-button__link, .is-style-outline .wp-block-button__link {
  background: transparent !important; color: var(--oi-choc) !important; border: 1.5px solid rgba(43,36,34,.25) !important;
}
.oi-btn-ghost .wp-block-button__link:hover, .oi-btn-outline .wp-block-button__link:hover, .is-style-outline .wp-block-button__link:hover {
  border-color: var(--oi-choc) !important; background: #fff !important; color: var(--oi-choc) !important;
}
.oi-pill { background: var(--oi-choc); }
.oi-pill:hover { background: var(--oi-caramel); }

#masthead .site-main-header-wrap { background: rgba(255,255,255,.92); }
.site-top-header-wrap, .site-top-header-wrap .site-header-row-container-inner { background: var(--oi-choc) !important; }
.site-top-header-wrap .header-html, .site-top-header-wrap .mobile-html { color: #EDE3DB !important; }
.site-top-header-wrap .header-html a, .site-top-header-wrap .mobile-html a { color: var(--oi-sun) !important; }
.header-navigation .menu > li > a { color: var(--oi-choc); }
.site-footer h4 { color: var(--oi-sun); }

/* val tudi nad odsekom z orodji */
.entry-content > .oi-orodja { --oi-val: var(--oi-sage); background: var(--oi-sage); position: relative; }
.entry-content > .oi-orodja::before {
  content: ""; position: absolute; left: 0; right: 0; top: -25px; height: 26px; z-index: 1; pointer-events: none; background: var(--oi-val);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 26' preserveAspectRatio='none'%3E%3Cpath d='M0 26V12C160 2 300 0 460 8s300 16 480 12 320-14 500-10v16z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 26' preserveAspectRatio='none'%3E%3Cpath d='M0 26V12C160 2 300 0 460 8s300 16 480 12 320-14 500-10v16z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
