/* ===== ClassSlides Landing Page ===== */
/* This file ONLY styles the landing/login page. */
/* Dashboard, generate, admin, account pages use style.css unchanged. */

/* --- Landing Color Overrides --- */
.landing-page {
  --green: #52B700;
  --green-hover: #69C130;
  --blue: #00AEEF;
  --teal: #0BC1B6;
  --yellow: #FFC523;
  --purple: #7A67D7;
  --orange: #F39317;
  --landing-text: #333333;
  --landing-text-secondary: #666666;
  --landing-bg: #ffffff;
  background: var(--landing-bg);
}

/* --- Landing Nav --- */
.landing-page .navbar {
  background: #fff;
  border-bottom: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 14px 0;
}
.landing-page .nav-brand {
  font-size: 22px;
  font-weight: 800;
  color: var(--landing-text);
  letter-spacing: -0.3px;
}
.landing-page .nav-brand .brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--green);
  border-radius: 8px;
  margin-right: 8px;
}
.landing-page .nav-brand .brand-icon svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

/* --- Hero --- */
.landing-hero {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfeff 50%, #eff6ff 100%);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.landing-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -120px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(11,193,182,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.landing-hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -100px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(82,183,0,0.06) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-content h1 {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--landing-text);
  margin-bottom: 20px;
}
.hero-content h1 .highlight {
  background: linear-gradient(135deg, var(--green) 0%, var(--teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-content p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--landing-text-secondary);
  margin-bottom: 28px;
  max-width: 520px;
}
.hero-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #fff;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--landing-text-secondary);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.hero-badge svg {
  width: 16px;
  height: 16px;
}
.hero-badge .badge-green { color: var(--green); }
.hero-badge .badge-blue { color: var(--blue); }
.hero-badge .badge-purple { color: var(--purple); }
.hero-badge .badge-teal { color: var(--teal); }
.hero-badge .badge-orange { color: var(--orange); }
.hero-badge .badge-gslides { width: 16px; height: 16px; }

/* --- Landing Auth Card --- */
.landing-auth {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.04);
}
.landing-auth .auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 4px;
}
.landing-auth .auth-tabs button {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--landing-text-secondary);
  border-radius: 8px;
  transition: all 0.2s;
  font-family: var(--font);
}
.landing-auth .auth-tabs button.active {
  background: #fff;
  color: var(--green);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.landing-auth .btn-primary {
  background: var(--green);
  border-radius: 10px;
  font-size: 15px;
  padding: 14px 32px;
}
.landing-auth .btn-primary:hover {
  background: var(--green-hover);
}
.landing-auth input:focus, .landing-auth select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(82,183,0,0.12);
}

/* --- Google Auth Button --- */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--landing-text-secondary);
  font-size: 13px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #3c4043;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  font-family: var(--font);
}
.btn-google:hover {
  background: #f8f9fa;
  border-color: #c6c6c6;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  text-decoration: none;
}

/* --- Features Section --- */
.landing-features {
  padding: 80px 0;
  background: #fff;
}
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--landing-text);
  margin-bottom: 12px;
}
.section-header p {
  font-size: 17px;
  color: var(--landing-text-secondary);
  max-width: 560px;
  margin: 0 auto;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: #fff;
  border: 1px solid #e8ecf1;
  border-radius: 14px;
  padding: 28px;
  text-align: center;
  transition: all 0.2s ease;
}
.feature-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  border-color: transparent;
  transform: translateY(-2px);
}
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-icon svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}
.feature-icon.green { background: linear-gradient(135deg, #52B700, #69C130); }
.feature-icon.blue { background: linear-gradient(135deg, #00AEEF, #10BEFD); }
.feature-icon.teal { background: linear-gradient(135deg, #0BC1B6, #0FD0C4); }
.feature-icon.purple { background: linear-gradient(135deg, #7A67D7, #8A76F0); }
.feature-icon.orange { background: linear-gradient(135deg, #F39317, #FFB049); }
.feature-icon.yellow { background: linear-gradient(135deg, #EABC00, #FFC523); }
.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--landing-text);
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px;
  color: var(--landing-text-secondary);
  line-height: 1.6;
}

/* --- Newsletter Highlight --- */
.newsletter-highlight {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 32px;
  background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 50%, #f0fdf4 100%);
  border: 1px solid #fcd34d;
  border-radius: 14px;
  transition: all 0.2s ease;
}
.newsletter-highlight:hover {
  box-shadow: 0 8px 24px rgba(243,147,23,0.1);
  border-color: var(--orange);
}
.newsletter-highlight-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange), #FFB049);
  display: flex;
  align-items: center;
  justify-content: center;
}
.newsletter-highlight-icon svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}
.newsletter-highlight-text {
  flex: 1;
}
.newsletter-highlight-text h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--landing-text);
  margin-bottom: 6px;
}
.newsletter-highlight-text p {
  font-size: 14px;
  color: var(--landing-text-secondary);
  line-height: 1.6;
  margin: 0;
}
.newsletter-highlight-themes {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}
.nh-tag-wrap {
  position: relative;
}
.nh-tag {
  display: inline-block;
  padding: 4px 12px;
  background: #fff;
  border: 1px solid #e8ecf1;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--landing-text-secondary);
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
}
.nh-tag-wrap:hover .nh-tag {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
  transform: scale(1.05);
}
.nh-popover {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #fff;
  border: 1px solid #e8ecf1;
  border-radius: 12px;
  padding: 14px 16px;
  min-width: 200px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 50;
}
.nh-popover::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: #fff;
}
.nh-popover::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: #e8ecf1;
}
.nh-tag-wrap:hover .nh-popover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nh-popover-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--landing-text-secondary);
  margin-bottom: 10px;
}
.nh-popover-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.nh-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  background: #f8fafb;
  border: 1px solid #edf0f3;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 600;
  color: var(--landing-text);
  white-space: nowrap;
  transition: all 0.15s;
}
.nh-chip::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--chip);
  flex-shrink: 0;
}
.nh-chip:hover {
  background: #fff;
  border-color: var(--chip);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--chip) 15%, transparent);
}
.nh-popover-note {
  margin-top: 8px;
  font-size: 10px;
  color: var(--landing-text-secondary);
  font-style: italic;
}

