:root {
  --primary-color: #1e293b;
  --secondary-color: #0f172a;
  --accent-color: #8b5cf6;
  --text-color: #f8fafc;
  --button-color: #4ade80;
  --button-hover: #22c55e;
  --shadow-color: rgba(0, 0, 0, 0.3);
}

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

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--primary-color);
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Dark mode styles */
body.light-mode {
  --primary-color: #f0f0f0;
  --secondary-color: #ffffff;
  --accent-color: #8b5cf6;
  --text-color: #222222;
  --button-color: #4ade80;
  --button-hover: #22c55e;
  --shadow-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .main-content {
  background-color: var(--secondary-color);
  color: var(--text-color);
}

body.light-mode .menu {
  background-color: var(--secondary-color);
  color: var(--text-color);
}

body.light-mode .menu-link {
  color: var(--text-color);
}

body.light-mode .menu-link:hover {
  color: var(--accent-color);
}

body.light-mode .control-btn,
body.light-mode .play-btn {
  background-color: #ddd;
  color: var(--text-color);
}

body.light-mode .play-btn {
  background-color: #22d3ee;
  color: #222;
}

body.light-mode .radio-clock-container {
  background-color: #ccc;
  color: var(--text-color);
}

body.light-mode .peticiones-section {
  background-color: #ddd;
  color: var(--text-color);
}

body.disabled, body.desactivated {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: var(--primary-color);
  color: var(--text-color);
  font-family: 'Poppins', sans-serif;
  height: 100vh;
}

body.disabled h1, body.desactivated h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

body.disabled p, body.desactivated p {
  font-size: 1rem;
  opacity: 0.8;
}

.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: -1;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.95));
  z-index: -1;
}

.header {
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-color);
  letter-spacing: 0.5px;
}

.menu-btn {
    background: blue;
    border: none;
    color: var(--text-color);
    font-size: 1.25rem;
    cursor: pointer;
    color-profile: blue;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  max-width: 100%;
  margin: 0 auto;
}

.status-badge {
  background-color: rgba(139, 92, 246, 0.2);
  color: var(--accent-color);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 10px var(--shadow-color);
}

.status-badge i {
  margin-right: 0.5rem;
}

.status-live {
  animation: pulse 1.5s infinite;
}

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

.cover-container {
  width: 180px;
  height: 180px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  position: relative;
  box-shadow: 0 10px 30px var(--shadow-color);
}

.cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation-delay: left;
}

.song-info {
  text-align: center;
  margin-bottom: 1.5rem;
  width: 100%;
  max-width: 300px;
}

.song-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.3px;
}

.artist-name {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 300;
}

.now-playing {
  font-size: 0.75rem;
  opacity: 0.6;
  margin-bottom: 1rem;
  font-weight: 300;
}

.controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    width: 400%;
    max-width: 300px;
}

.control-btn {
    background: none;
    border: none;
    color: #0B17F9;
    font-size: 1.25rem;
    cursor: pointer;
    margin: 0 1rem;
    opacity: 0.8;
    transition: all 0.2s;
}

.control-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

.play-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--text-color);
  color: var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px var(--shadow-color);
  transition: all 0.2s;
}

.play-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px var(--shadow-color);
}

.volume-container {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 300px;
    margin-bottom: 1rem;
    color: orange;
}

.volume-icon {
    margin-right: 1rem;
    font-size: 1rem;
    opacity: 0.8;
    color: blue;
}

.volume-control {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    color: orange;
}

.volume-control::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-color);
  cursor: pointer;
}

.timer {
  font-size: 0.75rem;
  opacity: 0.6;
  margin-top: 0.5rem;
  font-weight: 300;
}

.social-buttons {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--button-color);
  color: var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0.5rem;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 2px 10px var(--shadow-color);
  transition: all 0.2s;
}

.social-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px var(--shadow-color);
}

.menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100%;
  background-color: var(--secondary-color);
  z-index: 1000;
  padding: 2rem 1rem;
  transition: right 0.3s ease;
  box-shadow: -5px 0 15px var(--shadow-color);
  overflow-y: auto;
}

