/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;500;600;700&family=Poppins:wght@300;400;700&family=Segoe+UI:wght@400;500;600;700&display=swap');

/* Root Variables - Vocab Loco Color Palette */
:root {
  /* Background Colors */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F5F5F5;
  
  /* Primary Colors */
  --primary-cactus: #7BC142;    /* Cactus Green */
  --primary-warm: #FFD93D;      /* Warm Yellow */
  --primary-vibrant: #FF6F3C;   /* Vibrant Orange */
  
  /* Neutral Colors */
  --text-heading: #1E262F;      /* Heading Text */
  --text-body: #6A7A8C;         /* Body Text */
  --border-secondary: #A0A4A8;  /* Secondary Border */
  
  /* Accent Colors */
  --accent-mint: #A8E6CF;       /* Mint Green */
  --accent-turquoise: #4DB6AC;  /* Turquoise */
  
  /* Dark Backgrounds */
  --dark-header: #121212;       /* Header Background */
  --dark-footer: #1E1E1E;       /* Footer Background */
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-vibrant) 0%, #FF8F5C 100%);
  --gradient-secondary: linear-gradient(135deg, var(--primary-cactus) 0%, #68AE36 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent-turquoise) 0%, #3DA799 100%);
}

/* Active List Title */
.active-list-title i {
  color: var(--primary-cactus);
  margin-right: 10px;
}

/* Animations */
@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes sword-glow {
  0% {
    transform: translateX(-100%) rotate(30deg);
  }
  100% {
    transform: translateX(200%) rotate(30deg);
  }
}

/* Button Styles */
.btn-cta {
  display: inline-flex;
  padding: 16px 24px;
  justify-content: center;
  align-items: center;
  gap: 16px;
  border-radius: 12px;
  color: #0C5D43;
  font-weight: bold;
  font-size: 18px;
  background: linear-gradient(135deg, #E7FFD1, #B8FFA9);
  border: 1px solid #00800017;
  transition: all 0.3s ease-in-out;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -150%;
  width: 200%;
  height: 200%;
  background: linear-gradient(30deg,
      transparent 20%,
      rgba(255, 255, 255, 0.6) 50%,
      transparent 80%);
  animation: sword-glow 4s infinite 2s cubic-bezier(0.4, 0, 0.2, 1);
  transform: rotate(30deg);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-cta:hover,
.btn-cta:active,
.btn-cta:focus-visible {
  background: linear-gradient(135deg, #D4F5BC, #A0E895) !important;
  color: #0C5D43 !important;
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-cta:hover::before {
  opacity: 0.8;
  animation-duration: 1.5s;
}

.btn-cta img {
  transition: transform 0.3s ease;
}

.btn-cta:hover img {
  transform: translateX(8px);
}

.btn-cta i {
  font-size: 1.1em;
  transition: transform 0.3s ease;
}

.btn-cta:hover i {
  transform: translateX(4px);
}

.btn-custom {
  background-color: #49B3A7;
  border-color: #49B3A7;
  color: white;
}

.btn-custom:hover {
  background-color: #3d9a8f;
  border-color: #3d9a8f;
  color: white;
}

.btn-custom:focus {
  background-color: #3d9a8f;
  border-color: #3d9a8f;
  color: white;
  box-shadow: 0 0 0 0.25rem rgba(73, 179, 167, 0.25);
}

.btn-custom:active {
  background-color: #3d9a8f !important;
  border-color: #3d9a8f !important;
  color: white !important;
}

/* Cookie Banner */
#cookie-banner {
  background: #ffffffcf;
  padding: 1em 1em;
  border-radius: 7px;
  flex-direction: column;
  max-width: 390px;
  margin: 0 auto;
  gap: 10px;
  bottom: 8px;
  align-items: center;
  justify-content: center;
  text-align: center;
  right: 10px;
  left: auto;
  backdrop-filter: blur(5px);
  border: 2px solid #EAEAEA;
  box-shadow: 1px 1px 9px -2px #CCC;
  display: none;
}

/* Focus Styles */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid #007bff !important;
  outline-offset: 2px;
}

/* General Styles */
body {
  background-color: var(--bg-primary);
  color: var(--text-heading);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  width: 100%;
}

.floating-back-button {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
  background-color: #30796f;
  color: white !important;
  border: none !important;
  border-radius: 50px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.floating-back-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  background-color: #30796f;
  color: white !important;
}

html {
  scroll-behavior: smooth;
}

/* Header Styles */
header {
  background-color: var(--dark-header);
  padding: 0.75rem 1.5rem;
}

header #logo {
  width: 100%;
  max-width: 244px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

header #book-taco-logo {
  width: 100%;
  max-width: 296px;
}

header .navbar {
  background: transparent;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #FF6F3C 0%, #FF8F5C 100%);
  position: relative;
  overflow: hidden;
  padding: 3rem 1rem;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
      radial-gradient(circle at 20% 150%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
      radial-gradient(circle at 80% -50%, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
  z-index: 1;
  transition: opacity 0.5s ease;
  opacity: 1;
}

.hero:hover::before {
  opacity: 0.8;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 1;
  transition: all 0.5s ease;
  transform-origin: center;
  transform: scale(1);
}

.hero:hover::after {
  transform: scale(1.2);
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-container {
  position: relative;
  z-index: 2;
  width: 1240px;
  margin: 0 auto;
  display: flex;
}

.hero-text h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 2rem;
  color: white !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  letter-spacing: -0.02em;
}

.hero-text p {
  font-size: 1.35rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.95);
  max-width: 540px;
}

/* Inner Header */
#inner-header {
  background: #e9f8ff;
  padding: 1.6em;
}

#inner-header h1 {
  font-weight: bold;
  margin-bottom: 0;
  color: #004379;
}

