/* ===== ESTILOS MODERNOS ===== */

/* Variáveis de cor */
:root {
  --primary-color: #5A5B8C;
  --secondary-color: #45A9C9;
  --accent-color: #B2E7E9;
  --danger-color: #e74c3c;
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-hover: 0 8px 16px rgba(0,0,0,0.15);
}

/* Seção moderna principal */
.modern-section {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 2rem;
  animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Título hero */
.hero-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.hero-title p {
  font-size: 1.2rem;
  color: var(--text-light);
}

/* Cards de features */
.feature-card {
  background: var(--white);
  border: none;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--secondary-color);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-top-color: var(--accent-color);
}

.feature-icon {
  font-size: 3rem;
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(69,169,201,0.1) 0%, rgba(178,231,233,0.1) 100%);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  color: var(--accent-color);
  transform: scale(1.1) rotate(5deg);
}

.feature-card h5 {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Alert card */
.alert-card {
  background: linear-gradient(135deg, rgba(90,91,140,0.05) 0%, rgba(69,169,201,0.05) 100%);
  border-left: 4px solid var(--primary-color);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.alert-card p {
  color: var(--text-dark);
  font-size: 1.05rem;
  margin: 0;
}

/* Seção de parceiros */
.partners-section {
  margin: 3rem 0;
  padding: 2rem;
  background: var(--bg-light);
  border-radius: 12px;
}

.partners-section h4 {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.8rem;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  text-decoration: none;
  height: 150px;
}

.partner-logo:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: var(--shadow-hover);
  background: linear-gradient(135deg, rgba(69,169,201,0.05) 0%, rgba(178,231,233,0.05) 100%);
}

.partner-logo img {
  max-width: 90%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(0%);
  transition: filter 0.3s ease;
}

.partner-logo:hover img {
  filter: grayscale(0%);
}

/* Footer moderno */
.modern-footer {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  padding: 3rem 2rem 1rem;
  margin-top: 3rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h6 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--accent-color);
  font-size: 1.05rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.7rem;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

.copyright {
  color: rgba(255,255,255,0.7) !important;
  font-size: 0.85rem !important;
}

.footer-bottom a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: var(--white);
}

/* Melhorias na navbar */
.navbar {
  box-shadow: var(--shadow);
  padding: 1rem 2rem;
}

.navbar-brand img {
  transition: transform 0.3s ease;
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

.btn-outline-lab {
  border-color: var(--white);
  color: var(--white);
  font-weight: 500;
  transition: all 0.3s ease;
  border-radius: 6px;
}

.btn-outline-lab:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* Responsividade */
@media (max-width: 768px) {
  .modern-section {
    padding: 1rem;
    margin: 1rem auto;
  }

  .hero-title h2 {
    font-size: 2rem;
  }

  .partners-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
  }

  .partner-logo {
    height: 120px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .feature-card {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-title h2 {
    font-size: 1.5rem;
  }

  .modern-footer {
    padding: 2rem 1rem 0.5rem;
  }

  .footer-section h6 {
    font-size: 0.95rem;
  }

  .footer-links a {
    font-size: 0.85rem;
  }
}

/* Transições globais */
a {
  transition: color 0.3s ease;
}

button {
  transition: all 0.3s ease;
}

/* Scroll suave */
html {
  scroll-behavior: smooth;
}

/* Focus estados para acessibilidade */
.feature-card:focus-within,
.partner-logo:focus-within {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

/* ===== ESTILOS ESPECÍFICOS PARA PÁGINAS DE MAPAS ===== */

.modern-header {
  text-align: center;
  margin-bottom: 2rem;
  padding: 1rem 0;
}

.modern-header h2 {
  font-size: 2rem;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.modern-header p {
  font-size: 1.1rem;
  color: var(--text-light);
}

.modern-btn {
  background-color: var(--white);
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color);
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.modern-btn:hover {
  background-color: var(--secondary-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(69,169,201,0.3);
}

.explanation-box {
  background: linear-gradient(135deg, rgba(90,91,140,0.05) 0%, rgba(69,169,201,0.05) 100%);
  border-left: 4px solid var(--secondary-color);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  animation: slideDown 0.4s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
    max-height: 0;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    max-height: 1000px;
  }
}

.explanation-content h4,
.explanation-content h5 {
  color: var(--primary-color);
  font-weight: 600;
}

.explanation-content p {
  color: var(--text-dark);
  line-height: 1.7;
}

.explanation-content ul {
  margin: 1rem 0 1rem 2rem;
}

.explanation-content li {
  margin-bottom: 0.7rem;
  color: var(--text-dark);
}

.info-link {
  text-align: center;
}

.modern-controls {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  gap: 1rem;
}

.dropdown {
  margin: 0 !important;
}

.dropdown .dropdown-menu {
  min-width: 250px;
  border-radius: 8px;
  border: 1px solid #ddd;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.dropdown-item {
  padding: 0.8rem 1.5rem;
  transition: all 0.2s ease;
  color: var(--text-dark);
}

.dropdown-item:hover {
  background-color: var(--accent-color);
  color: var(--primary-color);
  padding-left: 2rem;
}

.dropdown-item i {
  margin-right: 0.5rem;
  color: var(--secondary-color);
}

.modern-title {
  text-align: center;
  margin: 2rem 0;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(69,169,201,0.1) 0%, rgba(178,231,233,0.1) 100%);
  border-radius: 8px;
}

.modern-title h4 {
  color: var(--primary-color);
  font-weight: 600;
  margin: 0;
  font-size: 1.3rem;
}

.modern-title i {
  color: var(--secondary-color);
  margin-right: 0.5rem;
}

.videos-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--bg-light);
  border-radius: 12px;
}

.video-card {
  background: var(--white);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.video-card h6 {
  color: var(--primary-color);
  font-weight: 600;
  text-align: center;
  margin-bottom: 1rem;
}

.video-card video {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.video-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 1rem 0;
}

.video-controls button {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 1px solid var(--secondary-color);
  background: var(--white);
  color: var(--secondary-color);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.video-controls button:hover {
  background-color: var(--secondary-color);
  color: var(--white);
  transform: scale(1.05);
}

.video-speed-input {
  width: 60px !important;
  padding: 0.5rem !important;
  border: 1px solid var(--secondary-color) !important;
  border-radius: 6px !important;
  text-align: center;
}

.tooltip-menu-video {
  position: relative;
  display: inline-block;
}

.tooltip-menu-video .tooltiptext-menu-video {
  visibility: hidden;
  width: 120px;
  background-color: var(--primary-color);
  color: var(--white);
  text-align: center;
  border-radius: 6px;
  padding: 0.5rem;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -60px;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 0.8rem;
}

.tooltip-menu-video:hover .tooltiptext-menu-video {
  visibility: visible;
  opacity: 1;
}

/* Responsividade para mapas */
@media (max-width: 1024px) {
  .videos-container {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .modern-header h2 {
    font-size: 1.5rem;
  }

  .videos-container {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
  }

  .video-card {
    padding: 1rem;
  }

  .explanation-box {
    padding: 1.5rem;
  }

  .modern-controls {
    flex-direction: column;
    align-items: center;
  }
}

.footer-notice {
  background: linear-gradient(135deg, rgba(231,76,60,0.1) 0%, rgba(244,208,63,0.1) 100%);
  border-left: 4px solid var(--danger-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 2rem;
  box-shadow: var(--shadow);
}

.footer-notice p {
  color: var(--text-dark);
  margin: 0;
  font-size: 0.95rem;
}

.footer-notice i {
  color: var(--danger-color);
  margin-right: 0.5rem;
}
