/* ============================================
   Betr Resume Builder — Main Styles
   ============================================ */

:root {
  --primary: #4F46E5;
  --primary-dark: #4338CA;
  --secondary: #7C3AED;
  --accent: #06B6D4;
  --bg: #F8FAFC;
  --text-dark: #0F172A;
  --text-muted: #64748B;
  --white: #FFFFFF;
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.4);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 20px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 40px rgba(79, 70, 229, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Plus Jakarta Sans', var(--font-sans);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 1rem;
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-dark);
}

/* Buttons */
.btn-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border: none;
  color: var(--white) !important;
  font-weight: 600;
  border-radius: var(--radius);
  padding: 0.625rem 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.btn-gradient:hover,
.btn-gradient:focus {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--white) !important;
  opacity: 0.95;
}

.btn-gradient:active {
  transform: translateY(0);
}

.btn-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  color: var(--text-dark) !important;
  font-weight: 500;
  border-radius: var(--radius);
  transition: background var(--transition), box-shadow var(--transition);
}

.btn-glass:hover,
.btn-glass:focus {
  background: var(--white);
  box-shadow: var(--shadow-md);
  color: var(--text-dark) !important;
}

.btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
  border-radius: var(--radius);
  font-weight: 600;
  transition: all var(--transition);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* Glass card */
.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
}

/* Navbar */
.navbar-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  padding: 0.75rem 0;
  transition: box-shadow var(--transition);
}

.navbar-glass.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar-brand .brand-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  border-radius: 10px;
  font-size: 1.1rem;
}

.navbar-brand .brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover,
.nav-link:focus {
  color: var(--primary) !important;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.25);
}

/* Hero */
.hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(79, 70, 229, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 60% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #EEF2FF 0%, var(--bg) 100%);
  z-index: 0;
}

.hero-section .container {
  z-index: 1;
}

.hero-badge {
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
}

.hero-title {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.15rem;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
}

.hero-stats strong {
  font-size: 1.5rem;
  font-family: var(--font-display);
  color: var(--primary);
}

.hero-stats span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Hero mockup */
.hero-mockup {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
}

.mockup-card {
  padding: 0;
  overflow: hidden;
}

.mockup-header {
  display: flex;
  gap: 6px;
  padding: 14px 16px;
  background: rgba(15, 23, 42, 0.04);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #E2E8F0;
}

.mockup-dot:first-child { background: #FCA5A5; }
.mockup-dot:nth-child(2) { background: #FDE68A; }
.mockup-dot:nth-child(3) { background: #86EFAC; }

.mockup-body {
  display: flex;
  gap: 20px;
  padding: 28px;
}

.mockup-avatar {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  flex-shrink: 0;
}

.mockup-lines {
  flex: 1;
}

.mockup-lines .line {
  height: 10px;
  border-radius: 6px;
  background: #E2E8F0;
  margin-bottom: 10px;
}

.line-title { width: 70%; height: 14px; background: #CBD5E1; }
.line-sub { width: 45%; }
.line-full { width: 100%; }
.line-half { width: 55%; }

.mockup-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  animation: float 4s ease-in-out infinite;
}

.mockup-float-1 {
  top: 10%;
  right: -5%;
  animation-delay: 0s;
}

.mockup-float-2 {
  bottom: 15%;
  left: -8%;
  animation-delay: 1.5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Sections */
.section-padding {
  padding: 5rem 0;
}

.section-label {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  max-width: 560px;
  font-size: 1.05rem;
}

/* Feature cards */
.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(124, 58, 237, 0.08));
  color: var(--primary);
  border-radius: 14px;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.feature-card p {
  color: var(--text-muted);
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Template preview cards */
.template-preview-card {
  text-align: center;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 23, 42, 0.06);
  transition: transform var(--transition), box-shadow var(--transition);
}

.template-preview-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.template-thumb {
  height: 200px;
  border-radius: var(--radius);
  border: 1px solid #E2E8F0;
}

.template-thumb-minimal {
  background: linear-gradient(180deg, #fff 30%, #F1F5F9 30%),
    repeating-linear-gradient(0deg, transparent, transparent 18px, #E2E8F0 18px, #E2E8F0 19px);
  background-size: 100% 100%;
}

.template-thumb-creative {
  background: linear-gradient(90deg, var(--primary) 28%, #fff 28%);
  position: relative;
}

.template-thumb-creative::after {
  content: '';
  position: absolute;
  top: 20%;
  left: 35%;
  right: 10%;
  bottom: 10%;
  background: repeating-linear-gradient(0deg, #E2E8F0, #E2E8F0 12px, transparent 12px, transparent 24px);
}

.template-thumb-corporate {
  background: #fff;
  border-top: 8px solid #1E293B;
  background-image: repeating-linear-gradient(0deg, transparent, transparent 22px, #E2E8F0 22px, #E2E8F0 23px);
  background-position: center 40px;
}

/* Testimonials */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  margin: 0;
}

.testimonial-card .stars {
  color: #FBBF24;
}

.testimonial-card p {
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

/* Pricing */
.pricing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  text-align: center;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.pricing-card-featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-lg);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 50px;
}

.price {
  margin: 1.5rem 0;
}

.price-amount {
  font-size: 2.75rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--text-dark);
}

.price-period {
  color: var(--text-muted);
  font-size: 1rem;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  text-align: left;
}

.pricing-features li {
  padding: 0.5rem 0;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features i {
  color: var(--primary);
  font-size: 1.1rem;
}

/* FAQ */
.accordion-faq .accordion-item {
  border: none;
  margin-bottom: 0.75rem;
  border-radius: var(--radius) !important;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.accordion-faq .accordion-button {
  font-weight: 600;
  font-family: var(--font-display);
  border-radius: var(--radius);
  box-shadow: none;
  background: var(--white);
  color: var(--text-dark);
}

.accordion-faq .accordion-button:not(.collapsed) {
  background: rgba(79, 70, 229, 0.06);
  color: var(--primary);
}

.accordion-faq .accordion-button:focus {
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

/* CTA */
.cta-section .cta-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.cta-card p {
  opacity: 0.9;
  font-size: 1.1rem;
}

/* Footer */
.site-footer {
  background: var(--text-dark);
  color: #94A3B8;
}

.site-footer .brand-text {
  -webkit-text-fill-color: var(--white);
  color: var(--white);
}

.site-footer .brand-icon {
  background: rgba(255, 255, 255, 0.15);
}

.footer-desc {
  font-size: 0.9rem;
  max-width: 280px;
}

.footer-heading {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a {
  color: #94A3B8;
  text-decoration: none;
  font-size: 0.9rem;
  display: block;
  padding: 0.35rem 0;
  transition: color var(--transition);
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--white);
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #94A3B8;
  font-size: 1.1rem;
  transition: background var(--transition), color var(--transition);
}

.social-links a:hover,
.social-links a:focus {
  background: var(--primary);
  color: var(--white);
}

.newsletter-form .form-control {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.newsletter-form .form-control::placeholder {
  color: #64748B;
}

.newsletter-form .form-control:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.3);
}

.footer-bottom {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Form focus states (accessibility) */
.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

/* Responsive */
@media (max-width: 991.98px) {
  .hero-mockup {
    max-width: 360px;
  }

  .mockup-float {
    display: none;
  }

  .section-padding {
    padding: 3.5rem 0;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2rem;
  }
}

/* Print — hide non-resume on builder */
@media print {
  body:not(.printing-resume) .navbar,
  body:not(.printing-resume) .builder-header,
  body:not(.printing-resume) .builder-form-panel {
    display: none !important;
  }
}