/* Navigation */
#navbarNav ul {
  gap: 9px;
  align-items: center;
}

#navbarNav ul li a {
  color: #FFFFFF;
  font-weight: 600;
  font-size: 20px;
  font-family: 'Nunito', sans-serif;
}

#navbarNav ul li a:hover {
  color: var(--primary-warm);
}

.nav-group {
  background: var(--bg-primary);
  border-radius: 16px;
  padding: 1.5rem;
  margin: -4rem auto 2rem auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  position: relative;
  z-index: 3;
  width: 100%;
}

.nav-group::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
    rgba(255,255,255,0.8) 0%,
    rgba(255,255,255,0.95) 100%);
  border-radius: 16px;
  z-index: -1;
}

/* Tab Buttons */
.tab-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem !important;
  border-radius: 12px;
  font-weight: 600 !important;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  flex: 1;
  min-width: 160px;
  color: white !important;
  z-index: 1;
}

.tab-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
    opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.tab-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%);
  transform: rotate(30deg);
  transition: transform 0.6s ease;
  z-index: 1;
}

.tab-btn.active {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.tab-btn.active::before {
  opacity: 1;
}

.tab-btn.btn-info {
  background: var(--gradient-accent);
}

.tab-btn.btn-info::before {
  background: linear-gradient(135deg, #3DA799 0%, var(--accent-turquoise) 100%);
}

.tab-btn.btn-primary {
  background: var(--gradient-primary);
}

.tab-btn.btn-primary::before {
  background: linear-gradient(135deg, #FF5722 0%, #E64A19 100%);
}

.tab-btn.btn-success {
  background: var(--gradient-secondary);
}

.tab-btn.btn-success::before {
  background: linear-gradient(135deg, #68AE36 0%, var(--primary-cactus) 100%);
}

.tab-btn.btn-warning {
  background: var(--primary-warm) !important;
}

.tab-btn.btn-warning::before {
  background:  linear-gradient(135deg, #CCAD30 0%, #edcb42 100%) !important;
  opacity: 1 !important;
}

.tab-btn-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 2;
  width: 100%;
  text-align: center;
}

.tab-btn-icon {
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.tab-btn-text {
  transition: transform 0.3s ease;
}

.tab-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  color: white !important;
  text-decoration: none;
}

.tab-btn:hover::before {
  opacity: 1;
}

.tab-btn:hover::after {
  transform: rotate(30deg) translate(50%, 50%);
}

.tab-btn:hover .tab-btn-icon {
  transform: translateX(4px);
}

.tab-btn:hover .tab-btn-text {
  transform: translateX(-4px);
}

.tab-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
  width: 100%;
}

/* Media Queries */
@media (max-width: 768px) {
  .floating-back-button {
    bottom: 15px;
    left: 15px;
  }
  header {
    padding: 0.5rem 0;
  }

  .hero {
    min-height: 44rem;
    padding: 1.5rem 0;
  }

  .hero h1 {
    font-size: 1.75rem;
    padding: 0 1rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .hero .btn-cta {
    padding: 10px 18px;
    font-size: 14px;
  }

  .hero > .container .btn-warning {
    width: 100%;
  }

  .nav-group {
    margin: -1.5rem auto 1.5rem auto;
    padding: 1rem;
  }

  .tab-buttons {
    gap: 0.75rem;
  }

  .tab-btn {
    padding: 0.75rem 1rem !important;
    min-width: 140px;
    font-size: 0.9rem;
  }

  .tab-btn-content {
    gap: 8px;
  }
}

@media (min-width: 768px) {
  .hero-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-text h1 span {
    font-size: 2.75rem;
  }

  .hero-text p {
    font-size: 1.05rem;
  }
}

@media (min-width: 992px) {
  .hero-container {
    gap: 4rem;
  }
}

@media (min-width: 1200px) {
  .hero-container {
    width: 1400px;
    gap: 3rem;
    padding: 0 2rem;
  }
}