/* ═══════════════════════════════════════════════
   balazs734 — style.css
   ═══════════════════════════════════════════════ */

/* ── VARIABLES ── */
:root {
  --p:         #9b1fe8;
  --p-bright:  #bf45ff;
  --p-dim:     #5c0d96;
  --glow:      rgba(155,31,232,.38);
  --glow-soft: rgba(155,31,232,.10);
  --bg:        #07060f;
  --bg2:       #0c0a1a;
  --surface:   rgba(255,255,255,.038);
  --surface2:  rgba(255,255,255,.065);
  --border:    rgba(155,31,232,.20);
  --border2:   rgba(255,255,255,.065);
  --text:      #d8cef0;
  --muted:     #726890;
  --white:     #f0eaff;
  --yt:        #e83030;
  --twitch:    #8b3ff5;
  --discord:   #5865f2;
}

/* ── RESET ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(130,40,200,.35) transparent;
}

body {
  font-family: 'Outfit', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(130,40,200,.35); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(155,50,220,.55); }

/* ── BACKGROUND ── */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-orb1 {
  position: absolute;
  width: clamp(400px,60vw,760px); height: clamp(400px,60vw,760px);
  top: -200px; left: -180px;
  background: radial-gradient(circle, rgba(100,8,180,.18) 0%, transparent 65%);
  border-radius: 50%;
}
.bg-orb2 {
  position: absolute;
  width: clamp(300px,50vw,620px); height: clamp(300px,50vw,620px);
  bottom: -160px; right: -120px;
  background: radial-gradient(circle, rgba(155,31,232,.12) 0%, transparent 65%);
  border-radius: 50%;
}
.bg-lines {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    -55deg,
    transparent, transparent 38px,
    rgba(155,31,232,.025) 38px, rgba(155,31,232,.025) 39px
  );
}

/* ── WATERMARK ── */
.watermark {
  position: fixed; right: 14px; top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: .72rem; font-weight: 600; letter-spacing: .28em;
  color: var(--p); opacity: .18;
  z-index: 999; user-select: none; white-space: nowrap;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: .18; }
  50%       { opacity: .48; }
}
@keyframes skelPulse {
  0%, 100% { opacity: .4; }
  50%       { opacity: .9; }
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .55; transform: scale(.8); }
}

/* ── LIVE BADGE (header) ── */
.live-badge {
  display: none;
  align-items: center; gap: .4rem;
  padding: .28rem .75rem;
  background: rgba(220,30,30,.15);
  border: 1px solid rgba(220,30,30,.4);
  border-radius: 99px;
  font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: #ff5555;
  text-decoration: none;
  transition: background .2s, border-color .2s;
  white-space: nowrap; flex-shrink: 0;
}
.live-badge.visible { display: inline-flex; }
.live-badge:hover { background: rgba(220,30,30,.25); border-color: rgba(220,30,30,.65); }
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #ff4444; box-shadow: 0 0 6px #ff4444;
  animation: livePulse 1.4s ease-in-out infinite;
  flex-shrink: 0;
}

/* ── HEADER ── */
header {
  position: sticky; top: 0; z-index: 100;
  width: 100%; height: 64px; padding: 0 2.2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: rgba(7,6,15,.88);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.logo {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.38rem; font-weight: 700; letter-spacing: .06em;
  color: var(--white); text-decoration: none; cursor: pointer; flex-shrink: 0;
}
.logo em { color: var(--p-bright); font-style: normal; }
.header-right { display: flex; align-items: center; gap: .5rem; }
nav { display: flex; align-items: center; gap: .2rem; flex-wrap: nowrap; }

.nav-tab {
  display: inline-flex; align-items: center; gap: .38rem;
  padding: .36rem .95rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: .84rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted); background: transparent;
  border: 1px solid transparent; border-radius: 7px;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: color .2s, border-color .2s, background .2s;
}
.nav-tab i { font-size: .74rem; }
.nav-tab:hover { color: var(--text); border-color: var(--border); background: var(--surface); }
.nav-tab.active { color: var(--p-bright); border-color: rgba(155,31,232,.36); background: var(--glow-soft); }

.nav-sep { width: 1px; height: 16px; background: var(--border2); margin: 0 .15rem; flex-shrink: 0; }

.nav-ext {
  display: inline-flex; align-items: center; gap: .38rem;
  padding: .36rem .9rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: .84rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted); background: transparent;
  border: 1px solid transparent; border-radius: 7px;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: color .2s, border-color .2s, background .2s;
}
.nav-ext:hover     { color: var(--text);    border-color: var(--border);             background: var(--surface); }
.nav-ext.yt:hover  { color: var(--yt);      border-color: rgba(232,48,48,.32);       background: rgba(232,48,48,.07); }
.nav-ext.tw:hover  { color: var(--twitch);  border-color: rgba(139,63,245,.32);      background: rgba(139,63,245,.07); }
.nav-ext.dc:hover  { color: var(--discord); border-color: rgba(88,101,242,.32);      background: rgba(88,101,242,.07); }

