/* Google Fonts loaded via <link> tag in HTML for better performance */

/* CSS Custom Properties for Wealthy Peoples Brand */
:root {
  --color-gold: #D4AF37;
  --color-gold-light: #E5C76B;
  --color-gold-dark: #B8941E;
  --color-navy: #0F172A;
  --color-navy-light: #1E293B;
  --color-navy-lighter: #334155;
  --color-background: #F8FAFC;
  --color-green: #16A34A;
  --color-green-light: #22C55E;
  --color-white: #FFFFFF;
}

/* Global Styles */
* {
  font-family: 'Inter', sans-serif;
}

body {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 50%, var(--color-navy) 100%);
  background-attachment: fixed;
  color: white;
  overflow-x: hidden;
}

/* Subtle Gold Accent Particles (replacing emoji particles) */
.particle {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--color-gold);
  border-radius: 50%;
  opacity: 0.3;
  animation: floatParticle 20s infinite ease-in-out;
  pointer-events: none;
  z-index: 0;
  box-shadow: 0 0 10px var(--color-gold);
}

.particle:nth-child(2) { width: 4px; height: 4px; opacity: 0.2; }
.particle:nth-child(3) { width: 8px; height: 8px; opacity: 0.15; }
.particle:nth-child(4) { width: 5px; height: 5px; opacity: 0.25; }

@keyframes floatParticle {
  0%, 100% { transform: translateY(0) translateX(0); }
  25% { transform: translateY(-30px) translateX(10px); }
  50% { transform: translateY(-50px) translateX(-10px); }
  75% { transform: translateY(-20px) translateX(5px); }
}

/* Glassmorphism Effects - Updated for dark theme */
.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.glass-strong {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 175, 55, 0.15);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

/* Animations */
.fade-in {
  animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.slide-up {
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.pulse-glow {
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.4); }
  50% { box-shadow: 0 0 40px rgba(212, 175, 55, 0.7); }
}

/* Progress Bar Animation */
.progress-bar-fill {
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(90deg, var(--color-gold-dark), var(--color-gold), var(--color-gold-light));
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Input Focus Effect */
.input-glow:focus {
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.3);
  border-color: var(--color-gold);
}

/* Button Styles */
.btn-primary {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
  color: var(--color-navy);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Secondary Button */
.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: white;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--color-gold);
}

/* Loading Spinner */
.spinner {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid var(--color-gold);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Tooltip */
.tooltip {
  position: relative;
  cursor: help;
}

.tooltip:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-navy);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  white-space: nowrap;
  z-index: 100;
  border: 1px solid rgba(212, 175, 55, 0.2);
  animation: fadeIn 0.3s;
}

/* Mobile Optimizations */
@media (max-width: 640px) {
  .particle {
    width: 4px;
    height: 4px;
  }
}

/* Cookie Consent Banner - Compact Version */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 0.75rem;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
}

.cookie-consent-banner.show {
  transform: translateY(0);
}

.cookie-consent-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0.875rem 1.25rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--color-navy-light);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.cookie-consent-text {
  flex: 1;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}

.cookie-consent-text a {
  color: var(--color-gold);
  text-decoration: underline;
}

.cookie-consent-text a:hover {
  color: var(--color-gold-light);
}

.cookie-consent-buttons {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.75rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cookie-btn-primary {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
  color: var(--color-navy);
}

.cookie-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.cookie-btn-secondary {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

@media (max-width: 640px) {
  .cookie-consent-content {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
    gap: 0.75rem;
  }

  .cookie-consent-text {
    font-size: 0.75rem;
  }

  .cookie-consent-buttons {
    width: 100%;
    justify-content: center;
  }

  .cookie-btn {
    flex: 1;
    max-width: 120px;
  }
}

/* Navigation Styles */
.nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.nav-link:hover {
  background: rgba(212, 175, 55, 0.1);
  color: var(--color-gold);
}

.nav-link.active {
  background: rgba(212, 175, 55, 0.15);
  color: var(--color-gold);
}

.nav-link-mobile {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
  display: block;
  background: rgba(255, 255, 255, 0.03);
}

.nav-link-mobile:hover {
  background: rgba(212, 175, 55, 0.1);
  color: var(--color-gold);
}

.nav-link-mobile.active {
  background: rgba(212, 175, 55, 0.15);
  color: var(--color-gold);
}

/* Logo Styles */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-gold);
}

@media (min-width: 640px) {
  .logo-icon {
    width: 36px;
    height: 36px;
  }
  .logo-text {
    font-size: 1.5rem;
  }
}

/* Calculator Cards */
.calculator-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  text-decoration: none;
  color: white;
  display: block;
}

.calculator-card:hover {
  background: rgba(212, 175, 55, 0.08);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.2);
  border-color: rgba(212, 175, 55, 0.3);
}

.calculator-card h3 {
  color: var(--color-gold);
}

.calculator-card-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.75rem;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* Toggle Buttons */
.toggle-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 1rem;
  font-weight: 600;
  font-size: 0.875rem;
  border: 2px solid rgba(212, 175, 55, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.toggle-btn:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.3);
}

.toggle-btn.active {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
  border-color: var(--color-gold);
  color: var(--color-navy);
}

/* Quiz/Personality Test Styles */
.quiz-option {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(212, 175, 55, 0.1);
  border-radius: 1rem;
  padding: 1rem 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
}

.quiz-option:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: rgba(212, 175, 55, 0.3);
  transform: translateX(4px);
}

.quiz-option.selected {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--color-gold);
}

.personality-badge {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
  color: var(--color-navy);
  font-weight: 800;
  font-size: 1.25rem;
  margin: 1rem 0;
}

/* Hero Section */
.hero-section {
  padding-top: 5rem;
}

/* Dropdown Menu Styles */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  background: var(--color-navy-light);
  backdrop-filter: blur(10px);
  border-radius: 0.75rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  padding: 0.5rem;
  min-width: 200px;
  border: 1px solid rgba(212, 175, 55, 0.1);
  z-index: 50;
}

.dropdown-item {
  display: block;
  padding: 0.75rem 1rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  font-weight: 500;
}

.dropdown-item:hover {
  background: rgba(212, 175, 55, 0.1);
  color: var(--color-gold);
  transform: translateX(4px);
}

/* Mobile dropdown styles */
.mobile-dropdown {
  position: relative;
}

.mobile-dropdown-menu {
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.dropdown-arrow {
  transition: transform 0.3s ease;
}

.dropdown-arrow.rotate-180 {
  transform: rotate(180deg);
}

/* Share Buttons */
.share-buttons {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.share-btn:hover {
  transform: translateY(-2px);
}

.share-btn-twitter {
  background: #1DA1F2;
  color: white;
}

.share-btn-facebook {
  background: #4267B2;
  color: white;
}

.share-btn-reddit {
  background: #FF4500;
  color: white;
}

.share-btn-whatsapp {
  background: #25D366;
  color: white;
}

.share-btn-copy {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.share-btn-copy:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Text colors using brand palette */
.text-gold {
  color: var(--color-gold);
}

.text-green {
  color: var(--color-green);
}

/* Stat Card Styles */
.stat-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.1);
  padding: 1rem;
  border-radius: 0.75rem;
  text-align: center;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-gold);
}

.stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.25rem;
}

/* Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
  .particle {
    animation: none;
  }
  .fade-in,
  .slide-up {
    animation: none;
  }
  .pulse-glow {
    animation: none;
  }
  .progress-bar-fill {
    animation: none;
    transition: none;
  }
  .spinner {
    animation: spin 1.5s linear infinite;
  }
}
