/* Basic reset and box-sizing */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Body background & fonts */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: url('../images/background.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.light-mode {
  color: #18181b;
}

body.light-mode::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.18);
  pointer-events: none;
  z-index: 0;
}

/* Header & Footer */
header, footer {
  background-color: #1a1a1a;
  padding: 30px;
  text-align: center;
  flex-shrink: 0;
}

body.light-mode header,
body.light-mode footer {
  background-color: #e0e0e0;
  color: #18181b;
}

/* Navigation */
nav {
  background-color: #111;
  padding: 10px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  flex-shrink: 0;
}

body.light-mode nav {
  background-color: #fff;
}

nav a {
  color: #00ffff;
  margin: 0 15px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  padding-bottom: 4px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.3s, border-bottom 0.3s;
  border-bottom: none;
}

body.light-mode nav a {
  color: #0077ff;
}

nav a.active,
nav a:hover {
  color: #ffcc00;
  border-bottom: 2px solid #ffcc00;
}

body.light-mode nav a.active,
body.light-mode nav a:hover {
  color: #ff6600;
  border-bottom: 2px solid #ff6600;
}

/* Main & Section */
main {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 20px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

section {
  display: none;
  background-color: #111;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,255,255,0.1);
  width: 100%;
  max-width: 1000px;
  padding: 60px 40px;
  color: #00ffff;
  position: relative;
  min-height: 200px;
}

body.light-mode section {
  background-color: rgba(255,255,255,0.92);
  color: #18181b;
  box-shadow: 0 0 15px rgba(0,0,0,0.08);
}

section.active {
  display: block;
}

/* Title */
.title-below {
  font-size: 3.5rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-top: 4px solid #00ffff;
  padding-top: 10px;
  margin-bottom: 30px;
  max-width: fit-content;
}

body.light-mode .title-below {
  border-top: 4px solid #0077ff;
  color: #0077ff;
}

/* RGB Title */
.rgb-title {
  font-weight: bold;
  font-size: 2.5rem;
  text-transform: uppercase;
  background: linear-gradient(270deg, red, orange, yellow, green, cyan, blue, violet, red);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rgbFlow 8s linear infinite;
  transition: text-shadow 0.3s ease;
}

/* Gradient flow animation */
@keyframes rgbFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

body:not(.light-mode) .rgb-title {
  text-shadow: 0 0 15px rgba(0, 255, 255, 0.6);
}

body.light-mode .rgb-title {
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.25);
}

/* Lists */
ul {
  margin-left: 20px;
  font-size: 1.2rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

ul li {
  margin-bottom: 8px;
}

/* Images setup */
.setup-images {
  display: flex;
  justify-content: space-around;
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.setup-images img {
  max-width: 45%;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,255,255,0.3);
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.setup-images img:hover {
  transform: scale(1.05);
}

/* Lightbox overlay */
#lightbox-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  cursor: zoom-out;
}

#lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 0 25px rgba(0,255,255,0.8);
  cursor: zoom-out;
}

/* Socials */
#socials a {
  display: inline-block;
  color: #00ffff;
  font-weight: bold;
  text-decoration: none;
  margin-right: 25px;
  font-size: 1.3rem;
  transition: color 0.3s;
}
#socials a:hover {
  color: #ffcc00;
  text-decoration: underline;
}

body.light-mode #socials a {
  color: #0077ff;
}
body.light-mode #socials a:hover {
  color: #ff6600;
  text-decoration: underline;
}

/* Links in sections */
section a {
  color: #00ffff;
  text-decoration: none;
  transition: color 0.3s ease;
}
section a:hover {
  color: #ffcc00;
  text-decoration: underline;
}

body.light-mode section a {
  color: #0077ff;
}
body.light-mode section a:hover {
  color: #ff6600;
  text-decoration: underline;
}

/* Responsive for Socials */
#socials .socials-flex {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 32px;
}
#socials .socials-video {
  min-width: 320px;
  max-width: 320px;
  margin-right: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#socials .socials-content {
  flex: 1;
}

/* Music controls */
#music-controls {
  display: flex;
  flex-direction: row;
  align-items: center;
  background: #111;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,255,255,0.2);
  padding: 4px 8px;
  gap: 6px;
  position: fixed;
  top: 22px;
  right: 32px;
  z-index: 2000;
  min-height: 36px;
  touch-action: none;
}

#toggle-music-controls {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #00ffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin-right: 8px;
  transition: background-color 0.3s;
}
#toggle-music-controls:hover {
  background-color: #ffcc00;
}

