/* ========================================
   GP ETNA LIVE - Premium Volcanic Theme
   Design System: "Volcanic Organic"
   ======================================== */

/* CSS Variables - Color Palette */
:root {
  /* Primary Colors */
  --magma-orange: #CF3F1F;
  --magma-orange-light: #E85A3A;
  --lava-charcoal: #1A1A1D;
  --ash-grey: #4E4E50;
  --pine-green: #2D5A27;
  --pine-green-light: #3D7A37;
  --sky-blue: #4A90E2;
  --sulfur-yellow: #F1C40F;
  --snow-white: #FFFFFF;
  --off-white: #F8F9FA;
  --cream: #FAF8F5;
  
  /* Semantic Colors */
  --primary: var(--magma-orange);
  --secondary: var(--pine-green);
  --success: var(--pine-green);
  --warning: var(--sulfur-yellow);
  --danger: var(--magma-orange);
  --dark: var(--lava-charcoal);
  --light: var(--off-white);
  
  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  
  /* Effects */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.18);
  --shadow-volcanic: 0 10px 30px -10px rgba(207, 63, 31, 0.3);
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--lava-charcoal);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--lava-charcoal);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
  margin-bottom: 1.5rem;
  color: var(--ash-grey);
}

a {
  color: var(--magma-orange);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--magma-orange-light);
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
  padding: 1rem 0;
  transition: all var(--transition-normal);
  background: transparent !important;
}

.navbar.scrolled {
  background: rgba(26, 26, 29, 0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.navbar-brand img {
  border-radius: 50%;
  border: 2px solid var(--magma-orange);
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  margin: 0 0.25rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--magma-orange);
  transition: all var(--transition-fast);
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
}

.nav-link.active {
  color: var(--magma-orange) !important;
}

/* Mobile Nav */
@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(26, 26, 29, 0.98);
    margin-top: 1rem;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: absolute;
    top: 100%;
    left: 1rem;
    right: 1rem;
    z-index: 1000;
  }
  
  .navbar-collapse.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .navbar-collapse .nav-link {
    display: block !important;
    padding: 0.75rem 1rem !important;
    margin: 0.25rem 0;
    color: var(--snow-white) !important;
    text-align: left;
  }
  
  .navbar-collapse .nav-link:hover {
    background: rgba(207, 63, 31, 0.2);
    border-radius: var(--radius-sm);
  }
  
  .nav-link::after {
    display: none;
  }
  
  .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
  }
  
  .navbar-toggler:focus {
    box-shadow: none;
    outline: none;
  }
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-image-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../img/etna-hero.jpg') center/cover no-repeat;
  z-index: -2;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(26, 26, 29, 0.7) 0%,
    rgba(26, 26, 29, 0.4) 50%,
    rgba(26, 26, 29, 0.8) 100%
  );
  z-index: -1;
}

.hero-content {
  text-align: center;
  color: var(--snow-white);
  padding: var(--space-md);
  max-width: 900px;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  margin-bottom: 1.5rem;
  color: var(--snow-white);
  animation: fadeInUp 1s ease;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  opacity: 0.95;
  margin-bottom: 2.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.4s backwards;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-xl);
  transition: all var(--transition-normal);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--magma-orange);
  color: var(--snow-white);
  box-shadow: 0 4px 15px rgba(207, 63, 31, 0.4);
}

.btn-primary:hover {
  background: var(--magma-orange-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(207, 63, 31, 0.5);
  color: var(--snow-white);
}

.btn-secondary {
  background: var(--pine-green);
  color: var(--snow-white);
}

.btn-secondary:hover {
  background: var(--pine-green-light);
  transform: translateY(-2px);
  color: var(--snow-white);
}

.btn-outline-light {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: var(--snow-white);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--snow-white);
  color: var(--snow-white);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--snow-white);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--snow-white);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
  padding: var(--space-xl) 0;
}

.section-dark {
  background: var(--lava-charcoal);
  color: var(--snow-white);
}

.section-dark h2,
.section-dark h3,
.section-dark p {
  color: var(--snow-white);
}

