/* style.css - Estilos específicos para a página Esportes */

/* Apenas estilos específicos da página, os gerais estão em styles.css */

/* ------------------- Conteúdo Principal ------------------- */
main {
  flex: 1;
  padding: 120px 5% 40px;
  color: #333;
  position: relative;
  z-index: 1;
}

/* Títulos */
#Titulo {
  text-align: center;
  font-size: 2.8em;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 20px;
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s ease;
  color: #38186c;
}

#Titulo.show {
  opacity: 1;
  transform: translateY(0);
}

#Titulo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #38186c, #981f1b);
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2em;
  color: #666;
  margin-bottom: 50px;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 2.2em;
  color: #38186c;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-line {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #38186c, #981f1b);
  margin: 0 auto;
  border-radius: 2px;
}

/* -------- Cards Notícias -------- */
.noticia-card {
  background: linear-gradient(135deg, #4a2a7a, #38186c);
  border: none;
  border-radius: 15px;
  color: #fff;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
  overflow: hidden;
  height: 100%;
}

.noticia-card.show { 
  opacity: 1; 
  transform: translateY(0); 
}

.noticia-card:hover { 
  transform: translateY(-10px); 
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.card-image-container {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.card-img-top {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.noticia-card:hover .card-img-top {
  transform: scale(1.05);
}

.card-overlay {
  position: absolute;
  top: 15px;
  left: 15px;
}

.card-category {
  background: #981f1b;
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8em;
  font-weight: 600;
  text-transform: uppercase;
}

.card-body {
  padding: 25px;
}

.card-date {
  color: #e0e0e0;
  font-size: 0.85em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.4;
  color: #fff;
}

.card-text {
  color: #e0e0e0;
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 0.95em;
}

.ler-mais-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, #38186c, #981f1b);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9em;
  text-decoration: none;
  transition: all 0.3s ease;
}

.ler-mais-btn:hover {
  background: linear-gradient(90deg, #981f1b, #38186c);
  color: white;
  gap: 12px;
  transform: translateX(5px);
}

/* ===== TIMELINE ===== */
.timeline-container {
  position: relative;
  padding: 40px 0;
  margin-top: 40px;
}

.timeline {
  position: relative;
  margin: 0 auto;
  padding: 20px 0;
  max-width: 900px;
}

/* Linha central */
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #38186c, #981f1b);
  transform: translateX(-50%);
  box-shadow: 
    0 0 15px rgba(56, 24, 108, 0.6),
    0 0 30px rgba(152, 31, 27, 0.4);
  z-index: 1;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.timeline-item.show { 
  opacity: 1; 
  transform: translateY(0); 
}

.timeline-item:nth-child(odd) { 
  left: 0; 
  text-align: right; 
}

.timeline-item:nth-child(even) { 
  left: 50%; 
  text-align: left; 
}

/* Pontos na linha do tempo */
.timeline-item::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: #981f1b;
  border: 4px solid #fff;
  border-radius: 50%;
  top: 30px;
  z-index: 2;
  box-shadow: 0 0 10px rgba(152, 31, 27, 0.8);
}

.timeline-item:nth-child(odd)::before {
  right: -10px;
}

.timeline-item:nth-child(even)::before {
  left: -10px;
}

.timeline-date { 
  font-weight: 700; 
  margin-bottom: 8px; 
  color: #38186c; 
  font-size: 1.1em;
  background: rgba(255, 255, 255, 0.9);
  padding: 5px 15px;
  border-radius: 20px;
  display: inline-block;
}

.timeline-content {
  background: linear-gradient(135deg, #4a2a7a, #38186c);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 420px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.timeline-content h5 {
  color: #fff;
  margin-bottom: 15px;
  font-size: 1.2em;
  font-weight: 600;
}

.timeline-description {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.timeline-description p {
  color: #e0e0e0;
  font-size: 0.9em;
  line-height: 1.5;
  margin: 0;
}

/* Carrossel dentro da timeline */
.timeline-content .carousel {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 15px;
  flex: 1;
}

.timeline-content .carousel-inner {
  border-radius: 12px;
}

.timeline-content .carousel img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 12px;
}

.timeline-content .carousel-control-prev,
.timeline-content .carousel-control-next {
  width: 40px;
  height: 40px;
  background: rgba(152, 31, 27, 0.8);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
}

.timeline-content .carousel-control-prev:hover,
.timeline-content .carousel-control-next:hover {
  background: rgba(152, 31, 27, 1);
  opacity: 1;
}

.timeline-content .carousel-control-prev {
  left: 10px;
}

.timeline-content .carousel-control-next {
  right: 10px;
}

.timeline-content .carousel-control-prev-icon,
.timeline-content .carousel-control-next-icon {
  width: 20px;
  height: 20px;
}

/* Efeito de esfumaçado no fim da timeline */
.timeline-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(to bottom, rgba(248, 249, 250, 0), #f8f9fa 90%);
  pointer-events: none;
}

/* ------------------- Modal Custom ------------------- */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.9);
  padding: 60px 20px;
}

.modal-content {
  background: linear-gradient(135deg, #38186c, #2a1252);
  margin: auto;
  padding: 30px;
  border-radius: 20px;
  max-width: 700px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
  animation: fadeIn 0.3s ease;
  position: relative;
}

.modal-image {
  width: 100%;
  border-radius: 15px;
  margin-bottom: 25px;
  object-fit: cover;
  max-height: 400px;
}

.modal-content h3 {
  margin-bottom: 15px;
  color: #fff;
  font-size: 1.8em;
  font-weight: 600;
}

.modal-content p {
  line-height: 1.6;
  color: #e0e0e0;
  font-size: 1.1em;
  margin-bottom: 25px;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2.5rem;
  cursor: pointer;
  color: #fff;
  z-index: 10;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover { 
  color: #ffd700; 
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.modal-btn-close {
  background: #981f1b;
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.modal-btn-close:hover {
  background: #ffd700;
  color: #333;
}

@keyframes fadeIn {
  from { 
    opacity: 0; 
    transform: translateY(-20px);
  }
  to { 
    opacity: 1; 
    transform: translateY(0);
  }
}

/* ------------------- Responsivo ------------------- */
@media(max-width: 1200px) {
  .timeline-content { 
    min-height: 400px; 
  }
  
  .timeline-content .carousel img {
    height: 250px;
  }
}

@media(max-width: 992px) { 
  .timeline-content { 
    min-height: 380px; 
  }
  
  .timeline-content .carousel img {
    height: 220px;
  }
}

@media(max-width: 768px) {
  #Titulo {
    font-size: 2.2em;
  }
  
  .section-header h2 {
    font-size: 1.8em;
  }
  
  .timeline::before { 
    left: 8px; 
  }
  
  .timeline-item { 
    width: 100%; 
    padding-left: 30px; 
    text-align: left !important; 
  }
  
  .timeline-item:nth-child(even) { 
    left: 0; 
  }
  
  .timeline-content { 
    min-height: 360px; 
  }
  
  .timeline-item::before {
    left: 0 !important;
    right: auto !important;
  }
  
  .timeline-content .carousel img {
    height: 200px;
  }
  
  .modal-content {
    padding: 20px;
  }
  
  .modal-image {
    max-height: 300px;
  }
}

@media(max-width: 480px) { 
  #Titulo {
    font-size: 1.8em;
  }
  
  .timeline-content { 
    min-height: 340px; 
  }
  
  .timeline-content .carousel img {
    height: 180px;
  }
  
  .card-image-container {
    height: 180px;
  }
  
  .modal-content {
    padding: 15px;
  }
  
  .modal-image {
    max-height: 250px;
  }
}