#music-controls-hideable {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
}
.music-controls-hidden #music-controls-hideable {
  display: none !important;
}

/* Overlays hide on mobile */
@media (max-width: 900px) {
  #left-overlay-1,
  #left-overlay-2,
  #right-overlay-1,
  #right-overlay-2 {
    display: none !important;
  }

  #socials .socials-flex {
    flex-direction: column;
    gap: 0;
  }
  #socials .socials-video {
    margin: 0 0 18px 0;
    width: 100%;
    max-width: 100%;
    padding: 10px 0;
  }
}

/* Overlay theming: default = light (white) but keep neon glows.
   We target left/right separately so left overlays keep cyan glow and right overlays keep magenta glow.
   Using !important to override inline styles in `index.html`. */
#left-overlay-1,
#left-overlay-2 {
  background: #ffffff !important;
  color: #18181b !important;
  border-radius: 12px !important;
  /* panel shadow + strong cyan neon glow (match dark-mode) */
  box-shadow: 0 6px 20px rgba(0,0,0,0.06), 0 0 22px rgba(0,255,255,0.35) !important;
  padding: 16px !important;
}

#right-overlay-1,
#right-overlay-2 {
  background: #ffffff !important;
  color: #18181b !important;
  border-radius: 12px !important;
  /* panel shadow + strong magenta neon glow (match dark-mode) */
  box-shadow: 0 6px 20px rgba(0,0,0,0.06), 0 0 22px rgba(255,0,255,0.35) !important;
  padding: 16px !important;
}

/* Dark mode overrides keep stronger neon look and dark backgrounds */
body:not(.light-mode) #left-overlay-1,
body:not(.light-mode) #left-overlay-2 {
  background: #18181b !important;
  color: #00ffff !important;
  box-shadow: 0 0 22px rgba(0,255,255,0.35) !important;
}

body:not(.light-mode) #right-overlay-1,
body:not(.light-mode) #right-overlay-2 {
  background: #18181b !important;
  color: #ff00ff !important;
  box-shadow: 0 0 22px rgba(255,0,255,0.35) !important;
}

/* Mobile responsive */
@media (max-width: 700px) {
  .setup-images {
    flex-direction: column;
  }
  .setup-images img {
    max-width: 100%;
  }
  main {
    padding: 20px 10px;
  }
  section {
    padding: 40px 20px;
  }
  .title-below {
    font-size: 2.5rem;
    margin-bottom: 20px;
  }
}

/* Footer text RGB animácia, centrovaný text, zachovaný panel */
footer.rgb-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.1rem;       /* mierne väčší text */
  padding: 20px 20px;      /* mierne väčší footer */
  position: relative;
  text-align: center;
  background: #1a1a1a;
  color: #fff;
  font-weight: bold;
  flex-shrink: 0;
}

footer.rgb-footer span {
  background: linear-gradient(270deg, #ff0000, #ff9900, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rgbFlow 8s linear infinite;
}

/* Toggle theme button */
body.light-mode #toggle-theme {
  background: #fff !important;
  color: #0077ff !important;
  border: 2px solid #0077ff;
  transition: background .3s, color .3s, border .3s;
}
body.light-mode #toggle-theme:hover {
  background: #e0e0e0;
  color: #ff6600;
  border-color: #ff6600;
}

/* When light-mode is active: make the clock and music player backgrounds white
   and set their text/values to blue. Use !important to override inline styles. */
body.light-mode #time-display {
  background: #ffffff !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06) !important;
}
body.light-mode #time-display span,
body.light-mode #time-display #current-time,
body.light-mode #time-display #current-date {
  color: #0077ff !important;
  font-weight: 700;
}

body.light-mode #music-controls {
  background: #ffffff !important;
  color: #0077ff !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06) !important;
}
/* buttons and inner controls inside the music panel */
body.light-mode #music-controls button,
body.light-mode #music-controls #music-toggle,
body.light-mode #music-controls #toggle-music-controls {
  background: transparent !important;
  color: #0077ff !important;
  border: 2px solid transparent !important;
}
/* make the small circle indicator blue on light mode */
body.light-mode #toggle-music-controls span {
  background: #0077ff !important;
}
body.light-mode #music-controls #vol-value {
  color: #0077ff !important;
  font-weight: 700;
}
body.light-mode input[type="range"]#vol-slider {
  accent-color: #0077ff !important;
}
