/* =====================================================
   ZEFFY CLONE — SHARED COMPONENTS
   ===================================================== */

/* ══════════════════════════════════════
   BUTTONS
══════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 11px 22px;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  line-height: 1;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast),
              color var(--transition-fast), box-shadow var(--transition-fast),
              transform var(--transition-fast);
  white-space: nowrap;
  user-select: none;
}

.btn:active {
  transform: translateY(1px);
}

/* Primary — Purple */
.btn-primary {
  background: var(--purple-600);
  color: var(--white);
  border-color: var(--purple-600);
  box-shadow: 0 2px 8px rgba(93,95,239,0.25);
}
.btn-primary:hover {
  background: var(--purple-700);
  border-color: var(--purple-700);
  box-shadow: 0 4px 16px rgba(93,95,239,0.35);
  transform: translateY(-1px);
}

/* Secondary — Ghost/Outline */
.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
}

/* Outline Purple */
.btn-outline {
  background: transparent;
  color: var(--purple-600);
  border-color: var(--purple-600);
}
.btn-outline:hover {
  background: var(--purple-50);
}

/* Ghost — White text for dark backgrounds */
.btn-ghost-white {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border-color: transparent;
  backdrop-filter: blur(8px);
}
.btn-ghost-white:hover {
  background: rgba(255,255,255,0.22);
}

/* CTA Large */
.btn-lg {
  padding: 14px 28px;
  font-size: var(--text-base);
  border-radius: var(--radius-md);
}

/* CTA Small */
.btn-sm {
  padding: 8px 16px;
  font-size: var(--text-xs);
}

/* Google OAuth Button */
.btn-google {
  background: var(--white);
  color: var(--slate-800);
  border: 1.5px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  font-weight: var(--weight-medium);
  padding: 12px 22px;
  width: 100%;
  justify-content: center;
}
.btn-google:hover {
  background: var(--slate-50);
  box-shadow: var(--shadow-md);
}
.btn-google .google-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ══════════════════════════════════════
   BADGES
══════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-purple {
  background: var(--purple-100);
  color: var(--purple-700);
}
.badge-green {
  background: var(--green-100);
  color: #16A34A;
}
.badge-white {
  background: rgba(255,255,255,0.18);
  color: var(--white);
}

/* ══════════════════════════════════════
   CARDS
══════════════════════════════════════ */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.card-body {
  padding: var(--space-6);
}

/* ══════════════════════════════════════
   FORM ELEMENTS
══════════════════════════════════════ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--slate-700);
}

.form-input {
  width: 100%;
  padding: 11px 14px;
  font-size: var(--text-base);
  font-family: var(--font-sans);
  color: var(--slate-900);
  background: var(--white);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  appearance: none;
}
.form-input::placeholder {
  color: var(--slate-400);
}
.form-input:focus {
  border-color: var(--purple-600);
  box-shadow: 0 0 0 3px rgba(93,95,239,0.12);
}
.form-input:hover:not(:focus) {
  border-color: var(--slate-300);
}
.form-input.error {
  border-color: #EF4444;
}

/* Password wrapper */
.input-password-wrapper {
  position: relative;
}
.input-password-wrapper .form-input {
  padding-right: 44px;
}
.btn-password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--slate-400);
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
}
.btn-password-toggle:hover { color: var(--slate-700); }

/* Checkbox */
.form-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--slate-600);
  line-height: var(--leading-relaxed);
}
.form-checkbox-group input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--purple-600);
  cursor: pointer;
}

/* ── Divider with text ── */
.form-divider {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--slate-400);
  font-size: var(--text-sm);
}
.form-divider::before,
.form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--slate-200);
}

/* ══════════════════════════════════════
   SECTION LAYOUT
══════════════════════════════════════ */
.section {
  padding: var(--space-20) 0;
}
.section-sm {
  padding: var(--space-12) 0;
}
.section-lg {
  padding: var(--space-32) 0;
}
.section-dark {
  background: var(--navy-900);
  color: var(--white);
}
.section-subtle {
  background: var(--slate-50);
}
.section-purple {
  background: var(--purple-600);
  color: var(--white);
}

/* Section label + heading + body pattern */
.section-header {
  margin-bottom: var(--space-12);
}
.section-header.centered {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-12);
}
.section-label {
  display: inline-block;
  margin-bottom: var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple-600);
}
.section-dark .section-label { color: #a8a9f9; }
.section-title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  color: var(--slate-900);
  margin-bottom: var(--space-4);
}
.section-dark .section-title { color: var(--white); }
.section-subtitle {
  font-size: var(--text-lg);
  color: var(--slate-600);
  line-height: var(--leading-relaxed);
}
.section-dark .section-subtitle { color: rgba(255,255,255,0.72); }

/* ══════════════════════════════════════
   GRID HELPERS
══════════════════════════════════════ */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: var(--space-12) 0; }
  .section-lg { padding: var(--space-20) 0; }
  .section-title { font-size: var(--text-3xl); }
}

/* ══════════════════════════════════════
   TOOLTIP
══════════════════════════════════════ */
.tooltip-wrapper {
  position: relative;
  display: inline-flex;
}
.tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--slate-900);
  color: var(--white);
  font-size: var(--text-xs);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-fast);
  z-index: 100;
}
.tooltip-wrapper:hover .tooltip { opacity: 1; }