.menu.show {
  right: 0;
}

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.menu-title {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.close-menu {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.25rem;
  cursor: pointer;
}

.menu-section {
  margin-bottom: 2rem;
}

.menu-section-title {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 500;
  letter-spacing: 0.3px;
}

.menu-links {
  list-style: none;
}

.menu-link {
  padding: 0.8rem 0;
  display: flex;
  align-items: center;
  color: var(--text-color);
  text-decoration: none;
  opacity: 0.8;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.menu-link:hover {
  opacity: 1;
  transform: translateX(5px);
}

.menu-link i {
  margin-right: 1rem;
  width: 20px;
  text-align: center;
}

.history-item {
  padding: 0.8rem;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  margin-bottom: 0.8rem;
}

.history-title {
  font-weight: 500;
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
}

.history-artist {
  font-size: 0.75rem;
  opacity: 0.7;
  font-weight: 300;
}

.history-time {
  font-size: 0.7rem;
  opacity: 0.5;
  margin-top: 0.3rem;
  text-align: right;
  font-weight: 300;
}

.watermark {
  position: fixed;
  bottom: 10px;
  right: 10px;
  font-size: 0.7rem;
  opacity: 0.5;
  z-index: 100;
}

/* Novedades Page Styles */
.novedades-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: 'Poppins', sans-serif;
  background: white;
  min-height: 100vh;
  color: var(--primary-color);
}

.page-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
  font-weight: 600;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--primary-color);
  font-size: 1rem;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background-color 0.3s;
}

.back-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Tab Navigation */
.tab-menu {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 1rem;
}

.tab-link {
  background: none;
  border: none;
  padding: 12px 24px;
  font-size: 1.1rem;
  color: #64748b;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-link:hover {
  color: var(--primary-color);
  background: #f1f5f9;
}

.tab-link.active {
  color: var(--primary-color);
  font-weight: 600;
  background: #f1f5f9;
}

/* Tab Content */
.tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-content.active {
  display: block;
}

/* Section Banner */
.section-banner {
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: 2rem;
}

.section-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Content Section */
.content-section {
  padding: 2rem;
}

.content-section h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card-content {
  padding: 1.5rem;
}

.card h3 {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.schedule {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Events List */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.event-card {
  display: flex;
  gap: 1.5rem;
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  padding: 1rem;
  background: var(--primary-color);
  color: white;
  border-radius: 8px;
}

.event-date .day {
  font-size: 1.5rem;
  font-weight: 600;
}

.event-date .month {
  font-size: 0.9rem;
}

.event-details h3 {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.location, .time {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Contest Cards */
.contests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.contest-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.contest-content {
  padding: 1.5rem;
}

.contest-content h3 {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.deadline {
  color: #dc2626;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contest-steps {
  margin-top: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 8px;
}

.contest-steps h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.contest-steps ol {
  padding-left: 1.5rem;
  color: #64748b;
}

/* Responsive Design for Novedades */
@media (max-width: 768px) {
  .tab-menu {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .tab-link {
    width: 100%;
    justify-content: center;
  }
  
  .event-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .event-date {
    margin-bottom: 1rem;
  }
  
  .section-banner {
    height: 200px;
  }
  
  .content-section {
    padding: 1rem;
  }
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: var(--secondary-color);
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.5rem;
  position: relative;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  color: var(--text-color);
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.7;
}

.modal-close:hover {
  opacity: 1;
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.about-content {
  margin-bottom: 1rem;
}

.about-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: block;
}

.about-text {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.share-option {
  display: flex;
  align-items: center;
  padding: 0.8rem;
  margin-bottom: 0.5rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.share-option:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.share-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  font-size: 1.2rem;
}

.share-text {
  font-size: 0.9rem;
}

.share-url-container {
  margin-top: 1rem;
  position: relative;
}

.share-url {
  width: 100%;
  padding: 0.8rem;
  padding-right: 70px;
  border-radius: 8px;
  border: none;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-color);
  font-size: 0.8rem;
}

.copy-btn {
  position: absolute;
  right: 5px;
  top: 5px;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  background-color: var(--button-color);
  color: var(--primary-color);
  border: none;
  font-size: 0.8rem;
  cursor: pointer;
}

.copy-btn:hover {
  background-color: var(--button-hover);
}

.offline-alert {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ef4444;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 2000;
}

/* Responsive styles */
@media (min-width: 768px) {
  .main-content {
    max-width: 500px;
    padding: 2rem;
  }

  .cover-container {
    width: 220px;
    height: 220px;
  }

  .song-title {
    font-size: 1.3rem;
  }

  .artist-name {
    font-size: 1rem;
  }

  .play-btn {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
    color: blue;
  }

  .control-btn {
    font-size: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .main-content {
    max-width: 600px;
  }

  .cover-container {
    width: 250px;
    height: 250px;
  }
}

@media (max-height: 700px) {
  .cover-container {
    width: 150px;
    height: 150px;
    margin-bottom: 1rem;
  }

  .song-info {
    margin-bottom: 1rem;
  }

  .controls {
    margin-bottom: 1rem;
  }
}

@media (max-height: 600px) {
  .cover-container {
    width: 120px;
    height: 120px;
  }
}