.section-dark p {
  opacity: 0.85;
}

.section-light {
  background: var(--off-white);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  margin-bottom: 1rem;
  color: inherit;
}

.section-title span {
  color: var(--magma-orange);
}

.section-subtitle {
  text-align: center;
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 3rem;
  opacity: 0.8;
}

.divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--magma-orange), var(--pine-green));
  margin: 0 auto 2rem;
  border-radius: 2px;
}

/* ========================================
   CARDS
   ======================================== */
.card-volcanic {
  background: var(--snow-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  border: none;
  height: 100%;
}

.card-volcanic:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.card-volcanic .card-img-top {
  height: 220px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card-volcanic:hover .card-img-top {
  transform: scale(1.05);
}

.card-volcanic .card-body {
  padding: 1.75rem;
}

.card-volcanic .card-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.card-volcanic .card-text {
  color: var(--ash-grey);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Glass Card */
.card-glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition-normal);
}

.card-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}

/* ========================================
   LIVE DASHBOARD
   ======================================== */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.dashboard-card {
  background: var(--snow-white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.dashboard-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.dashboard-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.dashboard-card-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dashboard-card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
}

.icon-weather {
  background: linear-gradient(135deg, var(--sky-blue), #6BA3E8);
  color: var(--snow-white);
}

.icon-tremor {
  background: linear-gradient(135deg, var(--magma-orange), #E85A3A);
  color: var(--snow-white);
}

.icon-webcam {
  background: linear-gradient(135deg, var(--pine-green), #3D7A37);
  color: var(--snow-white);
}

/* ========================================
   WEATHER WIDGET
   ======================================== */
.weather-widget {
  background: linear-gradient(135deg, var(--sky-blue) 0%, #6BA3E8 100%);
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: var(--snow-white);
  position: relative;
  overflow: hidden;
}

.weather-widget::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.weather-current {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.weather-temp {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
}

.weather-temp sup {
  font-size: 1.5rem;
  font-weight: 400;
}

.weather-icon {
  font-size: 3.5rem;
  opacity: 0.9;
}

.weather-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.weather-detail {
  text-align: center;
}

.weather-detail-value {
  font-size: 1.25rem;
  font-weight: 600;
}

.weather-detail-label {
  font-size: 0.8rem;
  opacity: 0.8;
}

.weather-forecast {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.forecast-day {
  flex: 1;
  text-align: center;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
}

.forecast-day-name {
  font-size: 0.75rem;
  opacity: 0.8;
  margin-bottom: 0.25rem;
}

.forecast-day-icon {
  font-size: 1.25rem;
  margin: 0.25rem 0;
}

.forecast-day-temp {
  font-size: 0.9rem;
  font-weight: 600;
}

/* ========================================
   TREMOR CHART
   ======================================== */
.tremor-widget {
  background: var(--lava-charcoal);
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: var(--snow-white);
}

.tremor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.tremor-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin: 0;
}

.tremor-live {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--magma-orange);
}

.tremor-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 120px;
  padding: 1rem 0;
}

.tremor-bar {
  flex: 1;
  background: linear-gradient(180deg, var(--magma-orange) 0%, #8B2500 100%);
  border-radius: 3px 3px 0 0;
  animation: tremorPulse 2s ease-in-out infinite;
  min-height: 10px;
}

.tremor-bar:nth-child(1) { animation-delay: 0s; height: 30%; }
.tremor-bar:nth-child(2) { animation-delay: 0.1s; height: 50%; }
.tremor-bar:nth-child(3) { animation-delay: 0.2s; height: 45%; }
.tremor-bar:nth-child(4) { animation-delay: 0.3s; height: 70%; }
.tremor-bar:nth-child(5) { animation-delay: 0.4s; height: 55%; }
.tremor-bar:nth-child(6) { animation-delay: 0.5s; height: 40%; }
.tremor-bar:nth-child(7) { animation-delay: 0.6s; height: 60%; }
.tremor-bar:nth-child(8) { animation-delay: 0.7s; height: 35%; }
.tremor-bar:nth-child(9) { animation-delay: 0.8s; height: 50%; }
.tremor-bar:nth-child(10) { animation-delay: 0.9s; height: 65%; }
.tremor-bar:nth-child(11) { animation-delay: 1s; height: 45%; }
.tremor-bar:nth-child(12) { animation-delay: 1.1s; height: 55%; }

@keyframes tremorPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.8; transform: scaleY(0.85); }
}

.tremor-data {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tremor-stat {
  text-align: center;
}

.tremor-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--magma-orange);
}

.tremor-stat-label {
  font-size: 0.75rem;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ========================================
   WEBCAM VIEWER
   ======================================== */
.webcam-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.webcam-frame {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--lava-charcoal);
}

.webcam-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.webcam-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.5rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.webcam-live-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--snow-white);
  font-weight: 600;
  font-size: 0.9rem;
  pointer-events: auto;
}

