/* Geografski kabinet */

    :root {
      --bg: #05070b;
      --side: #0a0e14;
      --card: #121821;
      --line: #243044;
      --text: #f3f6fa;
      --muted: #8d9aab;
      --accent: #2ef2c8;
      --accent-2: #6aa2ff;
      --slide: #0b1220;
    }
    * { box-sizing: border-box; margin: 0; padding: 0; }
    html, body { min-height: 100%; background: var(--bg); color: var(--text); }
    body { font-family: "Instrument Sans", "Segoe UI", sans-serif; }
    body:not(.elementor-editor-active):not(.elementor-page):not(.gk-canvas) { overflow: hidden; }
    body.elementor-editor-active, body.elementor-page, body.gk-canvas, .gk-elementor-page { overflow: auto; }
    .gk-el-app { overflow: hidden; }
    a.enter { text-decoration: none; display: inline-block; }
    .app {
      display: none;
      grid-template-columns: 332px 1fr;
      height: 100%;
    }
    .app.open { display: grid; }
    .portal {
      position: fixed; inset: 0; z-index: 50;
      display: grid;
      grid-template-columns: 1.05fr .95fr;
      background: #04060a;
    }
    .portal.gone { opacity: 0; pointer-events: none; transition: opacity .55s ease; }
    .portal-visual {
      position: relative; overflow: hidden;
      background: #04060a url("../vizuel/zemlja.jpg") center / cover no-repeat;
    }
    .portal-visual::after {
      content: "";
      position: absolute; inset: 0;
      background: linear-gradient(90deg, transparent 42%, rgba(4,6,10,.5) 100%);
    }
    .coords {
      position: absolute; left: 28px; bottom: 28px; z-index: 2;
      font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
      color: rgba(243,246,250,.72);
    }
    .portal-copy {
      padding: 64px 56px;
      display: flex; flex-direction: column; justify-content: center;
      background:
        linear-gradient(180deg, rgba(8,12,18,.72), rgba(4,6,10,.94)),
        url("../vizuel/izolihije.jpg") center / cover no-repeat;
    }
    .portal-copy .mark { margin-bottom: 18px; }
    .eyebrow {
      color: var(--accent); letter-spacing: .2em; text-transform: uppercase;
      font-size: .72rem; font-weight: 650; margin-bottom: 16px;
    }
    .portal-copy h2 {
      font-family: "Instrument Serif", Georgia, serif;
      font-size: clamp(2.4rem, 4.6vw, 4.2rem);
      font-weight: 400; line-height: 1.02; letter-spacing: -.03em;
      margin-bottom: 16px;
    }
    .portal-copy p.leadp {
      color: #b7c3d1; font-size: 1.05rem; line-height: 1.5; max-width: 34rem;
      margin-bottom: 28px;
    }
    .stats { display: flex; gap: 22px; margin-bottom: 32px; }
    .stats b { display: block; font-size: 1.35rem; }
    .stats span { color: var(--muted); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
    .enter {
      align-self: flex-start; border: 0; cursor: pointer;
      padding: 14px 22px; border-radius: 999px;
      background: linear-gradient(135deg, var(--accent), #6aa2ff);
      color: #04110d; font: inherit; font-weight: 750; letter-spacing: .04em;
    }
    @media (max-width: 920px) {
      .portal { grid-template-columns: 1fr; }
      .portal-visual { min-height: 38vh; }
      .portal-copy { padding: 32px 22px 40px; }
    }
    .sidebar {
      background: linear-gradient(180deg, #0c1119 0%, var(--side) 100%);
      border-right: 1px solid var(--line);
      padding: 20px 16px 14px;
      display: flex;
      flex-direction: column;
      gap: 12px;
      min-height: 0;
    }
    .brand { display: flex; gap: 12px; align-items: center; }
    .mark {
      width: 38px; height: 38px; border-radius: 12px;
      background: linear-gradient(135deg, var(--accent), var(--accent-2));
      display: grid; place-items: center;
      color: #04110d; font-weight: 800; font-size: .85rem;
      animation: spinHue 12s linear infinite;
    }
    @keyframes spinHue { to { filter: hue-rotate(25deg); } }
    .brand h1 { font-size: 1.05rem; font-weight: 650; letter-spacing: -.02em; }
    .brand p { color: var(--muted); font-size: .72rem; margin-top: 2px; }

    .school-tabs, .grades { display: flex; gap: 6px; flex-wrap: wrap; }
    .school-tabs button, .grades button, .navbtns button, .fs-btn {
      border: 1px solid var(--line);
      background: var(--card);
      color: var(--text);
      font: inherit;
      cursor: pointer;
      transition: transform .18s ease, border-color .18s, background .18s, color .18s;
    }
    .school-tabs button:hover, .grades button:hover, .fs-btn:hover, .navbtns button:hover {
      transform: translateY(-1px);
      border-color: var(--accent);
    }
    .school-tabs button {
      flex: 1; padding: 9px 6px; border-radius: 12px;
      font-size: .74rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase;
    }
    .school-tabs button.active, .grades button.active {
      background: rgba(46, 242, 200, .14);
      border-color: var(--accent);
      color: var(--accent);
    }
    .grades button { padding: 6px 9px; border-radius: 9px; font-size: .78rem; }
    .search input {
      width: 100%; background: var(--card); border: 1px solid var(--line);
      color: var(--text); border-radius: 12px; padding: 10px 12px;
      font: inherit; font-size: .86rem; outline: none;
    }
    .search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(46,242,200,.12); }

    .list { overflow: auto; flex: 1; display: flex; flex-direction: column; gap: 7px; }
    .list h3 { font-size: .7rem; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; padding: 8px 4px 2px; }
    .item {
      text-align: left; width: 100%; background: var(--card);
      border: 1px solid transparent; color: var(--text);
      border-radius: 14px; padding: 11px 12px; cursor: pointer; font: inherit;
      transition: transform .18s ease, border-color .18s, background .18s;
    }
    .item:hover { border-color: var(--line); transform: translateX(3px); }
    .item.active { border-color: var(--accent); background: rgba(46,242,200,.09); }
    .item .name { display: block; font-size: .92rem; font-weight: 650; }
    .item .meta { display: block; color: var(--muted); font-size: .72rem; margin-top: 2px; }
    .item .tag { display: inline-block; margin-top: 6px; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
    .side-foot { color: var(--muted); font-size: .68rem; line-height: 1.45; border-top: 1px solid var(--line); padding-top: 10px; }

    .main { min-width: 0; display: flex; flex-direction: column; padding: 16px 18px 18px; gap: 12px; }
    .bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
    .crumb { color: var(--muted); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
    .bar-actions { display: flex; gap: 8px; align-items: center; }
    .hintk { font-size: .7rem; color: var(--muted); }
    .fs-btn { padding: 8px 12px; border-radius: 10px; font-size: .8rem; font-weight: 650; }

    .frame { flex: 1; min-height: 0; display: grid; place-items: center; }
    #stage {
      width: min(100%, calc((100vh - 96px) * 16 / 9));
      aspect-ratio: 16 / 9;
      max-height: calc(100vh - 96px);
      background:
        radial-gradient(900px 320px at 80% -10%, rgba(106,162,255,.16), transparent 50%),
        radial-gradient(700px 280px at 10% 120%, rgba(46,242,200,.08), transparent 45%),
        var(--slide);
      border: 1px solid var(--line);
      border-radius: 18px;
      overflow: hidden;
      position: relative;
      box-shadow: 0 28px 80px rgba(0,0,0,.42);
      user-select: none;
    }
    #stage:fullscreen, #stage:-webkit-full-screen {
      width: 100vw; height: 100vh; max-height: none; aspect-ratio: auto; border: 0; border-radius: 0;
    }
    .stage-top {
      position: absolute; top: 0; left: 0; right: 0; height: 46px;
      display: flex; align-items: center; gap: 10px; padding: 0 14px; z-index: 3;
    }
    #stage-title { flex: 1; font-size: .82rem; font-weight: 600; opacity: .88; }
    .navbtns { display: flex; gap: 6px; align-items: center; }
    .navbtns button { width: 34px; height: 30px; border-radius: 9px; font-size: 1rem; }
    #page-ind { font-size: .72rem; color: var(--muted); min-width: 42px; text-align: center; }

    .progress {
      position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.06); z-index: 3;
    }
    .progress > i {
      display: block; height: 100%; width: 0;
      background: linear-gradient(90deg, var(--accent), var(--accent-2));
      transition: width .35s ease;
    }

    .hot {
      position: absolute; top: 50%; width: 44px; height: 88px; transform: translateY(-50%);
      border: 0; background: rgba(255,255,255,.04); color: var(--text);
      cursor: pointer; z-index: 3; opacity: 0; transition: opacity .2s;
    }
    #stage:hover .hot { opacity: 1; }
    .hot.l { left: 0; border-radius: 0 16px 16px 0; }
    .hot.r { right: 0; border-radius: 16px 0 0 16px; }

    .viewport { position: absolute; inset: 0; }
    .empty, .slide { position: absolute; inset: 0; padding: 8% 7% 7%; }
    .empty {
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      text-align: center; gap: 12px; color: var(--muted);
    }
    .empty.hidden { display: none; }
    .slide { display: none; color: var(--text); animation: rise .38s ease; }
    .slide.visible { display: block; }
    @keyframes rise {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: none; }
    }

    .orb {
      width: 96px; height: 96px; border-radius: 50%;
      background: conic-gradient(from 200deg, var(--accent), var(--accent-2), #152033, var(--accent));
      -webkit-mask: radial-gradient(circle at 50% 50%, transparent 41%, #000 42%);
      mask: radial-gradient(circle at 50% 50%, transparent 41%, #000 42%);
      animation: spinHue 10s linear infinite;
    }
    .empty h2 {
      font-family: "Instrument Serif", Georgia, serif;
      font-size: clamp(1.7rem, 3.3vw, 2.6rem);
      color: var(--text); font-weight: 400;
    }
    .quick { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 8px; }
    .quick button {
      border: 1px solid var(--line); background: rgba(255,255,255,.04);
      color: var(--text); border-radius: 999px; padding: 8px 12px;
      font: inherit; font-size: .8rem; cursor: pointer;
    }
    .quick button:hover { border-color: var(--accent); color: var(--accent); }

    .kicker {
      font-size: clamp(.62rem, 1.1vw, .78rem);
      letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: .7vw;
    }
    .slide h2 {
      font-family: "Instrument Serif", Georgia, serif;
      font-size: clamp(1.7rem, 3.3vw, 2.7rem);
      font-weight: 400; letter-spacing: -.02em; margin-bottom: .55vw; line-height: 1.12;
    }
    .lead { font-size: clamp(.95rem, 1.5vw, 1.18rem); color: #b7c2d0; max-width: 44rem; margin-bottom: 1.3vw; line-height: 1.4; }
    .slide ul { padding-left: 1.15rem; max-width: 50rem; }
    .slide li { margin: 0 0 .8vw; font-size: clamp(.92rem, 1.4vw, 1.12rem); line-height: 1.4; }
    .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1vw; margin-top: .3vw; }
    .tile {
      background: rgba(255,255,255,.04);
      border: 1px solid var(--line);
      border-radius: 16px;
      padding: 1.15vw 1.2vw;
      text-align: left;
      color: inherit;
      font: inherit;
      cursor: pointer;
      transition: transform .18s, border-color .18s, background .18s;
    }
    .tile:hover { transform: translateY(-3px); border-color: var(--accent-2); }
    .tile.open { border-color: var(--accent); background: rgba(46,242,200,.08); }
    .tile h3 { font-size: clamp(1rem, 1.55vw, 1.22rem); margin-bottom: .35vw; color: var(--accent-2); }
    .tile .peek { color: #9aa8b8; font-size: clamp(.78rem, 1.15vw, .92rem); }
    .tile .more { display: none; margin-top: .55vw; color: #d5dde6; font-size: clamp(.86rem, 1.25vw, 1.02rem); line-height: 1.4; }
    .tile.open .more { display: block; }
    .tile.open .peek { display: none; }
    .note { margin-top: 1.2vw; color: var(--muted); font-size: clamp(.76rem, 1.1vw, .9rem); }

    @media (max-width: 920px) {
      body { overflow: auto; }
      .app { grid-template-columns: 1fr; height: auto; }
      .list { max-height: 240px; }
      #stage { width: 100%; max-height: none; }
      .cols { grid-template-columns: 1fr; }
    }
  
.download-btn {
  padding: 8px 12px; border-radius: 10px; font-size: .8rem; font-weight: 650;
  border: 1px solid var(--line); background: var(--card); color: var(--text);
  text-decoration: none; display: inline-flex; align-items: center;
}
.download-btn:hover { border-color: var(--accent); color: var(--accent); }
.slide .wp-sadrzaj { overflow: auto; height: calc(100% - 8%); padding-right: 8px; }
.slide .wp-sadrzaj p { margin: 0 0 .8vw; line-height: 1.45; font-size: clamp(.92rem, 1.4vw, 1.12rem); }
.stage-frame { position:absolute; inset:46px 0 3px 0; border:0; width:100%; height:calc(100% - 49px); background:#0b1220; }

.gk-pdf-wrap {
  position: absolute;
  inset: 46px 0 0 0;
  display: grid;
  place-items: center;
  background: #07090d;
}
.gk-pdf {
  max-width: 100%;
  max-height: 100%;
  display: block;
}
#stage:fullscreen .gk-pdf-wrap,
#stage:-webkit-full-screen .gk-pdf-wrap { inset: 46px 0 0 0; }
