/* app/assets/stylesheets/landing.css */

/* Basic Styles */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #ffffff;
  color: #333;
  margin: 0;
  line-height: 1.6;
}

.landing-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
.landing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.logo {
  font-size: 1.75rem;
  font-weight: 700;
  color: #07379d;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo img {
  margin-right: 0.5rem;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  position: relative;
  margin-left: 2rem;
  display: flex;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: #555;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.3s ease, border-bottom-color 0.3s ease;
  border-bottom: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}

.nav-links a:hover,
.nav-links a.active {
  color: #07379d;
  border-bottom-color: #07379d;
  font-weight: 600;
}

.nav-links .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #ef4444;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  margin-left: 0.35rem;
  line-height: 1;
}

/* Practice Now Navigation Button (Golden Bee Accent Pill) */
.practice-now-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 0.45rem;
  background-color: #fcd104 !important;
  color: #07379d !important;
  font-weight: 700 !important;
  font-size: 0.875rem !important;
  padding: 0.35rem 0.95rem !important;
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(252, 209, 4, 0.35);
  border: 1px solid #facc15;
  border-bottom: 1px solid #facc15 !important;
  transition: all 0.2s ease !important;
}

.practice-now-btn:hover {
  background-color: #f5c400 !important;
  color: #052870 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(252, 209, 4, 0.5);
  border-bottom-color: #facc15 !important;
}

.practice-now-btn i {
  font-size: 0.85rem;
  color: #07379d;
}

/* Play Combo / Games Navigation Button (Indigo Gradient Pill) */
.nav-btn-combo {
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
  color: #ffffff !important;
  padding: 0.35rem 0.85rem !important;
  border-radius: 50px;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease !important;
}

.nav-btn-combo:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.45);
}

.nav-btn-combo i {
  font-size: 0.85rem;
  color: #fbbf24;
}

/* Dropdown Menu */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.4rem;
  z-index: 100;
  min-width: 210px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  list-style: none;
  margin: 0;
}

.nav-links li:hover > .dropdown,
.nav-links li:focus-within > .dropdown {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.nav-honey-item {
  display: inline-flex;
  align-items: center;
}

.nav-honey-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 40%, #fde68a 100%) !important;
  border: 1.5px solid #f59e0b !important;
  border-bottom: 1.5px solid #f59e0b !important;
  border-radius: 9999px !important;
  padding: 0.35rem 0.95rem 0.35rem 0.75rem !important;
  text-decoration: none !important;
  color: #92400e !important;
  font-weight: 800 !important;
  font-size: 0.85rem !important;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.9);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
}

.nav-honey-badge:hover {
  transform: translateY(-2px) scale(1.04) !important;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #fcd34d 100%) !important;
  border-color: #d97706 !important;
  border-bottom-color: #d97706 !important;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.9) !important;
  color: #78350f !important;
}

.nav-honey-icon {
  font-size: 1.1rem;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
  animation: honeyWiggle 3.5s ease-in-out infinite;
}

@keyframes honeyWiggle {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(-8deg); }
  40% { transform: rotate(8deg); }
  60% { transform: rotate(-4deg); }
  80% { transform: rotate(4deg); }
}

.nav-honey-amount {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  font-weight: 900;
  font-size: 0.95rem;
  color: #b45309;
  letter-spacing: -0.01em;
}

.nav-honey-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #d97706;
  opacity: 0.9;
}

.nav-profile {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.2;
}

.nav-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.nav-avatar-placeholder {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
}

.nav-profile i {
  font-size: 1.35rem;
  color: #64748b;
  display: inline-flex;
  align-items: center;
}

.dropdown li,
.nav-links .dropdown li {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  display: block !important;
  list-style-type: none !important;
  box-sizing: border-box !important;
}

.dropdown a,
.nav-links .dropdown a {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  width: 100% !important;
  padding: 0.6rem 0.95rem !important;
  color: #334155 !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  border-radius: 8px !important;
  border-bottom: none !important;
  box-sizing: border-box !important;
  transition: all 0.15s ease !important;
  text-decoration: none !important;
  background-color: transparent;
}

.dropdown a:hover,
.dropdown a:focus,
.nav-links .dropdown a:hover,
.nav-links .dropdown a:focus {
  background-color: #f1f5f9 !important;
  color: #07379d !important;
  border-bottom: none !important;
}

