/*
 * Radio FM - Estilos dos Componentes das Paginas
 * Copyright (c) 2024 Radio FM - Todos os direitos reservados
 */

/* ============================================================
   CARDS DE PODCAST
   ============================================================ */
.podcast-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: var(--shadow-card);
}

.podcast-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}

.podcast-cover {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-secondary);
}

.podcast-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.podcast-card:hover .podcast-cover img { transform: scale(1.05); }

.podcast-cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
  color: var(--accent);
  font-size: 3rem;
}

.podcast-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s;
}

.podcast-card:hover .podcast-play-overlay { opacity: 1; }

.podcast-play-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  border: none;
  cursor: pointer;
  transform: scale(0.8);
  transition: transform 0.25s;
  box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.5);
}

.podcast-card:hover .podcast-play-btn { transform: scale(1); }

.podcast-body { padding: 20px; }

.podcast-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.podcast-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.podcast-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.podcast-duration {
  display: flex;
  align-items: center;
  gap: 4px;
}

.podcast-date {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Podcast player inline */
.podcast-player {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-top: 14px;
}

.podcast-progress {
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-bottom: 10px;
  cursor: pointer;
  position: relative;
}

.podcast-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.1s;
}

.podcast-player-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.podcast-player-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  cursor: pointer;
  transition: color 0.2s;
  padding: 2px;
}
.podcast-player-btn:hover { color: var(--accent); }
.podcast-player-btn.active { color: var(--accent); }

.podcast-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: monospace;
  margin-left: auto;
}

/* ============================================================
   CARDS DE NOTICIAS
   ============================================================ */
.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}

.news-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-secondary);
  position: relative;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.news-card:hover .news-image img { transform: scale(1.05); }

.news-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
  color: var(--text-muted);
  font-size: 2.5rem;
}

.news-category-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: white;
  padding: 4px 10px;
  border-radius: var(--radius);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-summary {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.news-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* News full page */
.news-article {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px;
}

.article-header { margin-bottom: 40px; }
.article-category { margin-bottom: 12px; }

.article-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.article-cover {
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: 36px;
}

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

.article-content {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-primary);
}

.article-content p { margin-bottom: 20px; }
.article-content h2 { font-family: var(--font-heading); font-size: 1.4rem; color: var(--text-primary); margin: 32px 0 16px; }
.article-content h3 { font-family: var(--font-heading); font-size: 1.2rem; color: var(--text-primary); margin: 24px 0 12px; }
.article-content strong { color: var(--text-primary); }
.article-content a { color: var(--accent); }
.article-content ul, .article-content ol { margin: 16px 0 20px 24px; }
.article-content li { margin-bottom: 8px; }

.article-share {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.article-share-label {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* ============================================================
   PROGRAMACAO
   ============================================================ */
.schedule-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.schedule-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: grid;
  grid-template-columns: 80px 80px 1fr auto;
  gap: 24px;
  align-items: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.schedule-card.on-air {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.15);
  background: rgba(var(--accent-rgb), 0.03);
}

.schedule-time {
  font-family: var(--font-ui);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.schedule-time-end {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.schedule-host-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-strong);
}

.schedule-host-photo-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.5rem;
  border: 2px solid var(--border);
}

.schedule-info { min-width: 0; }

.schedule-program {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.schedule-host {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.schedule-days {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.day-tag {
  padding: 2px 8px;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.schedule-social {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.schedule-social-link {
  color: var(--text-muted);
  font-size: 1rem;
  transition: color 0.2s;
}
.schedule-social-link:hover { color: var(--accent); }

/* Day tabs */
.day-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 32px;
  scrollbar-width: none;
}
.day-tabs::-webkit-scrollbar { display: none; }

.day-tab {
  flex-shrink: 0;
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.day-tab:hover, .day-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* ============================================================
   EVENTOS
   ============================================================ */
.event-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}

.event-image {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
  position: relative;
  overflow: hidden;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.event-card:hover .event-image img { transform: scale(1.05); }

.event-date-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--accent);
  color: white;
  border-radius: var(--radius);
  padding: 8px 12px;
  text-align: center;
  line-height: 1;
}

.event-date-day {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  display: block;
}

.event-date-month {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-top: 2px;
}

.event-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 3rem;
}

.event-body { padding: 20px; flex: 1; }

.event-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.3;
}

.event-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.event-datetime {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Event full page */
.event-detail-header {
  position: relative;
  height: 480px;
  overflow: hidden;
}

.event-detail-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-detail-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%);
  display: flex;
  align-items: flex-end;
}

.event-detail-info {
  padding: 40px;
  color: white;
}

.event-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.event-gallery-item {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}

.event-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.event-gallery-item:hover img { transform: scale(1.08); }

/* ============================================================
   EQUIPE
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}

.team-photo {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-secondary);
  position: relative;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.team-card:hover .team-photo img { transform: scale(1.06); }

.team-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
  color: var(--accent);
  font-size: 4rem;
}

.team-social-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 12px;
  transform: translateY(100%);
  transition: transform 0.3s;
}

.team-card:hover .team-social-overlay { transform: translateY(0); }

.team-social-overlay a {
  color: white;
  font-size: 1.1rem;
  transition: color 0.2s;
}
.team-social-overlay a:hover { color: var(--accent); }

.team-body { padding: 20px; }

.team-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.team-role {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* Team full profile */
.team-profile {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}

.team-profile-photo {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 1;
}

.team-profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   CONTATO
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-info-label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-info-value {
  font-size: 0.95rem;
  color: var(--text-primary);
}

/* Advertiser section */
.advertiser-section {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.service-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, background 0.2s;
}

.service-checkbox:hover {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.03);
}

.service-checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  margin-top: 2px;
  flex-shrink: 0;
}

.service-checkbox span {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ============================================================
   PEDIDO DE MUSICA
   ============================================================ */
.music-request-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.music-request-inner {
  max-width: 640px;
  margin: 0 auto;
}

/* ============================================================
   PROGRAMA ATUAL (Destaque)
   ============================================================ */
.now-playing-banner {
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
}

.now-playing-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.now-playing-info { flex: 1; }

.now-playing-label {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 4px;
}

.now-playing-program {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}

.now-playing-host {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ============================================================
   RESPONSIVO COMPONENTES
   ============================================================ */
@media (max-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .team-profile { grid-template-columns: 200px 1fr; gap: 32px; }
  .schedule-card { grid-template-columns: 70px 70px 1fr auto; gap: 16px; }
}

@media (max-width: 768px) {
  .team-profile { grid-template-columns: 1fr; }
  .team-profile-photo { position: static; max-width: 280px; margin: 0 auto; }
  .schedule-card { grid-template-columns: 1fr; gap: 12px; }
  .schedule-social { flex-direction: row; align-items: flex-start; }
  .now-playing-banner { flex-direction: column; text-align: center; }
  .services-grid { grid-template-columns: 1fr; }
}
