/* =============================================
   TEIA DE SABERES — MEDIA PAGE
   Matches the Observatório Capixaba design system:
     Primary: #1D445C  |  Accent: #ADD8E6
     Teal: #356f87     |  BG: #f5f5f5
     Fonts: Oswald, Helvetica
   ============================================= */

.teia-midia-page {
  background-color: #f5f5f5;
  overflow-x: hidden;
}

/* =============== HERO =============== */
.teia-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, #0d2b3e 0%, #1D445C 40%, #2b6589 70%, #356f87 100%);
  overflow: hidden;
}

.teia-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(173, 216, 230, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(53, 111, 135, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.teia-hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  background: rgba(173, 216, 230, 0.3);
  border-radius: 50%;
  animation: floatParticle 5s ease-in-out infinite alternate;
}

@keyframes floatParticle {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.2;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(-40px) scale(1.3);
    opacity: 0.1;
  }
}

.teia-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
  max-width: 800px;
}

.teia-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(173, 216, 230, 0.15);
  border: 1px solid rgba(173, 216, 230, 0.3);
  color: #ADD8E6;
  font-family: 'Helvetica', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 10px 24px;
  border-radius: 30px;
  margin-bottom: 30px;
  backdrop-filter: blur(10px);
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(173, 216, 230, 0.2); }
  50% { box-shadow: 0 0 20px 5px rgba(173, 216, 230, 0.15); }
}

.teia-hero-content h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 64px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.05;
  margin-bottom: 12px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  animation: heroSlideUp 1s ease-out;
}

.teia-hero-subtitle {
  font-family: 'Oswald', sans-serif;
  font-size: 24px;
  font-weight: 300;
  color: #ADD8E6;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 20px;
  animation: heroSlideUp 1s ease-out 0.2s both;
}

.teia-hero-desc {
  font-family: 'Helvetica', sans-serif;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 35px;
  animation: heroSlideUp 1s ease-out 0.4s both;
}

@keyframes heroSlideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.teia-hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
  animation: heroSlideUp 1s ease-out 0.6s both;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-family: 'Oswald', sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}

.stat-label {
  font-family: 'Helvetica', sans-serif;
  font-size: 13px;
  color: rgba(173, 216, 230, 0.8);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 50px;
  background: rgba(173, 216, 230, 0.3);
}

.teia-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #ADD8E6, #8CC7E0);
  color: #1D445C;
  font-family: 'Helvetica', sans-serif;
  font-size: 16px;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 30px rgba(173, 216, 230, 0.3);
  animation: heroSlideUp 1s ease-out 0.8s both;
}

.teia-hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(173, 216, 230, 0.4);
  background: linear-gradient(135deg, #c5e5f2, #ADD8E6);
}

.teia-hero-cta i {
  animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* =============== PHOTO STRIP =============== */
.photo-strip {
  overflow: hidden;
  background: #1D445C;
  padding: 12px 0;
  position: relative;
}

.photo-strip::before,
.photo-strip::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.photo-strip::before {
  left: 0;
  background: linear-gradient(to right, #1D445C, transparent);
}

.photo-strip::after {
  right: 0;
  background: linear-gradient(to left, #1D445C, transparent);
}

.photo-strip-track {
  display: flex;
  gap: 12px;
  animation: scrollPhotos 40s linear infinite;
  width: max-content;
}

.photo-strip-track img {
  height: 100px;
  width: auto;
  border-radius: 8px;
  object-fit: cover;
  object-position: top;
  opacity: 0.7;
  transition: opacity 0.3s, transform 0.3s;
}

.photo-strip-track img:hover {
  opacity: 1;
  transform: scale(1.05);
}

@keyframes scrollPhotos {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =============== DAY SECTIONS =============== */
.day-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.day-section-alt {
  /* slight bg variation for visual separation */
}

.day-header {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-bottom: 50px;
  padding-bottom: 25px;
  border-bottom: 3px solid #ADD8E6;
  position: relative;
}

.day-number {
  font-family: 'Oswald', sans-serif;
  font-size: 80px;
  font-weight: 700;
  color: rgba(29, 68, 92, 0.1);
  line-height: 1;
  position: relative;
}

.day-number::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1D445C, #ADD8E6);
  border-radius: 2px;
}

.day-info h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 36px;
  color: #1D445C;
  margin-bottom: 5px;
}

.day-info p {
  font-family: 'Helvetica', sans-serif;
  font-size: 15px;
  color: #888;
}

/* =============== VIDEO GRID =============== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-bottom: 40px;
}

.video-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
  position: relative;
}

.video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(29, 68, 92, 0.15);
}

.video-card.featured {
  border: 2px solid #ADD8E6;
  background: linear-gradient(180deg, #f0f8ff, #ffffff);
}

.video-card.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1D445C, #ADD8E6, #356f87);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  background: #0d2b3e;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1D445C, #2b6589);
  color: rgba(173, 216, 230, 0.7);
}

.video-placeholder i {
  font-size: 48px;
  margin-bottom: 12px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.1); opacity: 1; }
}

.video-placeholder p {
  font-family: 'Helvetica', sans-serif;
  font-size: 16px;
  letter-spacing: 1px;
}

.video-info {
  padding: 18px 20px;
}

.video-tag {
  display: inline-block;
  background: rgba(29, 68, 92, 0.08);
  color: #1D445C;
  font-family: 'Helvetica', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.video-tag.discussion {
  background: rgba(76, 175, 80, 0.1);
  color: #2e7d32;
}

.video-tag.full-day {
  background: linear-gradient(135deg, rgba(29, 68, 92, 0.12), rgba(173, 216, 230, 0.2));
  color: #1D445C;
}

.video-tag.full-day i {
  color: #f4a100;
  margin-right: 3px;
}

.video-info h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  color: #1D445C;
  font-weight: 500;
  line-height: 1.3;
}

/* =============== GALLERY ROWS =============== */
.gallery-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 40px;
}

.gallery-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: top;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease, filter 0.4s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gallery-img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 30px rgba(29, 68, 92, 0.2);
  filter: brightness(1.05);
}

