@import url("variables.css");
@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&family=Quicksand:wght@500;700&display=swap");

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--primary-dark);
  margin-bottom: var(--spacing-sm);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

/* Layout */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Navigation Bar */
.navbar {
  background-color: var(--surface-color);
  box-shadow: var(--shadow-sm);
  padding: var(--spacing-md) 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.nav-links {
  display: flex;
  gap: var(--spacing-lg);
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-weight: 600;
  color: var(--text-color);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
}

/* Mobile Menu Button (Hidden by default) */
.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
}

/* Main Content */
main {
  flex: 1;
  padding: var(--spacing-xl) 0;
}

/* Footer */
footer {
  background-color: var(--surface-color); /* Match header */
  color: var(--text-color);
  padding: var(--spacing-sm) 0; /* 0.25x size roughly */
  text-align: center;
  margin-top: auto;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05); /* Smooth reverse shadow */
  font-size: 0.85rem;
  border-top: 1px solid var(--border-color);
}

footer p {
  color: var(--text-light);
  margin: 0;
}

footer a {
  color: var(--text-color);
  font-weight: 600;
  margin: 0 0.5rem;
  transition: color 0.2s;
  text-decoration: none;
}

footer a:hover {
  color: var(--primary-color);
}

/* Utility Classes */
.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.text-center {
  text-align: center;
}
.mt-lg {
  margin-top: var(--spacing-lg);
}

.contact-card {
  background-color: var(--surface-color);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none; /* Hide for now, implementation for mobile menu later or use simple stacking */
  }
  .menu-toggle {
    display: block;
  }
}

/* Videos Maps Styles */
.maps-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
  width: 100%;
  padding-bottom: 4rem; /* Match spacing from about page */
}

.map-card {
  background: var(--surface-color);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  cursor: pointer;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 auto; /* Center if max-width is hit */
}

@media (min-width: 768px) {
  .map-card {
    max-width: 700px; /* Limit width on larger screens */
  }
}

.map-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.map-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.map-card h3 {
  text-transform: capitalize;
  color: var(--text-color);
  margin: 0;
}

/* Channel Selector Buttons */
.channel-selector .btn {
  background-color: var(--surface-color);
  color: var(--text-color);
  border: 1px solid var(--primary-light);
}

.channel-selector .btn.active-channel {
  background-color: var(--primary-color);
  color: white;
  border: 1px solid var(--primary-color);
  box-shadow: var(--shadow-md);
}

/* Home Page Videos Button Animation */
.videos-btn-animate {
  background: linear-gradient(
    to bottom,
    var(--primary-dark),
    var(--primary-color)
  );
  box-shadow: 0 0 10px rgba(58, 176, 0, 0.5);
  animation: videosPulse 2s infinite;
  position: relative;
  overflow: hidden;
}

@keyframes videosPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(58, 176, 0, 0.7);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(58, 176, 0, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(58, 176, 0, 0);
  }
}

.pulse-once {
  animation: videosPulse 0.5s ease-in-out 3;
}
/* YouTuber Badge Style */
.youtuber-badge {
  display: inline-flex;
  align-items: center;
  background-color: #e0e0e0; /* Grey box */
  padding: 2px 10px;
  border-radius: 12px;
  color: #333333; /* Dark text for contrast */
  font-weight: 700;
  font-size: 0.9em;
  margin: 0 4px;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease; /* Only animate transform/shadow */
  border: 1px solid #ccc;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.youtuber-badge:hover {
  /* No background/color change on hover as requested */
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Dark mode adjustment if needed (generic approach) */
@media (prefers-color-scheme: dark) {
  .youtuber-badge {
    background-color: #4a4a4a;
    border-color: #555;
    color: #f0f0f0;
  }
}

.youtuber-badge img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-left: 6px;
  object-fit: cover;
}
.youtuber-badge span {
  margin-right: 2px;
}

/* Consent Banner */
#consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--surface-color);
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  z-index: 1000;
  border-top: 1px solid var(--border-color);
  animation: slideUp 0.5s ease-out;
}

.consent-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.consent-actions {
  display: flex;
  gap: 1rem;
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: white;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .consent-content {
    flex-direction: column;
    text-align: center;
  }
}

/* Article Timestamp Links */
.timestamp-link {
  color: var(--primary-color);
  font-weight: bold;
  cursor: pointer;
  background-color: rgba(46, 204, 113, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent; /* Prepare for hover */
}

.timestamp-link:hover {
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
