/* AI Seedanc Free Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Premium Silicon Valley Dark Theme Variables */
  --bg-main: #050816;
  --bg-surface: #0b1120;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-sidebar: rgba(11, 17, 32, 0.7);
  --text-main: #f3f4f6;
  --text-muted: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: #7C3AED;
  --accent-primary: #7C3AED;
  --accent-secondary: #4F46E5;
  --accent-purple: #A855F7;
  --accent-pink: #ec4899;
  --accent-cyan: #06b6d4;
  --accent-success: #10b981;
  --accent-warning: #f59e0b;
  --accent-danger: #ef4444;
  --glow-color: rgba(124, 58, 237, 0.2);
  
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --card-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.8);
  --glass-blur: blur(16px);
  --transition-speed: 0.3s;
}

/* Light Theme Variables */
body.light-theme {
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.7);
  --bg-sidebar: rgba(255, 255, 255, 0.85);
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: rgba(15, 23, 42, 0.08);
  --border-focus: #7C3AED;
  --glow-color: rgba(124, 58, 237, 0.06);
  --card-shadow: 0 15px 30px rgba(15, 23, 42, 0.04);
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  transition: background-color var(--transition-speed), color var(--transition-speed);
  overflow-x: hidden;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* Gradient Mesh Background */
.bg-mesh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  background: radial-gradient(circle at 10% 20%, rgba(124, 58, 237, 0.08) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(79, 70, 229, 0.08) 0%, transparent 45%),
              radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.05) 0%, transparent 55%);
  pointer-events: none;
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--card-shadow);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-card:hover {
  border-color: rgba(168, 85, 247, 0.25);
  box-shadow: 0 25px 50px -12px rgba(124, 58, 237, 0.2);
  transform: translateY(-4px);
}

/* Buttons Styling */
.btn-gradient {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  color: #ffffff !important;
  border: none;
  font-family: var(--font-title);
  font-weight: 600;
  border-radius: 12px;
  padding: 0.8rem 1.8rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}
.btn-gradient:hover {
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.5), 0 0 0 2px rgba(168, 85, 247, 0.3);
  transform: translateY(-2px);
  opacity: 0.95;
}
.btn-gradient:active {
  transform: translateY(0);
}

.btn-outline-glass {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: 12px;
  padding: 0.8rem 1.8rem;
  font-weight: 600;
  font-family: var(--font-title);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}
.btn-outline-glass:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* Text Gradients */
.text-gradient {
  background: linear-gradient(135deg, #ffffff 30%, #a855f7 70%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-accent-gradient {
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 60%, #4f46e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Layout Framework */
.dashboard-container {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* Sidebar styling */
.sidebar {
  width: 270px;
  background-color: var(--bg-sidebar);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: transform var(--transition-speed);
}

.sidebar-logo {
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.35rem;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-menu {
  list-style: none;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex-grow: 1;
  overflow-y: auto;
}

.sidebar-menu-item a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1.25rem;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.sidebar-menu-item.active a,
.sidebar-menu-item a:hover {
  color: var(--text-main);
  background: rgba(124, 58, 237, 0.08);
  box-shadow: inset 4px 0 0 var(--accent-primary);
}

.sidebar-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
}

/* Main Panel Wrapper */
.main-wrapper {
  flex-grow: 1;
  margin-left: 270px;
  padding: 2.5rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin-left var(--transition-speed);
}

.top-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Statistics widgets */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.metric-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
}
.metric-card::after {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.metric-val {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0.5rem 0;
  font-family: var(--font-title);
  background: linear-gradient(to right, #ffffff, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Form elements */
.form-group {
  margin-bottom: 1.5rem;
}
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-control, .form-select {
  width: 100%;
  padding: 0.85rem 1.2rem;
  background: rgba(5, 8, 22, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-main);
  font-family: inherit;
  transition: all 0.25s ease;
}
body.light-theme .form-control, body.light-theme .form-select {
  background: #ffffff;
}
.form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--accent-purple);
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.2);
  background: rgba(5, 8, 22, 0.6);
}

/* Prompt Enhancement Loader */
.prompt-enhance-btn {
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.2);
  color: var(--accent-purple);
  padding: 0.35rem 0.8rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.prompt-enhance-btn:hover {
  background: rgba(168, 85, 247, 0.2);
  transform: translateY(-1px);
}

/* Badges systems */
.credit-badge {
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
  color: var(--accent-purple);
  padding: 0.5rem 1rem;
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.badge-info {
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
  color: var(--accent-cyan);
}

.badge-success {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--accent-success);
}

/* Landing Page Elements */
.landing-hero {
  text-align: left;
  padding: 7rem 0 5rem 0;
  position: relative;
}
.landing-hero::before {
  content: '';
  position: absolute;
  top: -50px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-title {
  font-size: 3.8rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero-features-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  max-width: 450px;
  margin: 2rem 0;
}
.hero-feature-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}
.hero-feature-item i {
  color: var(--accent-success);
  font-size: 1rem;
}

/* Floating Elements Animations */
@keyframes floatElement {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(0.5deg); }
}
.float-element {
  animation: floatElement 5s ease-in-out infinite;
}

/* Play button glow pulse */
.play-btn-glow {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-purple));
  color: white;
  font-size: 1.8rem;
  border: none;
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}
.play-btn-glow:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 35px rgba(124, 58, 237, 0.6);
}
.play-btn-glow::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 50%;
  border: 2px solid var(--accent-purple);
  animation: pulsePlay 2s infinite;
}
@keyframes pulsePlay {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Video Lightbox Player */
.video-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 8, 22, 0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.video-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}
.video-lightbox-content {
  position: relative;
  width: 90%;
  max-width: 800px;
  aspect-ratio: 16/9;
  background: black;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(124, 58, 237, 0.3);
}

/* Prompt templates badge grids */
.prompt-templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.template-badge-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.template-badge-card:hover {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.3);
  color: var(--text-main);
  transform: translateY(-1px);
}

/* Video card grid layout styling */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.video-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  transition: all 0.3s ease;
}
.video-card:hover {
  border-color: rgba(124, 58, 237, 0.2);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transform: translateY(-2px);
}
.video-card-preview {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
}
.video-card-preview video, .video-card-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(5,8,22,0.9), rgba(5,8,22,0));
  padding: 1rem;
}

/* Skeleton loaders */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.02) 25%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.02) 75%);
  background-size: 200% 100%;
  animation: loadingSkeleton 1.5s infinite;
}
@keyframes loadingSkeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.theme-switch {
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--border-color);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  transition: all 0.2s;
}
.theme-switch:hover {
  background: rgba(124, 58, 237, 0.1);
  color: var(--accent-purple);
}

/* Responsive Overrides */
@media(max-width: 991px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.show {
    transform: translateX(0);
  }
  .main-wrapper {
    margin-left: 0;
    padding: 1.5rem;
  }
  .mobile-nav-toggle {
    display: block;
  }
}

@media(max-width: 768px) {
  .hero-title {
    font-size: 2.8rem;
  }
  .landing-hero {
    padding: 4rem 0;
    text-align: center;
  }
  .hero-features-list {
    margin: 1.5rem auto;
  }
}

@media(max-width: 414px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .top-navbar {
    padding: 0.25rem 0;
  }
  .metrics-grid {
    grid-template-columns: 1fr;
  }
}

@media(max-width: 320px) {
  .top-navbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .top-navbar > div {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }
}
