/* 
   THE QUIET WISDOM - STYLESHEET
   Premium, Minimalistic, Responsive, Glassmorphism & Smooth Interactions
*/

/* Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

/* Color Variables & Themes */
:root {
  --primary: #6366f1;
  --primary-rgb: 99, 102, 241;
  --secondary: #8b5cf6;
  --secondary-rgb: 139, 92, 246;
  --accent: #f59e0b;
  --accent-rgb: 245, 158, 11;
  
  /* Light Theme */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.75);
  --border-color: rgba(226, 232, 240, 0.8);
  --text-main: #111827;
  --text-muted: #6b7280;
  --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.07), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] {
  --bg-primary: #09090b;
  --bg-secondary: #121214;
  --bg-card: rgba(20, 20, 23, 0.6);
  --border-color: rgba(39, 39, 42, 0.6);
  --text-main: #f4f4f5;
  --text-muted: #a1a1aa;
  --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
  --glass-bg: rgba(18, 18, 24, 0.75);
  --glass-border: rgba(255, 255, 255, 0.06);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

a {
  text-decoration: none;
  color: inherit;
}

button, input, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

/* Scroll Progress Bar */
.scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: transparent;
  z-index: 1000;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
  transition: width 0.1s ease;
}

/* Toast Notification Manager */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1000;
  max-width: 360px;
  width: calc(100% - 48px);
}

