/* ========================================
   Features Page Styles
   ======================================== */

/* --- Features Hero --- */
.features-hero {
  padding: 80px 0 64px;
  background: linear-gradient(135deg, var(--white) 0%, var(--orange-light) 100%);
}

.features-hero h1 {
  margin-bottom: 20px;
}

.features-hero__subtitle {
  font-size: 1.2rem;
  color: var(--control-grey);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- Feature Rows --- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.feature-row--reverse {
  direction: rtl;
}

.feature-row--reverse > * {
  direction: ltr;
}

.feature-row__content p {
  font-size: 1.065rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

.feature-row__content h2 {
  margin-bottom: 16px;
}

/* Feature check list */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark);
}

.feature-list__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--orange);
}

/* --- Mockup Containers --- */
.feature-mockup {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: var(--light-grey);
  border-bottom: 1px solid var(--border);
}

.mockup-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.mockup-dot--red { background: #ff5f57; }
.mockup-dot--yellow { background: #ffbd2e; }
.mockup-dot--green { background: #28c840; }

.mockup-body--padded {
  padding: 24px;
}

/* --- Video Mockup --- */
.mockup-video-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 12px;
  padding: 20px;
}

.mockup-video-tile {
  background: var(--bg-grey);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px 16px;
  color: var(--control-grey);
}

.mockup-video-tile svg {
  width: 40px;
  height: 40px;
}

.mockup-video-tile span {
  font-size: 0.8rem;
  font-weight: 600;
}

.mockup-video-tile--large {
  padding: 48px 16px;
}

.mockup-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px;
  background: var(--black);
}

.mockup-control-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--control-grey);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup-control-btn svg {
  width: 20px;
  height: 20px;
}

.mockup-control-btn--end {
  background: #e53935;
}

/* --- Event Mockup --- */
.mockup-event-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
}

.mockup-event-badge {
  display: inline-block;
  background: var(--orange-light);
  color: var(--orange);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.mockup-event-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.mockup-event-meta {
  font-size: 0.85rem;
  color: var(--control-grey);
  margin-bottom: 20px;
}

.mockup-event-stats {
  display: flex;
  gap: 24px;
  font-size: 0.85rem;
  color: var(--control-grey);
  margin-bottom: 16px;
}

.mockup-event-stats strong {
  color: var(--orange);
  font-size: 1.1rem;
}

.mockup-event-bar {
  width: 100%;
  height: 8px;
  background: var(--light-grey);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.mockup-event-bar-fill {
  height: 100%;
  background: var(--orange);
  border-radius: 4px;
  transition: width 1s ease;
}

.mockup-event-capacity {
  font-size: 0.8rem;
  color: var(--control-grey);
}

/* --- Candidate Table Mockup --- */
.mockup-table {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.mockup-table-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  padding: 12px 16px;
  background: var(--light-grey);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--control-grey);
}

.mockup-table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  padding: 14px 16px;
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
  align-items: center;
}

.mockup-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  width: fit-content;
}

.mockup-badge--green {
  background: #e8f5e9;
  color: #2e7d32;
}

.mockup-badge--yellow {
  background: #fff8e1;
  color: #f57f17;
}

/* --- Email Mockup --- */
.mockup-email {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.mockup-email-from {
  padding: 12px 16px;
  font-size: 0.82rem;
  color: var(--control-grey);
  border-bottom: 1px solid var(--border);
}

.mockup-email-subject {
  padding: 12px 16px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--black);
  border-bottom: 1px solid var(--border);
}

.mockup-email-body {
  padding: 20px 16px;
}

.mockup-email-body p {
  font-size: 0.9rem;
  color: var(--control-grey);
  margin-bottom: 12px;
  line-height: 1.6;
}

.mockup-email-btn {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 8px;
}

/* --- Analytics Chart Mockup --- */
.mockup-chart-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.mockup-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  height: 180px;
}

.mockup-bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  gap: 10px;
}

.mockup-bar {
  width: 100%;
  background: linear-gradient(180deg, var(--orange) 0%, #f6c9a2 100%);
  border-radius: 6px 6px 0 0;
  min-height: 20px;
}

.mockup-bar-group span {
  font-size: 0.75rem;
  color: var(--control-grey);
  text-align: center;
  line-height: 1.4;
}

.mockup-bar-group strong {
  color: var(--orange);
}

/* --- Animations --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .feature-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature-row--reverse {
    direction: ltr;
  }
}

@media (max-width: 768px) {
  .features-hero {
    padding: 48px 0;
  }

  .mockup-video-grid {
    grid-template-columns: 1fr;
  }

  .mockup-table-header,
  .mockup-table-row {
    grid-template-columns: 1.5fr 1fr;
  }

  .mockup-table-header span:last-child,
  .mockup-table-row span:last-child {
    display: none;
  }
}
