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

:root {
  --font-primary: 'Inter', sans-serif;
  --font-secondary: 'Outfit', sans-serif;

  /* Theme variables - Default Dark Mode */
  --bg-color: #0b0b0f;
  --bg-gradient: radial-gradient(circle at 50% 0%, #1a103c 0%, #0b0b0f 70%);
  --bg-section: #121217;
  --card-bg: #16161d;
  --card-bg-hover: #1e1e28;
  --card-border: rgba(255, 255, 255, 0.08);
  --text-primary: #ffffff;
  --text-secondary: #b3b3c3;
  --text-muted: #8e8ea0;
  --primary-color: #8b5cf6;
  --primary-glow: rgba(139, 92, 246, 0.15);
  --secondary-color: #a855f7;
  --accent-color: #c084fc;
  --ad-bg: rgba(30, 30, 40, 0.4);
}

.light-theme {
  /* Theme variables - Overhauled Light Mode */
  --bg-color: #ffffff;
  --bg-gradient: none;
  --bg-section: #f8fafc;
  --card-bg: #ffffff;
  --card-bg-hover: #f1f5f9;
  --card-border: #e5e7eb;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --primary-color: #8b5cf6;
  --primary-glow: rgba(139, 92, 246, 0.08);
  --secondary-color: #a855f7;
  --accent-color: #c084fc;
  --ad-bg: rgba(241, 245, 249, 0.8);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-color);
  background-image: var(--bg-gradient);
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
}

/* Glassmorphism Styles */
.glass-panel {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  transition: all 0.3s ease;
}

.glass-panel-glow {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel-glow:hover {
  background: var(--card-bg-hover);
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 12px 30px -10px var(--primary-glow);
  transform: translateY(-4px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.6);
}

/* Gradients */
.text-gradient {
  background: linear-gradient(135deg, #8b5cf6 30%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-gradient {
  background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
  color: #ffffff !important; /* Always white text on buttons */
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-gradient:hover {
  background: linear-gradient(135deg, #a855f7 0%, #c084fc 100%);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.45);
  transform: translateY(-1px);
}

/* Framer-Motion Style Transitions */
.framer-fade-in {
  animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.framer-scale-in {
  animation: scaleIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Animations */
@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

.float-animation {
  animation: float 6s ease-in-out infinite;
}

@keyframes pulse-slow {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(1.08); }
}

.pulse-bg {
  animation: pulse-slow 10s ease-in-out infinite;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: rgba(22, 22, 29, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 16px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.light-theme .toast {
  background: #ffffff;
  border-color: rgba(139, 92, 246, 0.3);
  color: #111827;
  box-shadow: 0 10px 25px -5px rgba(139, 92, 246, 0.15);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Typing Effect for Prompt Generators */
@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

.typing-cursor::after {
  content: '|';
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  from, to { color: transparent }
  50% { color: var(--primary-color) }
}

/* Skeleton Loading Effect */
.skeleton {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

.light-theme .skeleton {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.03) 25%, rgba(0, 0, 0, 0.08) 50%, rgba(0, 0, 0, 0.03) 75%);
  background-size: 200% 100%;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Adsense Placeholder style */
.adsense-placeholder {
  background: var(--ad-bg);
  border: 1px dashed var(--card-border);
  min-height: 90px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  overflow: hidden;
}

.adsense-placeholder::before {
  content: 'SPONSORED ADVERTISEMENT';
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  opacity: 0.6;
}

/* Accordion transition utility */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active .faq-content {
  max-height: 1000px;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* Sticky Navbar shadow */
.nav-scrolled {
  background-color: rgba(11, 11, 15, 0.85) !important;
  backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.light-theme .nav-scrolled {
  background-color: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid var(--card-border) !important;
}

/* Lucide Icon Base Styling */
.lucide-icon {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
