/* ==========================================================================
   MCAPREP SEO Landing Theme - Matches React Landing Page Navbar & Footer
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Aktiv+Grotesk:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --lp-teal-primary: #014751;
  --lp-teal-hover: #006b7b;
  --lp-accent-coral: #FF6F61;
  --lp-accent-mint: #aff8c8;
  --lp-cta-yellow: #ffeeb4;
  --lp-text-dark: #1f2937;
  --lp-text-light: #f9fafb;
  --lp-bg-light: #f9fafb;
  --lp-bg-dark: #111827;
  --lp-font-sans: 'Aktiv Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Base resets for navbar & footer components */
header.landing-header,
header.landing-header *,
footer.landing-footer,
footer.landing-footer * {
  box-sizing: border-box;
  font-family: var(--lp-font-sans);
}

/* ==========================================================================
   Navbar
   ========================================================================== */
header.landing-header {
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;
  background-color: var(--lp-teal-primary) !important;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  min-height: unset !important;
  height: auto !important;
  line-height: normal !important;
}

/* Scrolled state: light background with crisp shadow */
header.landing-header.scrolled {
  background-color: #ffffff !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04) !important;
}

/* Dark mode overrides */
html.dark header.landing-header,
html[data-theme="dark"] header.landing-header {
  background-color: #111827 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
}

.landing-nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.landing-nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.landing-nav-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.landing-nav-logo:hover {
  opacity: 0.85;
}

/* Desktop Links */
.landing-nav-links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 36px;
  align-items: center;
}

@media (min-width: 860px) {
  .landing-nav-links {
    display: flex;
  }
}

.landing-nav-link {
  color: #f9fafb;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.landing-nav-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--lp-accent-mint);
}

.landing-header.scrolled .landing-nav-link {
  color: #374151;
}

.landing-header.scrolled .landing-nav-link:hover {
  color: var(--lp-teal-primary);
  text-decoration-color: var(--lp-teal-primary);
}

html.dark .landing-header .landing-nav-link,
html[data-theme="dark"] .landing-header .landing-nav-link {
  color: #e5e7eb !important;
}

html.dark .landing-header .landing-nav-link:hover,
html[data-theme="dark"] .landing-header .landing-nav-link:hover {
  color: #ffffff !important;
  text-decoration-color: var(--lp-accent-mint) !important;
}

/* Right Actions (Theme Toggle, Login, Signup) */
.landing-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Theme toggle button */
.landing-theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.landing-theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

.landing-header.scrolled .landing-theme-toggle {
  border-color: #b7d8d0;
  background: #e6f4f1;
  color: var(--lp-teal-primary);
}

.landing-header.scrolled .landing-theme-toggle:hover {
  background: #d7eee8;
}

html.dark .landing-header .landing-theme-toggle,
html[data-theme="dark"] .landing-header .landing-theme-toggle {
  border-color: rgba(255, 255, 255, 0.2) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: #f3f4f6 !important;
}

/* Auth Buttons */
.landing-btn-login,
.landing-btn-signup {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  line-height: 1.4;
}

@media (min-width: 640px) {
  .landing-btn-login,
  .landing-btn-signup {
    display: inline-flex;
  }
}

/* Default state: Teal header */
.landing-btn-login {
  color: #ffffff;
  border: 2px solid var(--lp-teal-hover);
  background: transparent;
}

.landing-btn-login:hover {
  background-color: #ffffff;
  color: var(--lp-teal-primary);
  border-color: #ffffff;
}

.landing-btn-signup {
  background-color: var(--lp-cta-yellow);
  color: var(--lp-teal-primary);
  border: 2px solid var(--lp-cta-yellow);
}

.landing-btn-signup:hover {
  background-color: #ffffff;
  border-color: #ffffff;
  color: var(--lp-teal-primary);
}

/* Scrolled state: White header */
.landing-header.scrolled .landing-btn-login {
  color: var(--lp-teal-primary);
  border-color: var(--lp-teal-primary);
}

.landing-header.scrolled .landing-btn-login:hover {
  background-color: var(--lp-teal-hover);
  border-color: var(--lp-teal-hover);
  color: #ffffff;
}

.landing-header.scrolled .landing-btn-signup {
  background-color: var(--lp-teal-primary);
  border-color: var(--lp-teal-primary);
  color: #ffffff;
}