.toast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  color: var(--text-main);
  font-size: 0.875rem;
  font-weight: 500;
  transform: translateY(50px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.toast-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast i {
  font-size: 1.1rem;
}

.toast.success i { color: #10b981; }
.toast.error i { color: #ef4444; }
.toast.info i { color: var(--primary); }

.toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.toast-close:hover {
  background-color: var(--bg-secondary);
}

/* Header & Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  z-index: 99;
  transition: all 0.3s ease;
  padding: 0 40px;
}

.navbar.scrolled {
  background-color: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-light);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.2);
  color: white;
  font-size: 1.2rem;
}

.logo-text h1 {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-main);
  line-height: 1;
}

.logo-text span {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 4px;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background-color: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.theme-toggle:hover {
  background-color: var(--bg-secondary);
  color: var(--primary);
  border-color: var(--primary);
}

.theme-toggle .fa-sun { display: none; }
[data-theme="dark"] .theme-toggle .fa-moon { display: none; }
[data-theme="dark"] .theme-toggle .fa-sun { display: block; }

.nav-btn {
  padding: 10px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: opacity 0.2s, transform 0.2s;
}

.nav-btn:hover { opacity: 0.95; }
.nav-btn:active { transform: scale(0.98); }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 40px 0 40px;
  background-color: var(--bg-secondary);
  overflow: hidden;
}

.hero-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  animation: float 20s infinite alternate ease-in-out;
}

[data-theme="dark"] .shape { opacity: 0.08; }

.shape-1 { top: -10%; left: -10%; width: 50vw; height: 50vw; background: var(--primary); }
.shape-2 { bottom: -10%; right: -10%; width: 50vw; height: 50vw; background: var(--secondary); animation-delay: -5s; }
.shape-3 { top: 30%; left: 30%; width: 30vw; height: 30vw; background: var(--accent); animation-delay: -10s; }

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(5%, 5%) scale(1.1); }
  100% { transform: translate(-5%, -5%) scale(0.9); }
}

.hero-container {
  width: 100%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 50px;
  color: var(--primary);
  font-family: monospace;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-main);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-title span {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 16px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(99, 102, 241, 0.25);
}

.btn-secondary {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-secondary:hover {
  background-color: var(--bg-secondary);
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

/* Floating Card decoration */
.hero-card-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.floating-card {
  width: 100%;
  max-width: 380px;
  padding: 40px;
  border-radius: 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  position: relative;
  animation: floatCard 6s infinite ease-in-out;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.card-decorations {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 4px;
}

.card-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.card-dot:nth-child(1) { background-color: rgba(99, 102, 241, 0.5); }
.card-dot:nth-child(2) { background-color: rgba(139, 92, 246, 0.5); }
.card-dot:nth-child(3) { background-color: rgba(245, 158, 11, 0.5); }

.card-quote-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 32px;
}

.floating-card p {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-main);
  margin-bottom: 24px;
}

.floating-card .author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.author-line {
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 10px;
}

.author span {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* Section Header styling */
.section {
  padding: 100px 40px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  font-family: monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
}

.section-divider {
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 10px;
  margin: 24px auto 0 auto;
}

/* Daily Quote Section */
.daily {
  background-color: var(--bg-primary);
}

.daily-card-container {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}

.daily-card-ring {
  position: absolute;
  inset: -6px;
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  border-radius: 30px;
  filter: blur(10px);
  opacity: 0.15;
  pointer-events: none;
}

.daily-card {
  position: relative;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 56px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.daily-watermark {
  position: absolute;
  top: -16px;
  left: -16px;
  font-size: 9rem;
  color: var(--bg-secondary);
  opacity: 0.5;
  pointer-events: none;
  font-family: 'Playfair Display', serif;
  line-height: 1;
}

[data-theme="dark"] .daily-watermark { color: #1a1a20; }

.daily-quote-box {
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 32px;
}

.daily-quote-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.625rem;
  line-height: 1.6;
  font-weight: 500;
  color: var(--text-main);
  font-style: italic;
  transition: opacity 0.3s ease;
}

.daily-author-box {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

.daily-category-tag {
  margin-top: 16px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.15);
  color: var(--primary);
}

.daily-actions {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-top: 1px solid var(--border-color);
  padding-top: 32px;
}

.btn-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  background-color: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-icon:hover { background-color: var(--bg-secondary); }
.btn-icon.active {
  background-color: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

/* Curated Categories Grid */
.categories {
  background-color: var(--bg-secondary);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.category-card {
  position: relative;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 210px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  opacity: 0;
  border-radius: 24px;
  transition: opacity 0.3s;
}

.category-card:hover::before { opacity: 1; }
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(99, 102, 241, 0.2);
}

.category-card.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

.category-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background-color: rgba(99, 102, 241, 0.06);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: all 0.3s;
}

.category-card:hover .category-icon {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.15);
}

.category-card-bottom {
  margin-top: 24px;
  position: relative;
  z-index: 2;
}

.category-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-title i {
  font-size: 0.8rem;
  opacity: 0;
  transform: translateX(-5px);
  transition: all 0.3s;
  color: var(--primary);
}

.category-card:hover .category-title i {
  opacity: 1;
  transform: translateX(0);
}

.category-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.4;
}

/* Explore Grid Section */
.featured {
  background-color: var(--bg-primary);
}

.filter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 16px 24px;
  border-radius: 20px;
  max-width: 1200px;
  margin: 0 auto 48px auto;
}

.search-box {
  position: relative;
  width: 100%;
  max-width: 360px;
}

.search-box i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.search-input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-size: 0.875rem;
  transition: all 0.2s;
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.category-reset-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary);
  background-color: rgba(99, 102, 241, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.1);
  cursor: pointer;
  transition: all 0.2s;
}

.category-reset-btn:hover { background-color: rgba(99, 102, 241, 0.1); }

.fav-toggle-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 14px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.fav-toggle-btn:hover { background-color: var(--bg-secondary); }
.fav-toggle-btn.active {
  background-color: rgba(244, 63, 94, 0.06);
  border-color: rgba(244, 63, 94, 0.15);
  color: #f43f5e;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.quote-card {
  position: relative;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.quote-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(99, 102, 241, 0.15);
}

.quote-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.01), rgba(139, 92, 246, 0.01));
  opacity: 0;
  transition: opacity 0.3s;
}

.quote-card:hover::before { opacity: 1; }

.card-cat-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  position: relative;
  z-index: 2;
}

.quote-card p {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-main);
  margin: 16px 0 32px 0;
  font-style: italic;
  position: relative;
  z-index: 2;
}