.menu-toggle {
  display: none; background: none;
  border: 1px solid var(--border); border-radius: 7px;
  padding: .33rem .58rem; color: var(--text); cursor: pointer; font-size: .92rem;
  transition: background .2s; flex-shrink: 0;
}
.menu-toggle:hover { background: var(--surface); }

/* ── PAGES ── */
#page-home, #page-setup { position: relative; z-index: 1; display: none; }
#page-home.active, #page-setup.active { display: block; animation: fadeUp .4s ease forwards; }

/* ── HOME GRID ── */
.home-wrap {
  max-width: 1140px; margin: 0 auto;
  padding: 2.8rem 1.5rem 3.5rem;
  display: grid; grid-template-columns: 1fr 355px;
  gap: 2.2rem; align-items: start;
  width: 100%; overflow: hidden;
}

/* ── HERO ── */
.hero-section { min-width: 0; overflow: hidden; }
.hero-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(1.95rem, 3.8vw, 3rem);
  font-weight: 700; line-height: 1.13; letter-spacing: .02em;
  color: var(--white); margin-bottom: .95rem;
}
.hero-title .hi { color: var(--p-bright); text-shadow: 0 0 24px var(--glow); }
.hero-desc {
  font-size: .97rem; font-weight: 400;
  color: var(--muted); line-height: 1.85;
  max-width: min(560px, 100%); margin-bottom: 1.6rem;
}
.hero-desc strong { color: var(--text); font-weight: 500; }

