/* style.css - Premium Design System */
:root {
  --primary: #1A3263;
  --bg-dark: #0B0F1A;
  --neon: #38BDF8;
  --accent: #A855F7;
  --glass: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --font-inter: 'Inter', sans-serif;
  --font-poppins: 'Poppins', sans-serif;
}

body {
  background: var(--bg-dark);
  color: white;
  font-family: var(--font-inter);
  margin: 0;
  overflow-x: hidden;
}

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

/* Glassmorphism */
.glass {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 1.5rem;
}

.glass-premium {
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.37);
}

/* Neon & Gradients */
.text-gradient {
  background: linear-gradient(to right, #fff, var(--neon), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bg-gradient-premium {
  background: linear-gradient(135deg, var(--primary), var(--neon));
}

.neon-glow {
  box-shadow: 0 0 15px rgba(56,189,248,0.4);
}
.neon-glow:hover {
  box-shadow: 0 0 25px rgba(56,189,248,0.7);
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in {
  animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
.animate-float { animation: float 3s ease-in-out infinite; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--neon); }

/* Dashboard Tabs */
.ai-tab { transition: all 0.3s cubic-bezier(0.4,0,0.2,1); }
.ai-tab.active {
  background: var(--neon);
  color: var(--bg-dark);
  box-shadow: 0 0 20px rgba(56,189,248,0.5);
}

/* Form Elements */
input, textarea {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  color: white;
  transition: all 0.3s;
}
input:focus, textarea:focus {
  border-color: var(--neon);
  box-shadow: 0 0 10px rgba(56,189,248,0.3);
  outline: none;
}
input::placeholder, textarea::placeholder { color: rgba(255,255,255,0.3); }

/* ─── Tools Lock Overlay ─────────────────────────────────────── */
#tools-lock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11,15,26,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: inherit;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  text-align: center;
}

/* ─── Reviews Carousel ───────────────────────────────────────── */
.reviews-carousel-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.reviews-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.review-card {
  flex: 0 0 calc(33.333% - 1rem);
  min-width: 300px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 1.5rem;
  padding: 2rem;
  transition: all 0.3s ease;
}

@media (max-width: 1024px) {
  .review-card { flex: 0 0 calc(50% - 0.75rem); }
}
@media (max-width: 640px) {
  .review-card { flex: 0 0 90%; }
}

.review-card:hover {
  border-color: rgba(56,189,248,0.4);
  box-shadow: 0 0 20px rgba(56,189,248,0.15);
  transform: translateY(-4px);
}

.review-stars { display: flex; gap: 4px; margin-bottom: 1rem; }
.review-stars i { color: #FBBF24; font-size: 0.8rem; }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}
.carousel-btn:hover {
  background: var(--neon);
  color: var(--bg-dark);
  box-shadow: 0 0 20px rgba(56,189,248,0.5);
}
.carousel-btn.prev { left: -1.5rem; }
.carousel-btn.next { right: -1.5rem; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--glass-border);
  cursor: pointer;
  transition: all 0.3s;
}
.carousel-dot.active {
  background: var(--neon);
  width: 24px;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(56,189,248,0.6);
}

/* Responsive Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* ─── Light Mode ───────────────────────────────────────────────── */
html.light {
  --bg-dark: #F8FAFC;
  --glass: rgba(0, 0, 0, 0.05);
  --glass-border: rgba(0, 0, 0, 0.1);
}

html.light body {
  background: var(--bg-dark);
  color: #1E293B;
}

html.light .text-gradient {
  background: linear-gradient(to right, #1E293B, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html.light .glass {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

html.light .glass-premium {
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.1);
}

html.light input,
html.light textarea {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: #1E293B;
}

html.light input:focus,
html.light textarea:focus {
  border-color: var(--primary);
}

html.light input::placeholder,
html.light textarea::placeholder {
  color: rgba(30, 41, 59, 0.4);
}

html.light .review-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

html.light .carousel-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #1E293B;
}

html.light .carousel-btn:hover {
  background: var(--primary);
  color: white;
}

html.light .carousel-dot {
  background: rgba(0, 0, 0, 0.2);
}

html.light #tools-lock-overlay {
  background: rgba(248, 250, 252, 0.9);
}

html.light ::-webkit-scrollbar-track {
  background: #F1F5F9;
}

html.light ::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
}
