/* ============================================================
   Róbert Štefko — HUD / JARVIS téma
   Signature: rohové cieliace zátvorky + pulzujúci arc-prstenec
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;600;700;800&family=Rajdhani:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root{
  --bg:        #050B14;
  --bg-panel:  #08111D;
  --bg-card:   #0A1626;
  --text:      #CFEFFF;
  --text-muted:#8FB0C7;
  --line:      rgba(0,217,255,0.14);
  --line-strong: rgba(0,217,255,0.38);
  --amber:     #00D9FF;
  --teal:      #00D9FF;
  --rust:      #00D9FF;
  --glow: 0 0 10px rgba(0,217,255,0.55), 0 0 22px rgba(0,217,255,0.18);
  --nav-tint: rgba(0,217,255,0.06);
  --nav-glow: rgba(0,217,255,0.4);

  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Rajdhani', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --sidebar-w: 280px;   /* aby sa "Záverečné práce" zmestili do jedného riadku aj bez načítaného Rajdhani */
  --code-w: 56px;   /* jednotná šírka číselných odznakov (najširší je 50/51) */
}

/* Svetlá téma — aktivuje sa cez [data-theme="light"] na <html>, prepína JS v theme.js */
[data-theme="light"]{
  --bg:        #EEF1F4;
  --bg-panel:  #E4E9EE;
  --bg-card:   #FFFFFF;
  --text:      #1B222B;
  --text-muted:#5B6673;
  --line:      rgba(27,34,43,0.10);
  --line-strong: rgba(27,34,43,0.22);
  --amber:     #EAAA00;
  --teal:      #EAAA00;
  --rust:      #EAAA00;
  --glow: 0 0 8px rgba(234,170,0,0.25);
  --nav-tint: rgba(234,170,0,0.08);
  --nav-glow: rgba(234,170,0,0.35);
}
/* jemnejšie žiarenie na svetlom pozadí — silný glow z tmavej témy by tu pôsobil rozmazane */
[data-theme="light"] .panel-brand,
[data-theme="light"] .eyebrow,
[data-theme="light"] .hero h1,
[data-theme="light"] .panel-nav a.active,
[data-theme="light"] .panel-nav a:hover,
[data-theme="light"] .status-led strong,
[data-theme="light"] .quick-path .kicker,
[data-theme="light"] .pub-year h3{
  text-shadow: none;
}
[data-theme="light"] body::before{ opacity: 0.35; }

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  background:
    radial-gradient(ellipse 900px 500px at 15% -10%, var(--nav-tint), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

a{ color: inherit; text-decoration: none; }
img{ max-width:100%; display:block; }

/* subtle animated scanline across the very top of the page */
body::before{
  content:"";
  position: fixed; top:0; left:0; right:0; height:2px; z-index:50;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  opacity:0.6;
  animation: scan 6s linear infinite;
}
@keyframes scan{
  0%{ transform: translateX(-100%); }
  100%{ transform: translateX(100%); }
}
@media (prefers-reduced-motion: reduce){
  body::before{ animation: none; display:none; }
}

/* ---------------- Layout shell ---------------- */
.shell{
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

/* ---------------- Sidebar / HUD panel ---------------- */
.panel{
  position: sticky;
  top:0;
  height: 100vh;
  background: linear-gradient(180deg, var(--bg-panel), var(--bg));
  border-right: 1px solid var(--line-strong);
  padding: 28px 22px;
  display:flex;
  flex-direction: column;
  gap: 28px;
  box-shadow: inset -1px 0 0 var(--line);
}

.panel-brand{
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height:1.4;
  text-transform: uppercase;
  color: var(--text);
  text-shadow: 0 0 8px rgba(0,217,255,0.4);
}
.panel-brand span{
  display:block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--amber);
  margin-top: 8px;
  letter-spacing: 0.1em;
  text-shadow:none;
}

.panel-nav{
  display:flex;
  flex-direction: column;
  gap: 4px;
  flex:1;
}

.panel-nav a{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 10px 10px;
  border-radius: 2px;
  border-left: 2px solid transparent;
  color: var(--text-muted);
  transition: border-color .15s ease, color .15s ease, background .15s ease, text-shadow .15s ease;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.panel-nav a:hover,
.panel-nav a.active{
  color: var(--text);
  background: var(--nav-tint);
  border-left-color: var(--amber);
  text-shadow: 0 0 6px var(--nav-glow);
}
.panel-nav .code{
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--amber);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 3px 7px;
  min-width: var(--code-w);
  text-align:center;
  flex-shrink:0;
}
.panel-nav a.active .code,
.panel-nav a:hover .code{
  border-color: var(--amber);
  box-shadow: 0 0 8px var(--nav-glow);
}
.panel-nav .label{
  font-size: 1.05rem;
}

.panel-legend{
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  opacity: 0.7;
  line-height: 1.6;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  letter-spacing: 0.03em;
}

.panel-lang{
  display:flex;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}
.panel-lang a{
  border: 1px solid var(--line-strong);
  padding: 4px 9px;
  border-radius: 2px;
  color: var(--text-muted);
}
.panel-lang a.active{ color: var(--amber); border-color: var(--amber); box-shadow: 0 0 6px rgba(0,217,255,0.35); }
[data-theme="light"] .panel-lang a.active{ box-shadow: 0 0 6px rgba(234,170,0,0.35); }

.theme-toggle{
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text-muted);
  padding: 4px 9px;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.4;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.theme-toggle:hover{
  color: var(--amber);
  border-color: var(--amber);
}

.panel-contact{
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.8;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.panel-qr{ margin-top: 12px; }
.panel-qr img{
  width: 200px;
  height: 200px;
  background: #FFFFFF;
  padding: 6px;
  border-radius: 2px;
  border: 1px solid var(--line-strong);
  box-shadow: var(--glow);
  display: block;
}

.panel-social{
  display:flex;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
}
.panel-social a{ color: var(--text-muted); border-bottom: 1px solid transparent; }
.panel-social a:hover{ color: var(--amber); border-bottom-color: var(--amber); text-shadow: 0 0 6px rgba(0,217,255,0.5); }

.mobile-bar{ display:none; }

/* ---------------- Main content ---------------- */
main{ min-width: 0; }

.hero{
  position: relative;
  padding: 76px 56px 56px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-schematic{
  position:absolute;
  inset: 0;
  z-index:0;
  pointer-events:none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='42' viewBox='0 0 72 42'%3E%3Cpath d='M45.6,21 L34.8,39.9 L13.2,39.9 L2.4,21 L13.2,2.1 L34.8,2.1 Z' fill='none' stroke='%2300D9FF' stroke-opacity='0.45' stroke-width='2'/%3E%3Cpath d='M81.6,0 L70.8,18.9 L49.2,18.9 L38.4,0 L49.2,-18.9 L70.8,-18.9 Z' fill='none' stroke='%2300D9FF' stroke-opacity='0.45' stroke-width='2'/%3E%3Cpath d='M81.6,42 L70.8,60.9 L49.2,60.9 L38.4,42 L49.2,23.1 L70.8,23.1 Z' fill='none' stroke='%2300D9FF' stroke-opacity='0.45' stroke-width='2'/%3E%3Cpath d='M9.6,0 L-1.2,18.9 L-22.8,18.9 L-33.6,0 L-22.8,-18.9 L-1.2,-18.9 Z' fill='none' stroke='%2300D9FF' stroke-opacity='0.45' stroke-width='2'/%3E%3Cpath d='M9.6,42 L-1.2,60.9 L-22.8,60.9 L-33.6,42 L-22.8,23.1 L-1.2,23.1 Z' fill='none' stroke='%2300D9FF' stroke-opacity='0.45' stroke-width='2'/%3E%3C/svg%3E");
  background-size: 72px 42px;
  background-position: right center;
  -webkit-mask-image: linear-gradient(270deg, black 0%, black 15%, transparent 60%);
  mask-image: linear-gradient(270deg, black 0%, black 15%, transparent 60%);
  opacity: 0.6;
}
[data-theme="light"] .hero-schematic{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='42' viewBox='0 0 72 42'%3E%3Cpath d='M45.6,21 L34.8,39.9 L13.2,39.9 L2.4,21 L13.2,2.1 L34.8,2.1 Z' fill='none' stroke='%23EAAA00' stroke-opacity='0.35' stroke-width='2'/%3E%3Cpath d='M81.6,0 L70.8,18.9 L49.2,18.9 L38.4,0 L49.2,-18.9 L70.8,-18.9 Z' fill='none' stroke='%23EAAA00' stroke-opacity='0.35' stroke-width='2'/%3E%3Cpath d='M81.6,42 L70.8,60.9 L49.2,60.9 L38.4,42 L49.2,23.1 L70.8,23.1 Z' fill='none' stroke='%23EAAA00' stroke-opacity='0.35' stroke-width='2'/%3E%3Cpath d='M9.6,0 L-1.2,18.9 L-22.8,18.9 L-33.6,0 L-22.8,-18.9 L-1.2,-18.9 Z' fill='none' stroke='%23EAAA00' stroke-opacity='0.35' stroke-width='2'/%3E%3Cpath d='M9.6,42 L-1.2,60.9 L-22.8,60.9 L-33.6,42 L-22.8,23.1 L-1.2,23.1 Z' fill='none' stroke='%23EAAA00' stroke-opacity='0.35' stroke-width='2'/%3E%3C/svg%3E");
}

.eyebrow{
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 18px;
  display:block;
  text-shadow: 0 0 6px rgba(0,217,255,0.4);
}

.hero h1{
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-shadow: 0 0 14px rgba(0,217,255,0.25);
}

.hero .role{
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 600;
}
.hero .dept{
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.focus-tags{
  display:flex;
  flex-wrap: wrap;
  gap: 6px 0;
  margin-bottom: 30px;
  font-weight: 600;
}
.focus-tags span{
  font-family: var(--font-mono);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}
.focus-tags span:not(:last-child)::after{
  content: "/";
  color: var(--line-strong);
  margin: 0 12px;
}

/* Status strip — HUD readouts with corner brackets (signature element) */
.status-strip{
  display:flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.status-led{
  position: relative;
  display:flex;
  align-items:center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text-muted);
}
/* corner brackets — the signature HUD targeting-frame motif */
.status-led::before, .status-led::after,
.card::before, .card::after{
  content:"";
  position:absolute;
  width:8px; height:8px;
  border: 1.5px solid var(--amber);
  opacity:0.85;
}
.status-led::before, .card::before{ top:-1px; left:-1px; border-right:none; border-bottom:none; }
.status-led::after, .card::after{ bottom:-1px; right:-1px; border-left:none; border-top:none; }

.status-led .dot{
  width: 7px; height:7px; border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 6px 1px rgba(0,217,255,0.7);
  flex-shrink:0;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse{
  0%,100%{ opacity:1; }
  50%{ opacity:0.4; }
}
@media (prefers-reduced-motion: reduce){
  .status-led .dot{ animation:none; }
}
.status-led.teal .dot{ background: var(--amber); }
.status-led strong{ color: var(--text); font-weight:700; text-shadow: 0 0 6px rgba(0,217,255,0.3); }

/* ---------------- Quick paths: researchers vs students ---------------- */
.quick-paths{
  display:grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}
.quick-path{
  padding: 40px 56px;
}
.quick-path + .quick-path{ border-left: 1px solid var(--line); }
.quick-path .kicker{
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  display: block;
  margin-bottom: 10px;
  text-shadow: 0 0 6px rgba(0,217,255,0.4);
}
.quick-path h3{
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 10px;
}
.quick-path p{
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 0 18px;
  max-width: 34ch;
}
.quick-path .arrow{
  font-family: var(--font-mono);
  font-size: 0.98rem;
  color: var(--amber);
}

/* ---------------- Sections ---------------- */
section.block{
  padding: 56px;
  border-bottom: 1px solid var(--line);
}
section.block:last-child{ border-bottom:none; }

.block-head{
  /* Výška odznaku je zviazaná s výškou prvého riadku nadpisu cez tieto dve
     premenné — pri zmene veľkosti nadpisu sa odznak prispôsobí sám. */
  --head-size: 1.65rem;
  --head-lh: 1.3;

  display:flex;
  align-items: flex-start;   /* odznak drží na PRVOM riadku aj pri zalomenom nadpise */
  gap: 14px;
  margin-bottom: 28px;
}
.block-head .code{
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--amber);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 0 8px;
  min-width: var(--code-w);                         /* rovnaká šírka ako odznaky v bočnom paneli */
  height: calc(var(--head-size) * var(--head-lh));  /* = výška prvého riadku nadpisu */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(0,217,255,0.2);
}
.block-head h2{
  font-family: var(--font-display);
  font-size: var(--head-size);
  line-height: var(--head-lh);
  font-weight: 700;
  margin:0;
  letter-spacing: 0.01em;
}

.prose{ max-width: 700px; color: var(--text); font-size: 1.15rem; }
.prose p{ margin: 0 0 16px; }
.prose p:last-child{ margin-bottom:0; }

/* Project entries — HUD-bracketed cards */
.grid-cards{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(280px,1fr));
  gap: 28px 32px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.card{
  position: relative;
  padding: 18px 20px;
  background: rgba(0,217,255,0.02);
  border: 1px solid var(--line);
}
.card .tag{
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--amber);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  display:block;
}
.card h3{
  font-size: 1.2rem;
  font-family: var(--font-body);
  font-weight: 700;
  margin: 0 0 8px;
  line-height:1.4;
  color: var(--text);
}
.card p{
  font-size: 1rem;
  color: var(--text-muted);
  margin:0;
}
.card img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
}

/* Photo gallery — masonry layout, preserves each photo's natural aspect ratio */
.gallery-grid{
  column-count: 3;
  column-gap: 20px;
}
.gallery-item{
  break-inside: avoid;
  margin-bottom: 20px;
  display: inline-block;
  width: 100%;
}
.gallery-item img{
  width: 100%;
  height: auto;
  display:block;
  border-radius: 4px;
  border: 1px solid var(--line);
  margin-bottom: 8px;
}
.gallery-item .caption{
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Links list */
.link-row{
  display:flex;
  flex-wrap:wrap;
  gap: 12px;
}
.link-row a{
  font-family: var(--font-mono);
  font-size: 0.92rem;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 10px 18px;
  color: var(--text-muted);
  transition: color .15s ease, border-color .15s ease, text-shadow .15s ease;
}
.link-row a:hover{ color: var(--amber); border-color: var(--amber); text-shadow: 0 0 6px rgba(0,217,255,0.4); box-shadow: 0 0 8px rgba(0,217,255,0.15); }

footer.site-footer{
  padding: 28px 56px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  opacity: 0.7;
}

/* ---------------- Publications ---------------- */
.pub-year{ margin-bottom: 34px; }
.pub-year:last-child{ margin-bottom: 0; }
.pub-year h3{
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--amber);
  margin: 0 0 14px;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(0,217,255,0.3);
}
.pub-category{
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 18px 0 8px;
  opacity:0.85;
}
.pub-category:first-of-type{ margin-top: 0; }
ul.pub-list{
  list-style: none;
  margin: 0;
  padding: 0;
}
ul.pub-list li{
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.02rem;
  line-height: 1.6;
}
ul.pub-list li:last-child{ border-bottom: none; }
.pub-authors{ color: var(--text-muted); }
.pub-title a{ color: var(--text); border-bottom: 1px dotted var(--line-strong); }
.pub-title a:hover{ color: var(--amber); border-bottom-color: var(--amber); }
.pub-source{ color: var(--text-muted); font-size: 0.86rem; }

.loading-note{
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Rozvrh hodín (auto-rendered from rozvrh.json) */
.schedule-row{
  display:grid;
  grid-template-columns: 110px 90px 1fr 1fr;
  gap: 16px;
  align-items:baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.schedule-row:last-child{ border-bottom:none; }
.schedule-row .day{
  font-family: var(--font-mono);
  color: var(--amber);
  font-size: 0.85rem;
}
.schedule-row .time{
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.85rem;
}
.schedule-row .subject{ font-weight:600; }
.schedule-row .meta{
  color: var(--text-muted);
  font-size: 0.85rem;
}
@media (max-width: 720px){
  .schedule-row{ grid-template-columns: 1fr; gap: 4px; }
  .gallery-grid{ column-count: 1; }
}

@media (min-width: 721px) and (max-width: 1000px){
  .gallery-grid{ column-count: 2; }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 880px){
  .shell{ grid-template-columns: 1fr; }
  .panel{ display:none; }
  .mobile-bar{
    display:flex;
    align-items:center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--line-strong);
    position: sticky; top:0; z-index: 10;
  }
  .mobile-bar .brand{
    font-family: var(--font-display);
    font-weight:700;
    color: var(--text);
    text-transform: uppercase;
    font-size: 0.95rem;
  }
  .mobile-bar nav{
    display:flex; gap: 14px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
  }
  .hero{ padding: 40px 22px 32px; }
  section.block{ padding: 36px 22px; }
  footer.site-footer{ padding: 22px; }
  .quick-paths{ grid-template-columns: 1fr; }
  .quick-path{ padding: 28px 22px; }
  .quick-path + .quick-path{ border-left:none; border-top: 1px solid var(--line); }
}

/* Rozcestník na 404 — zoznam podsekcií vnútri karty */
.card h3 a{ color: var(--text); transition: color .15s ease; }
.card h3 a:hover{ color: var(--amber); }

.card-links{
  list-style: none;
  margin: 14px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
}
.card-links li{ margin: 0 0 7px; }
.card-links li:last-child{ margin-bottom: 0; }
.card-links a{
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color .15s ease, text-shadow .15s ease;
}
.card-links a::before{ content: "› "; opacity: 0.55; }
.card-links a:hover{ color: var(--amber); text-shadow: 0 0 6px var(--nav-glow); }