/* ── LIVE BANNER ── */
.live-banner {
  display: none;
  align-items: center; gap: .75rem;
  padding: .7rem 1rem;
  background: rgba(220,30,30,.1);
  border: 1px solid rgba(220,30,30,.3);
  border-radius: 10px; margin-bottom: 1.5rem;
  text-decoration: none;
  transition: background .2s, border-color .2s;
}
.live-banner.visible { display: flex; }
.live-banner:hover { background: rgba(220,30,30,.18); border-color: rgba(220,30,30,.5); }
.live-banner-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #ff4444; box-shadow: 0 0 8px #ff4444;
  animation: livePulse 1.4s ease-in-out infinite; flex-shrink: 0;
}
.live-banner-text { display: flex; flex-direction: column; gap: .1rem; }
.live-banner-label { font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #ff6666; }
.live-banner-sub   { font-size: .82rem; color: var(--text); }
.live-banner-arrow { margin-left: auto; color: var(--muted); font-size: .8rem; flex-shrink: 0; }

/* ── TOPIC CHIPS ── */
.topics { display: flex; gap: .45rem; flex-wrap: wrap; margin-bottom: 1.7rem; }
.topic-chip {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .24rem .72rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  border-radius: 4px;
  border: 1px solid rgba(155,31,232,.28);
  color: var(--p-bright); background: rgba(155,31,232,.08);
}
.topic-chip i { font-size: .58rem; }

/* ── BUTTONS ── */
.hero-actions { display: flex; gap: .65rem; flex-wrap: wrap; margin-bottom: 2.2rem; width: 100%; }
.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .6rem 1.3rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: .86rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  border-radius: 8px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; min-width: 0; max-width: 100%;
  transition: transform .18s, box-shadow .18s, background .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn i { font-size: .8rem; }
.btn-yt { background: var(--yt); color: #fff; }
.btn-yt:hover { background: #ff1616; box-shadow: 0 5px 22px rgba(232,48,48,.32); }
.btn-tw { background: var(--twitch); color: #fff; }
.btn-tw:hover { background: #9b50ff; box-shadow: 0 5px 22px rgba(139,63,245,.32); }
.btn-dc { background: rgba(88,101,242,.12); color: var(--text); border-color: rgba(88,101,242,.3); }
.btn-dc:hover { border-color: rgba(88,101,242,.55); background: rgba(88,101,242,.2); color: #9ba8ff; }

/* ── SECTION LABEL ── */
.section-label {
  font-size: .72rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .75rem;
  display: flex; align-items: center; gap: .45rem;
}
.section-label::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--border), transparent); }

/* ── LATEST VIDEO CARD ── */
.video-card {
  display: block; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border); text-decoration: none;
  background: var(--bg2); width: 100%; max-width: 100%;
  transition: border-color .28s, transform .28s, box-shadow .28s;
}
.video-card:hover { border-color: rgba(155,31,232,.44); transform: translateY(-3px); box-shadow: 0 12px 38px rgba(155,31,232,.18); }
.video-thumb-wrap { position: relative; width: 100%; padding-top: 56.25%; background: #0e0b1c; overflow: hidden; }
.video-thumb-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.loading-thumb { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.loading-thumb i { font-size: 1.9rem; color: var(--muted); opacity: .3; animation: pulse 1.7s ease-in-out infinite; }
.video-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(7,6,15,.78) 0%, transparent 52%);
  display: flex; align-items: center; justify-content: center;
}
.play-btn {
  width: 58px; height: 40px; border-radius: 8px;
  background: rgba(20,10,30,.75); border: none;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px); transform: scale(.82);
  transition: transform .22s, background .22s, box-shadow .22s;
}
.video-card:hover .play-btn { transform: scale(1); background: #ff0000; box-shadow: 0 2px 18px rgba(255,0,0,.45); }
.play-btn i { color: #fff; font-size: 1rem; margin-left: 3px; }
.video-info { padding: .8rem 1rem; border-top: 1px solid var(--border2); }
.video-title-text { font-size: .88rem; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: .16rem; }
.video-sub { font-size: .72rem; font-weight: 400; color: var(--muted); }

/* ── VIDEO ARCHIVE ── */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .9rem; margin-top: .2rem;
  width: 100%; min-width: 0; overflow: hidden;
}
.archive-card {
  display: block; text-decoration: none;
  border-radius: 8px; overflow: hidden;
  border: 1px solid var(--border2);
  background: var(--bg2);
  opacity: 0; animation: fadeUp .4s ease forwards;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.archive-card:hover { border-color: rgba(155,31,232,.38); transform: translateY(-3px); box-shadow: 0 8px 28px rgba(155,31,232,.14); }
.archive-thumb { position: relative; width: 100%; padding-top: 56.25%; background: #0e0b1c; overflow: hidden; }
.archive-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.archive-card:hover .archive-thumb img { transform: scale(1.04); }
.archive-thumb-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(7,6,15,.7) 0%, transparent 60%);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .25s;
}
.archive-card:hover .archive-thumb-overlay { opacity: 1; }
.archive-play {
  width: 44px; height: 30px; border-radius: 6px;
  background: #ff0000; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 12px rgba(255,0,0,.4);
}
.archive-play i { color: #fff; font-size: .8rem; margin-left: 2px; }
.archive-info { padding: .55rem .7rem; }
.archive-title {
  font-size: .78rem; font-weight: 500; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.48; margin-bottom: .25rem;
}
.archive-views { font-size: .7rem; font-weight: 400; color: var(--muted); }
.archive-skeleton { border-radius: 8px; background: var(--surface); border: 1px solid var(--border2); overflow: hidden; }
.skel-thumb { width: 100%; padding-top: 56.25%; background: rgba(255,255,255,.06); animation: skelPulse 1.5s ease-in-out infinite; }
.skel-line { height: .65rem; background: rgba(255,255,255,.06); border-radius: 4px; margin: .55rem .7rem .3rem; animation: skelPulse 1.5s ease-in-out infinite; }
.skel-line.short { width: 55%; margin-top: 0; margin-bottom: .55rem; }

/* ── STATS ── */
.stats-row { display: flex; gap: 0; margin-top: 1.4rem; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.stat-item { flex: 1; display: flex; flex-direction: column; gap: .15rem; padding: .9rem 1rem; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-val { font-family: 'Rajdhani', sans-serif; font-size: 1.38rem; font-weight: 700; color: var(--white); }
.stat-key { font-size: .72rem; color: var(--muted); }
.stat-topics { flex: 2; display: flex; flex-direction: column; gap: .15rem; padding: .9rem 1rem; }
.stat-topics .stat-key { margin-bottom: .28rem; }
.stat-topics-vals { display: flex; gap: .4rem; flex-wrap: wrap; }
.stat-topic-val {
  font-family: 'Rajdhani', sans-serif; font-size: 1.05rem; font-weight: 600; color: var(--white);
  background: var(--surface2); border: 1px solid var(--border); border-radius: 5px; padding: .18rem .55rem;
}

/* ── SIDEBAR ── */
.sidebar-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.sidebar-head {
  padding: .82rem 1.15rem; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: .5rem; background: var(--surface2);
}
.sidebar-head i { font-size: .95rem; color: var(--discord); }
.sidebar-head span { font-family: 'Rajdhani', sans-serif; font-size: .95rem; font-weight: 600; letter-spacing: .05em; color: var(--text); }
.sidebar-card iframe { display: block; width: 100%; border: none; background: transparent; }

/* ── SETUP ── */
.setup-wrap { max-width: 1140px; margin: 0 auto; padding: 2.8rem 1.5rem 3.5rem; width: 100%; overflow: hidden; }
.setup-hd { margin-bottom: 2rem; }
.setup-hd h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(1.65rem, 3vw, 2.35rem); font-weight: 700; letter-spacing: .04em;
  color: var(--white); margin-bottom: .28rem;
}
.setup-hd p { color: var(--muted); font-size: .88rem; }
.setup-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(295px, 1fr)); gap: 1.25rem; }
.setup-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  opacity: 0; animation: fadeUp .5s ease forwards;
  transition: border-color .28s, box-shadow .28s, transform .28s;
}
.setup-panel:nth-child(1) { animation-delay: .04s; }
.setup-panel:nth-child(2) { animation-delay: .12s; }
.setup-panel:nth-child(3) { animation-delay: .2s; }
.setup-panel:hover { border-color: rgba(155,31,232,.36); box-shadow: 0 7px 28px rgba(155,31,232,.11); transform: translateY(-3px); }
.panel-head {
  padding: .88rem 1.25rem; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: .55rem; background: var(--surface2);
}
.panel-head i { font-size: 1rem; color: var(--p-bright); width: 18px; text-align: center; flex-shrink: 0; }
.panel-head h2 { font-family: 'Rajdhani', sans-serif; font-size: .98rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--white); }
.spec-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: .55rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,.034);
  gap: .8rem; transition: background .16s;
}
.spec-row:last-child { border-bottom: none; }
.spec-row:hover { background: var(--surface2); }
.spec-key {
  display: flex; align-items: center; gap: .38rem;
  font-size: .75rem; font-weight: 500; color: var(--muted);
  letter-spacing: .03em; white-space: nowrap; min-width: 98px;
}
.spec-key .fa-solid,
.spec-key .fa-brands { font-size: .72rem; color: var(--p-dim); width: 13px; text-align: center; flex-shrink: 0; display: inline-block; }
.spec-val { font-size: .82rem; color: var(--text); text-align: right; }
.spec-val a { color: var(--text); text-decoration: none; transition: color .18s; }
.spec-val a:hover { color: var(--p-bright); }