/* --- How It Works --- */
.landing-how {
  padding: 80px 0;
  background: linear-gradient(180deg, #f8fafb 0%, #f1f5f9 100%);
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.step-card {
  text-align: center;
  position: relative;
}
.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.step-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--landing-text);
  margin-bottom: 8px;
}
.step-card p {
  font-size: 14px;
  color: var(--landing-text-secondary);
  line-height: 1.6;
}

/* --- Slide Types Banner --- */
.landing-types {
  padding: 80px 0;
  background: #fff;
}
.types-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 40px;
}
.type-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #f8fafb;
  border: 1px solid #e8ecf1;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--landing-text);
  transition: all 0.15s;
}
.type-pill:hover {
  border-color: var(--green);
  background: #f0fdf4;
}
.type-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.type-dot.green { background: var(--green); }
.type-dot.blue { background: var(--blue); }
.type-dot.teal { background: var(--teal); }
.type-dot.purple { background: var(--purple); }
.type-dot.orange { background: var(--orange); }
.type-dot.yellow { background: var(--yellow); }

/* --- CTA Banner --- */
.landing-cta {
  padding: 60px 0;
  background: linear-gradient(135deg, #052e16 0%, #064e3b 50%, #0d3b66 100%);
  text-align: center;
  color: #fff;
}
.landing-cta h2 {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 12px;
}
.landing-cta p {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 24px;
}
.landing-cta .cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  font-family: var(--font);
}
.landing-cta .cta-btn:hover {
  background: var(--green-hover);
  transform: translateY(-1px);
  text-decoration: none;
}

/* --- Legal Pages --- */
.legal-content {
  padding: 60px 0 80px;
  background: #fff;
}
.legal-content h1 {
  font-size: 36px;
  font-weight: 800;
  color: var(--landing-text);
  margin-bottom: 8px;
}
.legal-updated {
  font-size: 14px;
  color: var(--landing-text-secondary);
  margin-bottom: 32px;
}
.legal-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--landing-text);
  margin-top: 32px;
  margin-bottom: 12px;
}
.legal-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--landing-text);
  margin-top: 20px;
  margin-bottom: 8px;
}
.legal-content p, .legal-content li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--landing-text-secondary);
  margin-bottom: 12px;
}
.legal-content ul, .legal-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}
.legal-content li {
  margin-bottom: 6px;
}
.legal-content a:not(.btn) {
  color: var(--green);
  text-decoration: underline;
}

/* --- Landing Footer --- */
.landing-footer {
  padding: 40px 0;
  background: #f8fafb;
  border-top: 1px solid #e8ecf1;
  text-align: center;
  color: var(--landing-text-secondary);
  font-size: 14px;
}
.landing-footer .brand {
  font-weight: 700;
  color: var(--landing-text);
}
.footer-links {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  gap: 20px;
}
.footer-links a {
  color: var(--landing-text-secondary);
  text-decoration: none;
  font-size: 13px;
}
.footer-links a:hover {
  color: var(--green);
  text-decoration: underline;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-content { text-align: center; }
  .hero-content h1 { font-size: 32px; }
  .hero-content p { margin: 0 auto 24px; }
  .hero-badges { justify-content: center; }
  .landing-auth { max-width: 420px; margin: 0 auto; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .types-grid { grid-template-columns: 1fr 1fr; }
  .newsletter-highlight { flex-wrap: wrap; }
  .newsletter-highlight-themes { flex-direction: row; flex-wrap: wrap; }
  .nh-popover { left: auto; right: 0; transform: translateX(0) translateY(8px); }
  .nh-tag-wrap:hover .nh-popover { transform: translateX(0) translateY(0); }
  .nh-popover::after, .nh-popover::before { left: auto; right: 20px; transform: none; }
}
@media (max-width: 600px) {
  .hero-content h1 { font-size: 28px; }
  .features-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .types-grid { grid-template-columns: 1fr; }
  .landing-hero { padding: 48px 0 40px; }
  .newsletter-highlight { flex-direction: column; text-align: center; padding: 24px; }
  .newsletter-highlight-themes { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .nh-popover { position: fixed; bottom: auto; top: 50%; left: 50% !important; right: auto !important; transform: translate(-50%, -50%) scale(0.95) !important; min-width: 260px; }
  .nh-tag-wrap:hover .nh-popover { transform: translate(-50%, -50%) scale(1) !important; }
  .nh-popover::after, .nh-popover::before { display: none; }
}