/* =============== DAY DIVIDER =============== */
.day-divider {
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.divider-photos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 30px;
}

.divider-photos img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: top;
  border-radius: 10px;
  transition: transform 0.3s;
}

.divider-photos img:hover {
  transform: scale(1.03);
}

.divider-line {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 20px;
}

.divider-line::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ADD8E6, transparent);
}

.divider-icon {
  position: relative;
  z-index: 1;
  background: #f5f5f5;
  padding: 12px 20px;
  border-radius: 50%;
  border: 2px solid #ADD8E6;
  color: #1D445C;
  font-size: 18px;
}

/* =============== PHOTO GALLERY CTA =============== */
.photo-gallery-cta {
  background: linear-gradient(135deg, #1D445C 0%, #2b6589 100%);
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

.photo-gallery-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 50%, rgba(173, 216, 230, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 90% 30%, rgba(53, 111, 135, 0.15) 0%, transparent 40%);
  pointer-events: none;
}

.photo-cta-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 50px;
  position: relative;
  z-index: 1;
}

.photo-cta-mosaic {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 120px);
  gap: 8px;
}

.photo-cta-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 8px;
  opacity: 0.8;
  transition: opacity 0.3s, transform 0.3s;
}

.photo-cta-mosaic img:hover {
  opacity: 1;
  transform: scale(1.05);
}

.photo-cta-content {
  flex: 1;
  text-align: center;
}

.photo-cta-icon {
  width: 80px;
  height: 80px;
  background: rgba(173, 216, 230, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  border: 2px solid rgba(173, 216, 230, 0.3);
}

.photo-cta-icon i {
  font-size: 32px;
  color: #ADD8E6;
}

.photo-cta-content h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 36px;
  color: #ffffff;
  margin-bottom: 15px;
}

.photo-cta-content p {
  font-family: 'Helvetica', sans-serif;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 30px;
}

.photo-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #ADD8E6, #8CC7E0);
  color: #1D445C;
  font-family: 'Helvetica', sans-serif;
  font-size: 16px;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(173, 216, 230, 0.25);
}

.photo-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(173, 216, 230, 0.35);
  background: linear-gradient(135deg, #c5e5f2, #ADD8E6);
  color: #1D445C;
}

/* =============== LIGHTBOX =============== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.lightbox-overlay.active {
  opacity: 1;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 36px;
  cursor: pointer;
  transition: transform 0.3s;
  line-height: 1;
}

.lightbox-close:hover {
  transform: scale(1.2);
}

/* =============== FADE-IN ANIMATION =============== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============== RESPONSIVE =============== */
@media (max-width: 1024px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .photo-cta-inner {
    flex-direction: column;
    text-align: center;
  }
  
  .photo-cta-mosaic {
    max-width: 500px;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .teia-hero {
    min-height: 75vh;
    padding-top: 20px;
  }
  
  .teia-hero-content h2 {
    font-size: 40px;
  }
  
  .teia-hero-subtitle {
    font-size: 18px;
    letter-spacing: 2px;
  }
  
  .teia-hero-desc {
    font-size: 15px;
  }
  
  .teia-hero-stats {
    gap: 20px;
  }
  
  .stat-number {
    font-size: 32px;
  }
  
  .stat-label {
    font-size: 11px;
  }
  
  .photo-strip-track img {
    height: 70px;
  }
  
  .day-header {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .day-number {
    font-size: 50px;
  }
  
  .day-info h2 {
    font-size: 28px;
  }
  
  .video-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  
  .gallery-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .gallery-img {
    height: 260px;
  }
  
  .divider-photos {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .photo-cta-mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 100px);
  }
  
  .photo-cta-content h2 {
    font-size: 28px;
  }
  
  .video-info h3 {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .teia-hero-content h2 {
    font-size: 32px;
  }
  
  .teia-hero-subtitle {
    font-size: 15px;
    letter-spacing: 1px;
  }
  
  .teia-hero-badge {
    font-size: 11px;
    padding: 8px 18px;
    letter-spacing: 1px;
  }
  
  .teia-hero-stats {
    gap: 15px;
  }
  
  .stat-number {
    font-size: 26px;
  }
  
  .stat-divider {
    height: 35px;
  }
  
  .day-section {
    padding: 40px 15px;
  }
  
  .video-card {
    border-radius: 12px;
  }
  
  .video-info {
    padding: 14px 16px;
  }
  
  .gallery-img {
    height: 220px;
  }
  
  .divider-photos {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .divider-photos img {
    height: 200px;
  }
  
  .photo-cta-mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 80px);
  }
  
  .photo-gallery-cta {
    padding: 50px 15px;
  }
}

/* Fix footer wave color on this page */
.teia-midia-page .footer-wave path {
  fill: #1D445C;
}

.teia-midia-page .home-footer {
  margin-top: 0;
}