.quote-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  margin-top: auto;
  z-index: 2;
}

.quote-card .author-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quote-card .author-line {
  width: 12px;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
}

.quote-card .author-info span {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background-color: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-size: 0.8rem;
}

.card-action-btn:hover {
  background-color: var(--bg-secondary);
  color: var(--primary);
}

.card-action-btn.fav-btn.active {
  color: #f43f5e;
  background-color: rgba(244, 63, 94, 0.05);
}

/* Empty Grid State */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 32px;
  background-color: var(--bg-secondary);
  border: 1px dashed var(--border-color);
  border-radius: 24px;
  display: none;
}

.empty-state i {
  font-size: 2.5rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 320px;
  margin: 0 auto;
}

/* Quote Generator Studio */
.generator {
  background-color: var(--bg-secondary);
}

.generator-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

.generator-canvas-wrapper {
  position: relative;
  width: 100%;
}

.generator-canvas-decor {
  position: absolute;
  inset: -10px;
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  border-radius: 36px;
  filter: blur(14px);
  opacity: 0.12;
  pointer-events: none;
}

.generator-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 28px;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
  color: white;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.canvas-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.08);
  mix-blend-mode: overlay;
  pointer-events: none;
}

.canvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
  opacity: 0.7;
}

.canvas-header span {
  font-family: monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.canvas-header i { font-size: 0.85rem; }

.canvas-text-box {
  margin: auto 0;
  text-align: center;
  z-index: 2;
}

.canvas-quote-display {
  font-family: 'Playfair Display', serif;
  font-size: 1.625rem;
  font-weight: 600;
  line-height: 1.5;
}

.canvas-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 2;
  opacity: 0.8;
}

.canvas-footer-line {
  width: 16px;
  height: 1px;
  background-color: currentColor;
}