/* Hamburger Menu */
.hamburger-menu {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.hamburger-menu span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: #333;
  transition: all 0.3s ease-in-out;
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 999;
  }

  .nav-backdrop.active {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    bottom: 0;
    right: -100%;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    width: 280px;
    max-width: 82vw;
    background-color: #ffffff;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding-top: 3.5rem;
    padding-bottom: 2.5rem;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    z-index: 1000;
    box-sizing: border-box;
  }

  .nav-menu::-webkit-scrollbar {
    width: 4px;
  }

  .nav-menu::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
  }

  .nav-links li {
    margin: 0.25rem 1.25rem;
    width: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    box-sizing: border-box;
  }

  .nav-links a {
    width: 100%;
    padding: 0.35rem 0.5rem;
    font-size: 0.95rem;
    border-radius: 6px;
    box-sizing: border-box;
  }

  .nav-links a:hover {
    background-color: #f8fafc;
  }

  .nav-honey-item {
    margin: 0.25rem 1.25rem !important;
  }

  .nav-honey-badge {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
    padding: 0.35rem 0.75rem;
  }

  .nav-btn-combo,
  .practice-now-btn {
    width: 100% !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    text-align: center !important;
  }

  .nav-logout-form {
    width: 100%;
    margin: 0;
  }

  .nav-logout-btn {
    width: 100%;
    padding: 0.4rem 0.5rem;
    font-size: 0.95rem;
    color: #ef4444 !important;
    font-weight: 600;
    border-radius: 6px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
  }

  .nav-logout-btn:hover {
    background-color: #fef2f2;
    color: #dc2626 !important;
  }

  .landing-header {
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    gap: 1rem;
  }

  .logo {
    font-size: 1.5rem;
    flex-shrink: 0;
  }

  .main-nav {
    width: auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }

  .hamburger-menu {
    display: block;
    padding: 0.35rem 0.5rem;
    margin-right: 1.25rem;
    cursor: pointer;
    z-index: 1001;
  }

  .hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger-menu.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  /* Mobile Dropdown Submenus: Flow cleanly downwards inside the drawer without overflowing */
  .dropdown {
    display: none;
    position: static !important;
    width: 100% !important;
    min-width: unset !important;
    background-color: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 0.4rem !important;
    margin: 0.45rem 0 0.25rem 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    box-sizing: border-box !important;
    list-style: none !important;
  }

  .nav-links li:hover .dropdown,
  .nav-links li:focus-within .dropdown,
  .nav-links li.active .dropdown {
    display: flex !important;
    flex-direction: column !important;
  }

  .dropdown li {
    margin: 0.15rem 0 !important;
    width: 100% !important;
    padding: 0 !important;
    display: block !important;
  }

  .dropdown a {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    width: 100% !important;
    padding: 0.45rem 0.75rem !important;
    font-size: 0.9rem !important;
    color: #334155 !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    background-color: transparent !important;
    border-bottom: none !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    transition: background-color 0.15s ease, color 0.15s ease !important;
  }

  .dropdown a:hover,
  .dropdown a:active {
    background-color: #e2e8f0 !important;
    color: #07379d !important;
  }
}

/* Hero Section */
.hero {
  text-align: center;
  /* padding: 5rem 2rem; */ /* This padding is moved to .hero-content */
  background: linear-gradient(135deg, rgba(7, 55, 157, 0.95) 0%, rgba(5, 40, 112, 0.95) 100%);
  color: #fff;
  position: relative; /* Establish positioning context */
  overflow: hidden; /* Hide anything that might spill out */
  padding: 0;
}

.hero-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Behind all content */
  background-color: #ffffff;
}

.hero-content {
  position: relative;
  z-index: 2; /* In front of the canvas */
  padding: 5rem 2rem; /* Keep original padding */
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  animation: fadeInDown 1s ease;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); /* Add shadow for readability */
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  animation: fadeInUp 1s ease 0.2s;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); /* Add shadow for readability */
}

.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: #fcd104;
  color: #07379d;
  text-decoration: none;
  font-weight: 700;
  border-radius: 50px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: pulse 2s infinite;
}

.cta-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Footer */
.landing-footer {
  text-align: center;
  padding: 1.5rem;
  background-color: #333;
  color: #fff;
  margin-top: auto;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pulse {
  0% {
    transform: scale(1) translateY(0);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  }
  50% {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  }
  100% {
    transform: scale(1) translateY(0);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  }
}

.cta-button.secondary {
  background-color: #6c757d;
  color: #fff;
  animation: none; /* Remove pulse animation */
}

.cta-button.secondary:hover {
  background-color: #5a6268;
}

/* Logout Button Styles */
.nav-logout-form {
  margin: 0;
  display: flex;
  align-items: center;
}

.nav-logout-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  color: #555;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.3s ease, border-bottom-color 0.3s ease;
  border-bottom: 2px solid transparent;
  display: inline-flex;
  align-items: center;
}

.nav-logout-btn:hover {
  color: #07379d;
  border-bottom-color: #07379d;
}