.live-dot {
  width: 10px;
  height: 10px;
  background: #FF0000;
  border-radius: 50%;
  animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.webcam-controls {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
}

.webcam-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  color: var(--snow-white);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.webcam-btn:hover {
  background: rgba(207, 63, 31, 0.8);
  transform: scale(1.05);
}

/* ========================================
   EXCURSION CARDS
   ======================================== */
.excursion-card {
  background: var(--snow-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  cursor: pointer;
  height: 100%;
}

.excursion-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-volcanic);
}

.excursion-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.excursion-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.excursion-card:hover .excursion-image img {
  transform: scale(1.08);
}

.excursion-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-xl);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-easy {
  background: var(--pine-green);
  color: var(--snow-white);
}

.badge-medium {
  background: var(--sulfur-yellow);
  color: var(--lava-charcoal);
}

.badge-hard {
  background: var(--magma-orange);
  color: var(--snow-white);
}

.excursion-body {
  padding: 1.5rem;
}

.excursion-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--lava-charcoal);
}

.excursion-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--ash-grey);
}

.excursion-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.excursion-meta-item i {
  color: var(--magma-orange);
}

.excursion-desc {
  color: var(--ash-grey);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.excursion-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--magma-orange);
  font-weight: 600;
  font-size: 0.9rem;
  transition: gap var(--transition-fast);
}

.excursion-card:hover .excursion-cta {
  gap: 0.75rem;
}

/* ========================================
   RATING SYSTEM
   ======================================== */
.rating {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.rating-nature {
  color: var(--magma-orange);
}

.rating-price {
  color: var(--pine-green);
}

.rating i.far {
  opacity: 0.3;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--lava-charcoal);
  color: var(--snow-white);
  padding: var(--space-lg) 0 var(--space-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand {
  margin-bottom: 1.5rem;
}

.footer-brand img {
  height: 40px;
  border-radius: 50%;
  margin-right: 0.75rem;
}

.footer-brand span {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--snow-white);
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--magma-orange);
  transform: translateY(-3px);
  color: var(--snow-white);
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--snow-white);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--magma-orange);
  padding-left: 5px;
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.footer-contact i {
  color: var(--magma-orange);
  margin-top: 0.25rem;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-left: 1.5rem;
}

.footer-legal a:hover {
  color: var(--magma-orange);
}

/* ========================================
   COOKIE BANNER - GDPR
   ======================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(26, 26, 29, 0.98);
  backdrop-filter: blur(12px);
  padding: 1.5rem;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform var(--transition-normal);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.6;
}

.cookie-text a {
  color: var(--magma-orange);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}

.cookie-btn-accept {
  background: var(--magma-orange);
  color: var(--snow-white);
}

.cookie-btn-accept:hover {
  background: var(--magma-orange-light);
}

.cookie-btn-reject {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--snow-white);
}

.cookie-btn-reject:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.1);
}

.cookie-btn-settings {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.animate-fadeIn {
  animation: fadeIn 0.6s ease forwards;
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-slideInLeft {
  animation: slideInLeft 0.6s ease forwards;
}

.animate-slideInRight {
  animation: slideInRight 0.6s ease forwards;
}

/* Scroll Animations */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