.canvas-author-display {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* Canvas Theme Presets */
.canvas-theme-sunset { background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #f43f5e 100%); }
.canvas-theme-cosmic {
  background: linear-gradient(135deg, #09090b 0%, #1e293b 50%, #0f172a 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.canvas-theme-forest { background: linear-gradient(135deg, #0d9488 0%, #059669 50%, #06b6d4 100%); }
.canvas-theme-aurora { background: linear-gradient(135deg, #f59e0b 0%, #ea580c 50%, #8b5cf6 100%); }
.canvas-theme-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
}

/* Generator Controls */
.generator-controls {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.control-panel {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-light);
}

.control-panel h3 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.control-panel h3 i { color: var(--primary); }

.input-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.input-area {
  width: 100%;
  height: 96px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  color: var(--text-main);
  font-size: 0.875rem;
  resize: none;
  line-height: 1.5;
  transition: all 0.2s;
}

.input-field {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  color: var(--text-main);
  font-size: 0.875rem;
  transition: all 0.2s;
}

.input-area:focus, .input-field:focus {
  border-color: var(--primary);
  background-color: var(--bg-primary);
}

.theme-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.theme-btn {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.theme-btn:hover { background-color: var(--bg-secondary); }
.theme-btn.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.15);
}

.generator-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.generator-actions .btn {
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-black {
  background-color: #111827;
  color: white;
}

[data-theme="dark"] .btn-black {
  background-color: #f4f4f5;
  color: #09090b;
}

.btn-black:hover { opacity: 0.9; }

/* Stats Counters Section */
.stats {
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background-color: rgba(99, 102, 241, 0.06);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.stat-number {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  line-height: 1;
}

.stat-label {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-main);
  margin-top: 12px;
}

.stat-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Testimonials section */
.testimonials {
  background-color: var(--bg-secondary);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  position: relative;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-light);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.testimonial-watermark {
  position: absolute;
  top: 32px;
  right: 32px;
  font-size: 2.5rem;
  color: var(--primary);
  opacity: 0.08;
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  color: #fbbf24;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.testimonial-card p {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-main);
  margin-bottom: 32px;
  font-style: italic;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
}

.testimonial-user img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(99, 102, 241, 0.2);
}

.testimonial-user-info h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.testimonial-user-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Newsletter section */
.newsletter {
  background-color: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.newsletter-decor {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.04);
  filter: blur(100px);
  pointer-events: none;
}

.newsletter-card {
  max-width: 860px;
  margin: 0 auto;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 32px;
  padding: 64px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.newsletter-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background-color: rgba(99, 102, 241, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 24px;
}

.newsletter h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 12px;
}

.newsletter p {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 420px;
  margin-bottom: 32px;
  line-height: 1.6;
}

.newsletter-form-container {
  width: 100%;
  max-width: 440px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
}

.newsletter-form .input-field {
  background-color: var(--bg-primary);
  padding: 14px 18px;
}

.newsletter-form .btn {
  padding: 14px 28px;
  border-radius: 12px;
}

.newsletter-success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: 16px;
  color: #047857;
  max-width: 440px;
  width: 100%;
}

.newsletter-success i {
  font-size: 1.75rem;
  color: #10b981;
}

.newsletter-success h4 {
  font-weight: 700;
  font-size: 0.95rem;
}

.newsletter-success p {
  font-size: 0.75rem;
  color: #065f46;
  margin-bottom: 0;
}

/* Footer style */
.footer {
  background-color: #09090b;
  color: #a1a1aa;
  padding: 80px 40px 40px 40px;
  border-top: 1px solid #18181b;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 0.8fr);
  gap: 64px;
  margin-bottom: 64px;
}

.footer-about {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-about .logo-icon {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.footer-about .logo-text h1 { color: white; }

.footer-about p {
  font-size: 0.75rem;
  line-height: 1.6;
  color: #71717a;
  max-width: 280px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-column h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #e4e4e7;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.75rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: white; }

.footer-contact-desc {
  font-size: 0.75rem;
  line-height: 1.6;
  color: #71717a;
}

.footer-contact-desc span {
  color: #a1a1aa;
  font-weight: 500;
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background-color: #18181b;
  color: #a1a1aa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.social-icon:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.footer-divider {
  height: 1px;
  background-color: #18181b;
  margin-bottom: 32px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #52525b;
}

.footer-copy {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-copy i { color: #f43f5e; }

.back-to-top {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: #71717a;
  cursor: pointer;
  transition: color 0.2s;
}

.back-to-top:hover { color: white; }
.back-to-top i { transition: transform 0.3s; }
.back-to-top:hover i { transform: translateY(-3px); }

/* Floating scroll to top button */
.btn-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
  box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s;
  z-index: 90;
}

.btn-float.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.btn-float:hover {
  background-color: var(--secondary);
  box-shadow: 0 10px 15px -3px rgba(139, 92, 246, 0.4);
}

/* Scroll Animation classes */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Sidebar Menu (Overlay) */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--bg-primary);
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 32px 40px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.open { transform: translateX(0); }

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
}

.mobile-menu-close {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.mobile-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-links a {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
  transition: color 0.2s;
}

.mobile-links a:hover { color: var(--primary); }

.mobile-menu-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) {
  .navbar { padding: 0 24px; }
  .hero {
    padding: 80px 24px 0 24px;
    height: auto;
    min-height: auto;
    padding-bottom: 64px;
  }
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 56px;
    margin-top: 48px;
  }
  .hero-content { align-items: center; }
  .hero-title { font-size: 3.5rem; }
  .hero-desc { max-width: 600px; }
  .hero-actions { justify-content: center; }
  .section { padding: 80px 24px; }
  .generator-container { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1.5fr 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .nav-btn { display: none; }
  .nav-toggle { display: flex; }
  .hero-title { font-size: 2.75rem; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .daily-card { padding: 36px 24px; }
  .daily-quote-text { font-size: 1.35rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .testimonials-grid { grid-template-columns: 1fr; gap: 24px; }
  .newsletter-card { padding: 40px 24px; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.25rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .generator-actions { grid-template-columns: 1fr; }
}