/* =========================
   Reset + basic styles
========================= */
* { margin:0; padding:0; box-sizing:border-box; font-family:'Rajdhani', sans-serif; }
body { background:#121212; color:#f5f5f5; line-height:1.6; }

/* =========================
   Login Form
========================= */

.top-login-bar {
  display: flex;
  justify-content: flex-end;
  padding: 8px 20px;
  background: #111;
}

/* layout */
#loginForm {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

/* equal height inputs + button */
#loginForm input,
#loginForm button {
  height: 28px;
  padding: 0 8px;
  font-size: 0.85rem;
  border-radius: 4px;
  border: 1px solid #333;
  background: #2a2a2a;
  color: #ccc;
}

/* subtle placeholder */
#loginForm input::placeholder {
  color: #777;
}

/* remove strong focus glow */
#loginForm input:focus {
  outline: none;
  border-color: #444;
}

/* subtle button */
#loginForm button {
  cursor: pointer;
  transition: background 0.2s ease;
}

#loginForm button:hover {
  background: #333;
}

/* =========================
   Header
========================= */
header {
  background:black;
  padding:1rem;
  border-bottom:2px solid #e63946;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

header div { text-align:center; }
header h1 { font-family:'Orbitron', sans-serif; font-size:2.5rem; color:#0ff;
  text-shadow:0 0 3px #0ff,0 0 6px #0ff,0 0 10px #00ffff,0 0 20px #ff00ff;
}
header h2 { font-family:'Orbitron', sans-serif; font-size:1.5rem; color:#ff6afc;
  text-shadow:0 0 3px #ff6afc,0 0 6px #ff6afc,0 0 10px #ff99ff,0 0 20px #ff00ff;
}

/* =========================
   Nav
========================= */
nav { display:flex; justify-content:center; background:#222; border-bottom:1px solid #444; }
nav a { color:#f5f5f5; text-decoration:none; padding:1rem; transition: color 0.2s; }
nav a:hover { color:#e63946; }

/* =========================
   Main
========================= */
html, body {
  min-width: 320px;
}

main {
    padding:0.5rem;
    min-width:320px;
    max-width:1000px;
    margin:0 auto;
}

section {
    margin-bottom:2rem;
}

/* =========================
   Stream player
========================= */
.stream-player { background:#1f1f1f; padding:1rem; text-align:center; border-radius:5px; margin-bottom:2rem; }
.stream-player p { margin-bottom:0.5rem; }
audio { margin-top:15px; width:300px; height:40px; background:#000; border:2px solid #0f0; border-radius:0; outline:none; }

/* connect / disconnect button */
.btn-action {
  background:#e63946; color:#fff; border:none; padding:0.6rem 1.2rem; border-radius:5px;
  cursor:pointer; font-weight:bold; transition:transform 0.2s, background 0.2s;
  margin-top:15px;
}
.btn-action:hover { transform:translateY(-2px); background:#ff4f6d; }

/* =========================
   Band Section
========================= */
.band-section { display:grid; grid-template-columns:1fr 1fr; gap:2rem; background:#1f1f1f; padding:2rem; border-radius:8px; }
.band-list-left { display:grid; grid-template-columns:repeat(2,1fr); gap:1rem; align-content:start; }
.band-item { background:#222; padding:1rem; border-radius:5px; text-align:center; cursor:pointer; transition: transform 0.2s, background 0.2s; }
.band-item:hover { transform:translateY(-3px); background:#2a2a2a; color:#e63946; }
.band-image-placeholder { background:#2a2a2a; display:flex; align-items:center; justify-content:center; border-radius:5px; height:100%; }
.band-image-placeholder img {
  width: 100%;
  max-width: 90vw;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 5px;
  transition: opacity 0.3s ease;
  display: block;
  margin: 0 auto;
}

/* =========================
   AI Moderators
========================= */
#ai-moderators div { text-align:center; margin:0.5rem; }

/* =========================
   Footer
========================= */
footer { background:#1f1f1f; text-align:center; padding:1rem; border-top:2px solid #e63946; font-size:0.9rem; color:#aaa; }

/* =========================
   Responsive tweaks
========================= */
@media (max-width: 768px) {
  .band-section {
    grid-template-columns: 1fr; /* celý grid sa zlomi na jeden stĺpec */
    padding: 1rem;
  }

  .band-list-left {
    grid-template-columns: 1fr; /* každý band-item bude jedna “riadka” */
  }

  .band-image-placeholder {
    margin-top: 1rem;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1; /* zachová štvorcový obraz */
  }

  .ai-player {
    max-width: 100%;
    height: 200px;
    padding: 15px;
  }

  .ai-player input[type=range] {
    width: 100%; /* aby volume bar nepresahoval */
  }
}

/* =========================
   Site Menu
========================= */
#siteMenu {
  position: fixed;
  top: 12px;
  right: 16px;
  z-index: 1000;
}

#menuToggle {
  background: transparent;
  border: none;
  color: #f5f5f5;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 4px;
  transition: background 0.2s;
}

#menuToggle:hover {
  background: #222;
}

.menu-dropdown {
  position: absolute;
  right: 0;
  top: 36px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 6px;
  min-width: 200px;
  padding: 8px 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}

.menu-dropdown.hidden {
  display: none;
}

.menu-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  gap: 12px;
}

.menu-label {
  color: #aaa;
  font-size: 0.85rem;
}

.menu-value {
  color: #f5f5f5;
  font-size: 0.85rem;
}

.menu-lang-buttons {
  display: flex;
  gap: 6px;
}

.menu-lang-btn {
  background: #2a2a2a;
  border: 1px solid #444;
  color: #f5f5f5;
  padding: 2px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.2s;
}

.menu-lang-btn:hover {
  background: #333;
}

.menu-lang-btn.active {
  border-color: #0ff;
  color: #0ff;
}

.menu-divider {
  border-top: 1px solid #333;
  margin: 4px 0;
}

/* =========================
   Modal
========================= */
#siteModal {
  position: fixed;
  inset: 0;
  z-index: 2000;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
}

.modal-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-box h2 {
  color: #0ff;
  font-family: 'Orbitron', sans-serif;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.modal-content p {
  color: #ccc;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: #aaa;
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #f5f5f5;
}

/* =========================
   Poll
========================= */
#poll {
  background: #1f1f1f;
  padding: 1.5rem;
  border-radius: 5px;
  margin-bottom: 2rem;
}

.poll-question {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ccc;
  margin-bottom: 1.25rem;
}

.poll-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.poll-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 5px;
  padding: 0.6rem 1rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  user-select: none;
  color: #f5f5f5;
}

.poll-option:hover {
  background: #222;
  border-color: #555;
}

.poll-option.selected {
  border-color: #0ff;
  background: #0d1f1f;
}

.poll-option-number {
  font-size: 0.8rem;
  color: #666;
  width: 20px;
  flex-shrink: 0;
  text-align: center;
}

.poll-option-emoji {
  font-size: 1.4rem;
  width: 2rem;
  flex-shrink: 0;
  text-align: center;
}

.poll-option-label {
  font-size: 0.95rem;
  color: #f5f5f5 !important;
  flex: 1;
}

.poll-option.selected .poll-option-label {
  color: #0ff;
}

.poll-option-check {
  color: #0ff;
  font-size: 1rem;
  width: 20px;
  flex-shrink: 0;
  text-align: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.poll-option.selected .poll-option-check {
  opacity: 1;
}

/* =========================
   Contact
========================= */
#contact {
  background: #1f1f1f;
  padding: 1.5rem;
  border-radius: 5px;
  margin-bottom: 2rem;
}

#contact p {
  color: #ccc;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.contact-disclaimer {
  font-size: 0.8rem !important;
  color: #888 !important;
}

.contact-category {
  background: #2a2a2a;
  border: 1px solid #444;
  color: #f5f5f5;
  padding: 0.4rem 0.8rem;
  border-radius: 5px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
}

.contact-textarea {
  width: 100%;
  background: #2a2a2a;
  border: 1px solid #444;
  color: #f5f5f5;
  padding: 0.75rem;
  border-radius: 5px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  resize: vertical;
  min-height: 120px;
  margin-bottom: 0.5rem;
}

.contact-email {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  width: 0;
  height: 0;
  overflow: hidden;
}

.contact-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.contact-success {
  flex: 1;
  text-align: center;
  color: #0ff;
  font-size: 0.95rem;
  background: #0d1f1f;
  border: 1px solid #0ff;
  padding: 0.4rem 0.8rem;
  border-radius: 5px;  
}

.hidden {
  display: none;
}

.contact-textarea:focus {
  outline: none;
  border-color: #666;
}

.contact-countdown-wrapper {
  text-align: right;
  margin-bottom: 0.75rem;
}

.contact-countdown {
  font-size: 0.85rem;
  color: #888;
}

.contact-countdown-warning {
  color: #e63946;
}

.contact-submit {
  background: #e63946;
  color: #fff;
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.2s;
}

.contact-submit:hover {
  background: #ff4f6d;
}

.contact-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
