/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* App Color Palette */
  --coral-red: #eb6853;
  --coral-light: #f6a59a;
  --muted-teal: #61988e;
  --golden-wheat: #f2d398;
  --lavender-blue: #7180b9;
  --soft-pink: #f6b2a7;
  --mint: #b3e1d8;
  --light-mint: #e8f5f2;
  --herb-green: #4a9d76;
  --success-green: #5a9d6f;
  --golden-yellow: #f9c74f;
  --white: #ffffff;
  --black: #151716;
  --text-dark: #333333;
  --text-medium: #4a5568;
  --text-light: #757575;
  --background: #f9f9f9;
  --border: #e5e5e5;

  /* Gradients */
  --gradient-primary: linear-gradient(
    135deg,
    #eb6853 0%,
    #f6a59a 50%,
    #61988e 100%
  );
  --gradient-coral: linear-gradient(135deg, #eb6853 0%, #d85a47 100%);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--background);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Utility Classes */
.hidden {
  display: none !important;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--black);
  transition: transform 0.2s ease;
}

.nav-logo:hover {
  transform: translateY(-1px);
}

.nav-logo img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(235, 104, 83, 0.2);
}

.nav-logo span {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-links {
  display: none;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--coral-red);
}

.nav-cta {
  background: var(--coral-red);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 24px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(235, 104, 83, 0.3);
}

.nav-cta:hover {
  background: #d85a47;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(235, 104, 83, 0.4);
}

.nav-cta svg {
  width: 18px;
  height: 18px;
}

/* Desktop CTA - hidden on mobile */
.nav-cta-desktop {
  display: none;
}

/* Hamburger Menu Button */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.nav-hamburger:hover {
  background: rgba(0, 0, 0, 0.05);
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

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

.nav-hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Dropdown */
.nav-mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 16px 20px;
  gap: 8px;
}

.nav-mobile-menu.active {
  display: flex;
}

.nav-mobile-link {
  color: var(--text-dark);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.nav-mobile-link:hover {
  background: var(--background);
  color: var(--coral-red);
}

.nav-mobile-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--coral-red);
  color: var(--white);
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 50px;
  margin-top: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(235, 104, 83, 0.3);
}

.nav-mobile-cta:hover {
  background: #d85a47;
  transform: translateY(-2px);
}

.nav-mobile-cta svg {
  width: 20px;
  height: 20px;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--coral-red);
  color: var(--white);
  padding: 16px 32px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(235, 104, 83, 0.35);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #d85a47;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(235, 104, 83, 0.45);
}

.btn-primary svg {
  width: 22px;
  height: 22px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--white);
  color: var(--text-dark);
  padding: 16px 32px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border: 2px solid var(--border);
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: var(--coral-red);
  color: var(--coral-red);
}

/* Footer */
.footer {
  padding: 60px 20px 32px;
  background: var(--white);
  border-top: 1px solid var(--border);
}

.footer-container {
  max-width: 1000px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-brand {
  flex: 1;
}

.footer-brand .nav-logo {
  margin-bottom: 12px;
  display: inline-flex;
}

.footer-brand p {
  color: var(--text-light);
  font-size: 14px;
  max-width: 280px;
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.footer-column h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 10px;
}

.footer-column a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: var(--coral-red);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}

.footer-bottom p {
  color: var(--text-light);
  font-size: 13px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--background);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  text-decoration: none;
  font-size: 16px;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--coral-red);
  border-color: var(--coral-red);
  color: var(--white);
  transform: translateY(-2px);
}

/* Simple Footer (for share pages) */
.footer-simple {
  text-align: center;
  padding: 32px 20px;
  border-top: 1px solid var(--border);
  background: var(--white);
}

.footer-simple .footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 12px;
}

.footer-simple .footer-link {
  font-size: 14px;
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-simple .footer-link:hover {
  color: var(--coral-red);
}

.footer-simple .footer-text {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 0;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(0.9);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Loading States */
.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: radial-gradient(
      circle at 30% 30%,
      rgba(235, 104, 83, 0.8) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 70%,
      rgba(97, 152, 142, 0.8) 0%,
      transparent 50%
    ),
    linear-gradient(135deg, var(--coral-red) 0%, var(--muted-teal) 100%);
  color: white;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.loading-spinner {
  width: 70px;
  height: 70px;
  border: 6px solid rgba(255, 255, 255, 0.15);
  border-top: 6px solid white;
  border-right: 6px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  animation: spin 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.loading-text {
  font-size: 20px;
  font-weight: 600;
  opacity: 0.95;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Responsive - Common */
@media (min-width: 640px) {
  .nav {
    padding: 16px 32px;
  }
  .nav-links {
    display: flex;
  }
  .footer-top {
    flex-direction: row;
  }
  .footer-links {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  .nav-hamburger {
    display: none;
  }

  .nav-mobile-menu {
    display: none !important;
  }

  .nav-cta-desktop {
    display: flex;
  }
}