.landing-header.scrolled .landing-btn-signup:hover {
  background-color: var(--lp-teal-hover);
  border-color: var(--lp-teal-hover);
}

/* Dark mode */
html.dark .landing-header .landing-btn-login,
html[data-theme="dark"] .landing-header .landing-btn-login {
  color: #e5e7eb !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

html.dark .landing-header .landing-btn-login:hover,
html[data-theme="dark"] .landing-header .landing-btn-login:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
}

html.dark .landing-header .landing-btn-signup,
html[data-theme="dark"] .landing-header .landing-btn-signup {
  background: var(--lp-teal-primary) !important;
  border-color: var(--lp-teal-primary) !important;
  color: #ffffff !important;
}

/* Mobile hamburger button */
.landing-mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: #ffffff;
}

@media (min-width: 860px) {
  .landing-mobile-menu-btn {
    display: none;
  }
}

.landing-header.scrolled .landing-mobile-menu-btn {
  color: #1f2937;
}

html.dark .landing-header .landing-mobile-menu-btn,
html[data-theme="dark"] .landing-header .landing-mobile-menu-btn {
  color: #f9fafb !important;
}

/* Mobile backdrop */
.landing-mobile-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 998;
}

.landing-mobile-backdrop.open {
  display: block;
}

/* Mobile drawer dropdown */
.landing-mobile-drawer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--lp-teal-primary);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25);
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  padding: 20px 24px;
  z-index: 999;
}

.landing-header.scrolled .landing-mobile-drawer {
  background: #ffffff;
}

html.dark .landing-mobile-drawer,
html[data-theme="dark"] .landing-mobile-drawer {
  background: #111827 !important;
}

.landing-mobile-drawer.open {
  display: block;
}

.landing-mobile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.landing-mobile-link {
  display: block;
  text-align: center;
  padding: 10px;
  font-weight: 600;
  font-size: 15px;
  color: #f9fafb;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.landing-mobile-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--lp-accent-mint);
}

.landing-header.scrolled .landing-mobile-link {
  color: var(--lp-teal-primary);
}

.landing-header.scrolled .landing-mobile-link:hover {
  background: #f3f4f6;
  color: var(--lp-teal-hover);
}

html.dark .landing-mobile-link,
html[data-theme="dark"] .landing-mobile-link {
  color: #e5e7eb !important;
}

.landing-mobile-actions {
  display: flex;
  gap: 10px;
}

.landing-mobile-actions .landing-btn-login,
.landing-mobile-actions .landing-btn-signup {
  display: flex !important;
  flex: 1;
  text-align: center;
  padding: 10px 14px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer.landing-footer {
  background: linear-gradient(135deg, #111827 0%, #014751 50%, #111827 100%) !important;
  color: #ffffff !important;
  padding: 56px 0 28px !important;
  margin: 0 !important;
  border: none !important;
  text-align: left !important;
  position: relative;
  width: 100%;
}

html.dark footer.landing-footer,
html[data-theme="dark"] footer.landing-footer {
  background: linear-gradient(135deg, #030712 0%, #111827 50%, #030712 100%) !important;
}

.landing-footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.landing-footer-divider {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  margin-bottom: 44px;
}

.landing-footer-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

@media (min-width: 640px) {
  .landing-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .landing-footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1100px) {
  .landing-footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr 1.3fr 1.5fr;
    gap: 36px;
  }
}

.landing-footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.landing-footer-brand {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
  display: inline-block;
}

.landing-footer-brand span {
  color: var(--lp-accent-coral);
}

.landing-footer-col-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px 0;
}

.landing-footer-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14.5px;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.landing-footer-link:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.landing-footer-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
  margin: 0;
}

/* Google Play Store Badge */
.landing-play-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--lp-cta-yellow);
  color: var(--lp-teal-primary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, background-color 0.2s ease;
  width: fit-content;
  margin-top: 4px;
}

.landing-play-badge:hover {
  background-color: #ffffff;
  transform: translateY(-2px);
  color: var(--lp-teal-primary);
}

.landing-play-badge svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  flex-shrink: 0;
}

.landing-play-badge-sub {
  font-size: 9px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  opacity: 0.85;
  margin: 0;
  line-height: 1.1;
}

.landing-play-badge-main {
  font-size: 13px;
  font-weight: 800;
  margin: 0;
  line-height: 1.1;
}

/* Bottom copyright */
.landing-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}
