/* ============================================================
   RADIO OIOM – MAIN STYLES
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&display=swap');

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

:root {
  --accent-blue:   #57a9fe;
  --accent-pink:   #d839d2;
  --accent-red:    #ef4444;
  --bg-dark:       #0d1117;
  --bg-glass:      rgba(13, 17, 23, 0.72);
  --border-glass:  rgba(255,255,255,0.08);
  --text-main:     #e6edf3;
  --text-muted:    #8b949e;
  --header-height-min: 340px;
  --nav-height: 56px;
}

html, body {
  height: 100%;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0d1117; }
::-webkit-scrollbar-thumb { background: rgba(87,169,254,0.3); border-radius: 3px; }

/* ============================================================
   HEADER
   ============================================================ */
#site-header {
  position: relative;
  width: 100%;
  min-height: var(--header-height-min);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  padding-bottom: 24px;
}

/* Tło headera */
#site-header .header-bg {
  position: absolute;
  inset: 0;
  background-image: url('../header.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  z-index: 0;
}
/* Przyciemnienie + gradient na dole */
#site-header .header-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13,17,23,0.45) 0%,
    rgba(13,17,23,0.55) 60%,
    rgba(13,17,23,0.92) 100%
  );
}

/* ── LOGO ── */
#logo-area {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 28px 0 12px;
}
.oiom-logo {
  width: clamp(220px, 35vw, 400px);
  height: auto;
  object-fit: contain;
  display: block;
  cursor: pointer;
  will-change: transform, filter;
  animation:
    logoEntry 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    logoFloat 7s ease-in-out 2s infinite,
    logoAura  8s ease-in-out 2s infinite;
  opacity: 0;
}
@keyframes logoEntry {
  0%   { opacity:0; transform: scale(0.88) translateY(16px); filter: brightness(0.4) blur(4px); }
  60%  { opacity:1; transform: scale(1.02) translateY(-3px); filter: brightness(1.2) blur(0); }
  100% { opacity:1; transform: scale(1) translateY(0);        filter: brightness(1) blur(0); }
}
@keyframes logoFloat {
  0%,100% { transform: translateY(0) rotate(-0.3deg); }
  50%     { transform: translateY(-8px) rotate(0.3deg); }
}
@keyframes logoAura {
  0%,100% { filter: drop-shadow(0 0 8px rgba(255,255,255,0.35)); }
  25%     { filter: drop-shadow(0 0 22px rgba(216,57,210,0.85)) drop-shadow(0 0 55px rgba(216,57,210,0.35)); }
  50%     { filter: drop-shadow(0 0 22px rgba(87,169,254,0.85))  drop-shadow(0 0 55px rgba(87,169,254,0.35)); }
  75%     { filter: drop-shadow(0 0 22px rgba(216,57,210,0.85)) drop-shadow(0 0 55px rgba(216,57,210,0.35)); }
}
.oiom-logo:hover {
  animation-play-state: paused, paused, paused;
  transform: scale(1.05) translateY(-4px);
  filter: drop-shadow(0 0 30px rgba(87,169,254,0.9)) drop-shadow(0 0 60px rgba(216,57,210,0.6));
  transition: transform 0.35s ease, filter 0.35s ease;
}

/* ── PLAYER AREA ── */
#player-area {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 680px;
  padding: 0 16px;
}

/* ── BUTTONS AREA ── */
#buttons-area {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 680px;
  padding: 0 16px;
}

/* ── ONLINE TICKER ── */
#online-ticker {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  overflow: hidden;
  background: rgba(8,11,16,0.6);
  padding: 6px 0 8px;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  mask-image:         linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}
#online-ticker iframe {
  display: block;
  border: none;
  max-width: 100%;
}

/* ============================================================
   NAVIGATION  –  zmniejszony odstęp od headera
   ============================================================ */
#site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(10,14,20,0.88);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  padding: 6px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1600px;
  padding: 0 32px;
  flex-wrap: nowrap;
  justify-content: center;
}

.nav-links-group {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: color .15s, background .15s, border-color .15s;
  white-space: nowrap;
  user-select: none;
  flex-shrink: 0;
}
.nav-link:hover {
  color: var(--text-main);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.08);
}
.nav-link.active {
  color: var(--accent-blue);
  background: rgba(87,169,254,0.10);
  border-color: rgba(87,169,254,0.22);
}
.nav-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
  flex-shrink: 0;
}
.nav-dropdown-menu {
  display: none;
  position: fixed;
  background: rgba(14,19,26,0.97);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  padding: 6px;
  min-width: 180px;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.7);
  z-index: 9999;
  flex-direction: column;
  gap: 2px;
}
.nav-dropdown.open .nav-dropdown-menu {
  display: flex;
}
.nav-dropdown-menu .nav-link {
  width: 100%;
  font-size: 13px;
  padding: 9px 14px;
}

/* Chevron */
.nav-chevron {
  width: 12px !important;
  height: 12px !important;
  flex-shrink: 0;
  transition: transform .2s;
}
.nav-dropdown.open .nav-chevron { transform: rotate(180deg); }

/* ── Hamburger mobile ── */
#nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  color: var(--text-main);
  margin-left: auto;
}
#nav-toggle svg { width: 20px; height: 20px; display: block; }

@media (max-width: 680px) {
  .nav-inner { flex-wrap: nowrap; }
  #nav-toggle { display: flex; }
  .nav-links-group {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(10,14,20,0.97);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    flex-direction: column;
    padding: 8px 12px 12px;
    gap: 2px;
    backdrop-filter: blur(16px);
  }
  .nav-links-group.open { display: flex; }
  .nav-dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    padding: 4px 0 4px 12px;
  }
  .nav-dropdown:hover .nav-dropdown-menu { display: none; }
  .nav-dropdown.open .nav-dropdown-menu  { display: flex; }
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
#page-content {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 24px 32px;
  box-sizing: border-box;
}

#page-content iframe,
.page-iframe {
  width: 100%;
  max-width: 100%;
  border: none;
  border-radius: 12px;
  display: block;
}

/* Placeholder "treść wkrótce" */
.page-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
  min-height: 40vh;
  opacity: 0;
  animation: fadeUp .6s ease .2s forwards;
}
@keyframes fadeUp {
  from { opacity:0; transform:translateY(20px); }
  to   { opacity:1; transform:translateY(0); }
}
.page-placeholder .pg-icon {
  font-size: 56px;
  line-height: 1;
  filter: drop-shadow(0 0 20px rgba(87,169,254,0.5));
}
.page-placeholder h2 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 900;
  color: var(--text-main);
}
.page-placeholder p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.6;
}
.page-placeholder .pg-divider {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--accent-pink), var(--accent-blue));
  border-radius: 2px;
}

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 28px 20px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(8,11,16,0.8);
}
#site-footer a { color: var(--accent-blue); text-decoration: none; }
#site-footer a:hover { text-decoration: underline; }

/* ============================================================
   PARTICLES (dekoracja headera)
   ============================================================ */
#particles-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}