/* ── FOOTER ── */
footer {
  position: relative; z-index: 1;
  padding: 1.4rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .8rem;
}
.footer-brand { font-family: 'Rajdhani', sans-serif; font-size: 1.05rem; font-weight: 700; letter-spacing: .06em; color: var(--white); }
.footer-brand em { color: var(--p-bright); font-style: normal; }
.footer-links { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.footer-link {
  display: inline-flex; align-items: center; gap: .32rem;
  padding: .3rem .78rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  border: 1px solid transparent; border-radius: 6px;
  transition: color .2s, border-color .2s, background .2s;
}
.footer-link:hover    { color: var(--text);    border-color: var(--border);             background: var(--surface); }
.footer-link.yt:hover { color: var(--yt);      border-color: rgba(232,48,48,.28);       background: rgba(232,48,48,.07); }
.footer-link.tw:hover { color: var(--twitch);  border-color: rgba(139,63,245,.28);      background: rgba(139,63,245,.07); }
.footer-link.dc:hover { color: var(--discord); border-color: rgba(88,101,242,.28);      background: rgba(88,101,242,.07); }
.footer-copy { width: 100%; font-size: .72rem; font-weight: 400; color: var(--muted); opacity: .45; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .home-wrap { grid-template-columns: 1fr; }
  .sidebar { order: 2; width: 100%; min-width: 0; }
  .hero-section { order: 1; min-width: 0; }
  .sidebar-card iframe { height: 240px; }
  .archive-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

@media (max-width: 600px) {
  .archive-card:nth-child(n+5), .archive-skeleton:nth-child(n+5) { display: none; }
  header { padding: 0 1rem; height: 60px; }
  .menu-toggle { display: flex; }
  nav {
    display: none;
    position: absolute; top: 60px; left: 0; right: 0;
    background: rgba(7,6,15,.97);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch;
    padding: .5rem .9rem .8rem; gap: .18rem; z-index: 99;
  }
  nav.open { display: flex; }
  .nav-sep { display: none; }
  .nav-tab, .nav-ext { border-color: var(--border); text-align: left; }
  .home-wrap, .setup-wrap { padding: 1.6rem .9rem 2.8rem; }
  .hero-title { font-size: 1.65rem; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { justify-content: center; width: 100%; box-sizing: border-box; }
  .stats-row { flex-wrap: wrap; }
  .stat-item { min-width: calc(50% - 1px); }
  .stat-topics { min-width: 100%; border-top: 1px solid var(--border); border-right: none; }
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .watermark { display: none; }
  footer { flex-direction: column; align-items: flex-start; }
}