/* ══════════════════════════════════════
   MODAL
══════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 3, 61, 0.55);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  width: 100%;
  max-width: 480px;
  transform: translateY(20px) scale(0.97);
  transition: transform var(--transition-base);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}
.modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-500);
  transition: background var(--transition-fast), color var(--transition-fast);
}
.modal-close:hover {
  background: var(--slate-100);
  color: var(--slate-800);
}

/* ══════════════════════════════════════
   ACCORDION
══════════════════════════════════════ */
.accordion-item {
  border-bottom: 1px solid var(--slate-200);
}
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) 0;
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--slate-900);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition-fast);
}
.accordion-trigger:hover { color: var(--purple-600); }
.accordion-trigger svg {
  flex-shrink: 0;
  transition: transform var(--transition-base);
  color: var(--slate-400);
}
.accordion-item.open .accordion-trigger svg {
  transform: rotate(180deg);
  color: var(--purple-600);
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow) ease;
}
.accordion-item.open .accordion-content {
  max-height: 500px;
}
.accordion-body {
  padding: 0 0 var(--space-5);
  color: var(--slate-600);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
}

/* ══════════════════════════════════════
   STAT COUNTER
══════════════════════════════════════ */
.stat-card {
  text-align: center;
  padding: var(--space-6);
}
.stat-number {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: var(--weight-bold);
  color: var(--purple-600);
  line-height: 1;
  margin-bottom: var(--space-2);
}
.stat-label {
  font-size: var(--text-base);
  color: var(--slate-600);
}

/* ══════════════════════════════════════
   FEATURE SECTIONS — solutions pages
══════════════════════════════════════ */
.feature-section {
  padding: var(--space-20) 0;
}
.feature-section.bg-subtle,
.bg-subtle {
  background: var(--slate-50);
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }

@media (max-width: 768px) {
  .feature-row { grid-template-columns: 1fr; gap: var(--space-10); }
  .feature-row.reverse { direction: ltr; }
}

.feature-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.feature-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.feature-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple-600);
}
.feature-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  color: var(--slate-900);
  margin: 0;
}
.feature-desc {
  font-size: var(--text-base);
  color: var(--slate-600);
  line-height: var(--leading-relaxed);
}

/* Feature checklist */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.feature-list-item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}
.feature-list-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--purple-100);
  color: var(--purple-600);
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.feature-list-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.feature-list-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--slate-900);
}
.feature-list-desc {
  font-size: var(--text-sm);
  color: var(--slate-500);
  line-height: var(--leading-relaxed);
}

/* ══════════════════════════════════════
   TESTIMONIALS — solutions pages
══════════════════════════════════════ */
.trust-section {
  padding: var(--space-20) 0;
  background: var(--white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-12);
}
@media (max-width: 1024px) {
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

.testimonial-card {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.testimonial-stars {
  color: #f59e0b;
  font-size: 14px;
  letter-spacing: 2px;
}
.testimonial-quote {
  font-size: var(--text-sm);
  color: var(--slate-700);
  line-height: var(--leading-relaxed);
  flex: 1;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--slate-200);
}
.testimonial-avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-500), var(--purple-700));
  color: var(--white);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.testimonial-name {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--slate-900);
}
.testimonial-org {
  font-size: var(--text-xs);
  color: var(--slate-500);
}

/* ══════════════════════════════════════
   CTA SECTION — solutions pages
══════════════════════════════════════ */
.cta-section {
  background: linear-gradient(135deg, #3730a3 0%, var(--purple-600) 50%, #6d28d9 100%);
  padding: var(--space-20) 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(255,255,255,0.07) 0%, transparent 60%);
  pointer-events: none;
}
.cta-inner {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: var(--weight-extrabold);
  color: var(--white);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-4);
  letter-spacing: -0.025em;
}
.cta-subtitle {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.78);
  margin-bottom: var(--space-8);
  line-height: var(--leading-relaxed);
}
.cta-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.cta-fine {
  margin-top: var(--space-5);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
}



/* Social Login Buttons (Google & Apple) */
.social-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
  margin-bottom: 24px;
}

.social-btngoogle, .social-btnapple, .social-btnx, .social-btnfacebook, .social-btntwitch, .btn-google, .btn-x, .btn-facebook, .btn-twitch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 12px 24px;
  border-radius: 99px;
  font-size: var(--text-base, 16px);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #e2e8f0;
  background-color: #ffffff;
  color: #1e293b;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  font-family: inherit;
}

.social-btngoogle:hover, .social-btnapple:hover, .social-btnx:hover, .social-btnfacebook:hover, .social-btntwitch:hover, .btn-google:hover, .btn-x:hover, .btn-facebook:hover, .btn-twitch:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.social-btngoogle:active, .social-btnapple:active, .social-btnx:active, .social-btnfacebook:active, .social-btntwitch:active, .btn-google:active, .btn-x:active, .btn-facebook:active, .btn-twitch:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.social-btngoogle i, .social-btnapple i, .social-btnx i, .social-btnfacebook i, .social-btntwitch i, .btn-google .google-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-btngoogle i.fab.fa-google {
  color: #ea4335;
  font-size: 20px;
}

.social-btnapple i.fab.fa-apple {
  color: #000000;
  font-size: 22px;
  margin-bottom: 2px;
}