[data-animate].animated {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="fade"] {
  transform: none;
}

[data-animate="slide-left"] {
  transform: translateX(-30px);
}

[data-animate="slide-right"] {
  transform: translateX(30px);
}

[data-animate="slide-left"].animated,
[data-animate="slide-right"].animated {
  transform: translateX(0);
}

/* Stagger Delays */
[data-delay="1"] { transition-delay: 0.1s; }
[data-delay="2"] { transition-delay: 0.2s; }
[data-delay="3"] { transition-delay: 0.3s; }
[data-delay="4"] { transition-delay: 0.4s; }
[data-delay="5"] { transition-delay: 0.5s; }

/* ========================================
   FORM STYLES
   ======================================== */
.form-control {
  padding: 0.875rem 1.25rem;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--transition-fast);
  background: var(--snow-white);
}

.form-control:focus {
  border-color: var(--magma-orange);
  box-shadow: 0 0 0 4px rgba(207, 63, 31, 0.1);
  outline: none;
}

.form-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--lava-charcoal);
}

.form-select {
  padding: 0.875rem 1.25rem;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--transition-fast);
  background: var(--snow-white);
  cursor: pointer;
}

.form-select:focus {
  border-color: var(--magma-orange);
  box-shadow: 0 0 0 4px rgba(207, 63, 31, 0.1);
  outline: none;
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* ========================================
   ACCORDION
   ======================================== */
.accordion-item {
  border: none;
  background: var(--snow-white);
  border-radius: var(--radius-md) !important;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.accordion-button {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 1.25rem 1.5rem;
  background: var(--snow-white);
  color: var(--lava-charcoal);
}

.accordion-button:not(.collapsed) {
  background: var(--snow-white);
  color: var(--magma-orange);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23CF3F1F'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
  padding: 0 1.5rem 1.5rem;
  color: var(--ash-grey);
  line-height: 1.7;
}

/* ========================================
   MODAL
   ======================================== */
.modal-content {
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  background: var(--lava-charcoal);
  color: var(--snow-white);
  padding: 1.25rem 1.5rem;
  border: none;
}

.modal-header .modal-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--snow-white);
}

.modal-body {
  padding: 2rem;
}

.btn-close-white {
  filter: brightness(0) invert(1);
}

/* ========================================
   UTILITIES
   ======================================== */
.text-magma { color: var(--magma-orange) !important; }
.text-pine { color: var(--pine-green) !important; }
.text-charcoal { color: var(--lava-charcoal) !important; }
.text-ash { color: var(--ash-grey) !important; }

.bg-magma { background: var(--magma-orange) !important; }
.bg-pine { background: var(--pine-green) !important; }
.bg-charcoal { background: var(--lava-charcoal) !important; }
.bg-cream { background: var(--cream) !important; }

.rounded-volcanic { border-radius: var(--radius-lg) !important; }
.shadow-volcanic { box-shadow: var(--shadow-volcanic) !important; }

.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 991px) {
  .section {
    padding: var(--space-lg) 0;
  }
  
  .hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 15px;
  }
  
  .section {
    padding: var(--space-md) 0;
  }
  
  .hero {
    min-height: 90vh;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-lg {
    padding: 0.875rem 2rem;
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
  
  .weather-current {
    flex-direction: column;
    text-align: center;
  }
  
  .weather-details,
  .tremor-data {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2.25rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .card-volcanic .card-body,
  .excursion-body {
    padding: 1.25rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-legal a {
    margin-left: 0;
    display: block;
    margin-top: 0.5rem;
  }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
  .navbar,
  .cookie-banner,
  .webcam-controls,
  .hero-cta {
    display: none !important;
  }
  
  .hero {
    min-height: auto;
    padding: 2rem 0;
  }
  
  .section {
    padding: 1rem 0;
  }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

:focus-visible {
  outline: 3px solid var(--magma-orange);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--magma-orange);
  color: var(--snow-white);
  padding: 1rem;
  z-index: 10000;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
}
