/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

/* Global Styles */
* {
  font-family: 'Inter', sans-serif;
}

body { 
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  background-attachment: fixed;
  color: white;
  overflow-x: hidden;
}

/* Animated Background Particles */
.particle {
  position: fixed;
  font-size: 2rem;
  opacity: 0.3;
  animation: float 15s infinite ease-in-out;
  pointer-events: none;
  z-index: 0;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-100px) rotate(180deg); }
}

/* Glassmorphism Effects */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.glass-strong {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.5);
}

/* 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(250, 204, 21, 0.5); }
  50% { box-shadow: 0 0 40px rgba(250, 204, 21, 0.8); }
}

/* Progress Bar Animation */
.progress-bar-fill {
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(90deg, #fbbf24, #f59e0b, #fbbf24);
  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(250, 204, 21, 0.3);
  border-color: #fbbf24;
}

/* Button Styles */
.btn-primary {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(251, 191, 36, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Loading Spinner */
.spinner {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid #fbbf24;
  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: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  white-space: nowrap;
  z-index: 100;
  animation: fadeIn 0.3s;
}

/* Mobile Optimizations */
@media (max-width: 640px) {
  .particle { 
    font-size: 1.5rem; 
  }
}

/* Cookie Consent Banner */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 1rem;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
}

.cookie-consent-banner.show {
  transform: translateY(0);
}

.cookie-consent-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-consent-icon {
  font-size: 3rem;
  flex-shrink: 0;
}

.cookie-consent-text {
  flex: 1;
  min-width: 250px;
}

.cookie-consent-text h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fbbf24;
}

.cookie-consent-text p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
}

.cookie-link {
  color: #fbbf24;
  text-decoration: underline;
  transition: color 0.2s;
}

.cookie-link:hover {
  color: #f59e0b;
}

.cookie-consent-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cookie-btn-primary {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #1f2937;
}

.cookie-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(251, 191, 36, 0.4);
}

.cookie-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 640px) {
  .cookie-consent-content {
    padding: 1rem;
  }
  
  .cookie-consent-icon {
    font-size: 2rem;
  }
  
  .cookie-consent-text h3 {
    font-size: 1rem;
  }
  
  .cookie-consent-text p {
    font-size: 0.8rem;
  }
  
  .cookie-consent-buttons {
    width: 100%;
  }
  
  .cookie-btn {
    flex: 1;
    min-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(255, 255, 255, 0.1);
  color: #fbbf24;
}

.nav-link.active {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

.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.05);
}

.nav-link-mobile:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fbbf24;
}

.nav-link-mobile.active {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

/* Calculator Cards */
.calculator-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  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(255, 255, 255, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(251, 191, 36, 0.3);
  border-color: rgba(251, 191, 36, 0.5);
}

.calculator-card h3 {
  color: #fbbf24;
}

/* Toggle Buttons */
.toggle-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 1rem;
  font-weight: 600;
  font-size: 0.875rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.toggle-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
}

.toggle-btn.active {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  border-color: #fbbf24;
  color: #1f2937;
}

/* Quiz/Personality Test Styles */
.quiz-option {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  padding: 1rem 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
}

.quiz-option:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(251, 191, 36, 0.5);
  transform: translateX(4px);
}

.quiz-option.selected {
  background: rgba(251, 191, 36, 0.2);
  border-color: #fbbf24;
}

.personality-badge {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #1f2937;
  font-weight: 800;
  font-size: 1.25rem;
  margin: 1rem 0;
}

/* Google AdSense Container Styling */
.ad-container-top,
.ad-container-bottom {
  max-width: 100%;
  margin: 1rem auto;
  padding: 1rem;
  text-align: center;
  min-height: 90px; /* Prevents layout shift while ad loads */
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ad-container-top {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.ad-container-bottom {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

/* Mobile optimization for ads */
@media (max-width: 640px) {
  .ad-container-top,
  .ad-container-bottom {
    padding: 0.5rem;
    min-height: 50px;
  }
}

/* Ad label styling */
.ad-label {
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

/* Dropdown Menu Styles */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 0.75rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  padding: 0.5rem;
  min-width: 200px;
  border: 1px solid rgba(255, 255, 255, 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(251, 191, 36, 0.1);
  color: #fbbf24;
  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);
}
