/* Modern Design Theme for Nobody.live */
/* This is applied when modernDesign setting is enabled */

.modern-design {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  background-attachment: fixed;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.modern-design .motd {
  background: linear-gradient(90deg, #e94560 0%, #c72c41 100%);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
  animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modern-design .container {
  background: rgba(22, 33, 62, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modern-design .container:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.modern-design h1 {
  background: linear-gradient(135deg, #e94560 0%, #f39c12 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(233, 69, 96, 0.5);
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    filter: drop-shadow(0 0 5px rgba(233, 69, 96, 0.5));
  }
  to {
    filter: drop-shadow(0 0 20px rgba(233, 69, 96, 0.8));
  }
}

.modern-design .left-pane,
.modern-design .right-pane {
  animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modern-design #new-streamer-button {
  background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
  border: none;
  border-radius: 25px;
  padding: 12px 24px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(0, 210, 255, 0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.modern-design #new-streamer-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.modern-design #new-streamer-button:enabled:hover::before {
  left: 100%;
}

.modern-design #new-streamer-button:enabled:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 210, 255, 0.6);
}

.modern-design #new-streamer-button:disabled,
.modern-design #new-streamer-button[disabled] {
  background: linear-gradient(135deg, #4a4a4a 0%, #2a2a2a 100%);
  box-shadow: none;
}

.modern-design a,
.modern-design .fake-link {
  color: #00d2ff;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.modern-design a::after,
.modern-design .fake-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background: linear-gradient(90deg, #00d2ff, #3a7bd5);
  transition: width 0.3s ease;
}

.modern-design a:hover::after,
.modern-design .fake-link:hover::after {
  width: 100%;
}

.modern-design a:hover,
.modern-design .fake-link:hover {
  color: #3a7bd5;
}

.modern-design .thumbnail-item {
  border: 2px solid rgba(0, 210, 255, 0.3);
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.modern-design .thumbnail-item:hover {
  border-color: rgba(0, 210, 255, 0.8);
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 210, 255, 0.4);
  filter: brightness(1.2);
}

.modern-design #footer {
  background: rgba(22, 33, 62, 0.6);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.modern-design .filter-active {
  color: #e94560;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(233, 69, 96, 0.5);
}

.modern-design .new-thumbnails {
  color: #00d2ff;
  font-weight: 500;
  transition: all 0.3s ease;
}

.modern-design .new-thumbnails:hover {
  color: #3a7bd5;
  text-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
}

.modern-design #stream-list a {
  background: rgba(0, 210, 255, 0.1);
  padding: 4px 8px;
  border-radius: 6px;
  margin: 0 2px;
  display: inline-block;
  transition: all 0.3s ease;
}

.modern-design #stream-list a:hover {
  background: rgba(0, 210, 255, 0.2);
  transform: translateY(-2px);
}

.modern-design .cookie-check,
.modern-design .stream_duration_container {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

/* Modern scrollbar */
.modern-design ::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.modern-design ::-webkit-scrollbar-track {
  background: rgba(22, 33, 62, 0.5);
  border-radius: 10px;
}

.modern-design ::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
  border-radius: 10px;
  border: 2px solid rgba(22, 33, 62, 0.5);
}

.modern-design ::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #3a7bd5 0%, #00d2ff 100%);
}

/* Modern modal styling */
.modern-design .modal__container {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 1px solid rgba(0, 210, 255, 0.3);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  color: #eeebff;
}

.modern-design .modal__content {
  color: #eeebff;
}

.modern-design .modal__content label {
  color: #eeebff;
}

.modern-design .modal__title {
  background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modern-design .modal__btn {
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modern-design .modal__btn-primary {
  background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
  box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
}

.modern-design .modal__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 210, 255, 0.5);
}

.modern-design input[type="text"],
.modern-design select {
  background: rgba(22, 33, 62, 0.8);
  border: 2px solid rgba(0, 210, 255, 0.3);
  border-radius: 10px;
  color: #eeebff;
  padding: 10px 15px;
  transition: all 0.3s ease;
}

.modern-design input[type="text"]:focus,
.modern-design select:focus {
  border-color: #00d2ff;
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.3);
  outline: none;
}

.modern-design input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #00d2ff;
}

.modern-design .field-description {
  font-style: italic;
  font-size: 0.8rem;
  display: block;
  color: rgba(255, 255, 255, 0.7);
}

.modern-design .field-config {
  font-size: 0.875rem;
  color: #eeebff;
}

.modern-design code {
  background: rgba(0, 210, 255, 0.2);
  color: #00d2ff;
  border: 1px solid rgba(0, 210, 255, 0.3);
  border-radius: 6px;
  padding: 2px 8px;
  font-family: 'Courier New', monospace;
}

.modern-design details summary {
  cursor: pointer;
  font-weight: 600;
  color: #00d2ff;
  padding: 12px;
  border-radius: 8px;
  background: rgba(0, 210, 255, 0.1);
  transition: all 0.3s ease;
  margin: 10px 0;
  text-align: center;
}

.modern-design details summary:hover {
  background: rgba(0, 210, 255, 0.2);
  transform: translateX(5px);
}

.modern-design details[open] summary {
  border-bottom: 2px solid rgba(0, 210, 255, 0.3);
  border-radius: 8px 8px 0 0;
}

.modern-design hr {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 210, 255, 0.3), transparent);
  margin: 20px 0;
}

/* Pulse animation for active stream */
.modern-design .stream_duration_container {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Glass morphism effect for dual column mode */
.modern-design.dual-column #twitch-embed-wrapper {
  background: rgba(22, 33, 62, 0.6);
  backdrop-filter: blur(20px);
}

.modern-design.dual-column #thumbnail-wrapper {
  background: rgba(22, 33, 62, 0.6);
  backdrop-filter: blur(20px);
}

/* Animated gradient background option */
.modern-design.background-textured {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 25%, #0f3460 50%, #16213e 75%, #1a1a2e 100%);
  background-size: 400% 400%;
  background-attachment: fixed;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Smooth transitions for all interactive elements */
.modern-design * {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
