/* ===========================================
   POMODORO TIMER FOCUSFLIGHT - Website Styles
   Exact App Match Design System
   =========================================== */

:root {
  /* Primary Colors - Exact match from app theme.ts */
  --primary: #4a90d9;
  --primary-light: #7ab3e8;
  --primary-dark: #2e6eb3;
  --primary-pale: #e6f4fe;

  /* Backgrounds */
  --bg-main: #ffffff;
  --bg-secondary: #f5f9fc;
  --bg-card: #ffffff;

  /* Text - Exact match */
  --text-primary: #1a2b3c;
  --text-secondary: #5a6b7c;
  --text-muted: #8a9bac;
  --text-inverse: #ffffff;

  /* State Colors */
  --state-focus: #4a90d9;
  --state-break: #5fcf80;
  --state-long-break: #9b7ede;
  --state-success: #5fcf80;

  /* UI */
  --border: #e8eef4;
  --divider: #edf2f7;
  --timer-ring: #e8eef4;
  --shadow: rgba(74, 144, 217, 0.15);

  /* Timer Dimensions - Match app */
  --timer-size: 280px;
  --timer-stroke: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto,
    sans-serif;
  color: var(--text-primary);
  background: var(--bg-main);
  line-height: 1.4;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ HEADER - Match App ============ */
header {
  background: var(--bg-main);
  padding: 16px 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

/* ============ HERO - App-Like Timer Section ============ */
.hero {
  background: var(--bg-main);
  padding: 40px 0 60px;
  text-align: center;
}

.hero-content {
  max-width: 400px;
  margin: 0 auto;
}

/* Mode Label - Exact match */
.mode-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(74, 144, 217, 0.1);
  padding: 8px 24px;
  border-radius: 9999px;
  margin-bottom: 16px;
}

.mode-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.mode-label-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
}

/* Timer Circle - SVG Progress Ring */
.timer-container {
  width: var(--timer-size);
  height: var(--timer-size);
  position: relative;
  margin: 24px auto;
}

.timer-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.timer-svg .timer-ring-bg {
  fill: none;
  stroke: var(--timer-ring);
  stroke-width: 12;
}

.timer-svg .timer-ring-progress {
  fill: none;
  stroke: var(--primary);
  stroke-width: 12;
  stroke-linecap: round;
  transition:
    stroke-dashoffset 1s linear,
    stroke 0.3s ease;
}

.timer-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.timer-display {
  font-size: 72px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -2px;
  line-height: 1;
}

/* Session Dots - Like app */
.session-dots {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.session-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.session-dot.active {
  background: var(--primary);
}

/* Controls - Exact match */
.timer-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
}

/* Timer Settings */
.timer-settings {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 24px;
}

.setting-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.setting-group label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.setting-group select {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  min-width: 100px;
}

.setting-group select:focus {
  outline: none;
  border-color: var(--primary);
}

.icon-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--bg-secondary);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px var(--shadow);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.icon-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 8px var(--shadow);
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: var(--text-inverse);
  padding: 16px 48px;
  border-radius: 9999px;
  border: none;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 8px var(--shadow);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--shadow);
}

.primary-btn svg {
  width: 24px;
  height: 24px;
}

/* Stats Card - Exact match */
.stats-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  padding: 24px 32px;
  border-radius: 24px;
  border: 1px solid var(--border);
  margin-top: 40px;
  box-shadow: 0 2px 4px var(--shadow);
}

.stat-item {
  flex: 1;
  text-align: center;
}

.stat-icon {
  margin-bottom: 4px;
}

.stat-icon svg {
  width: 24px;
  height: 24px;
}

.stat-icon.success svg {
  fill: var(--state-success);
}

.stat-icon.time svg {
  fill: var(--primary);
}

.stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 50px;
  background: var(--divider);
  margin: 0 16px;
}

/* ============ STORE BADGES ============ */
.store-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--text-primary);
  color: white;
  padding: 10px 20px;
  border-radius: 12px;
  text-decoration: none;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.store-badge svg {
  width: 24px;
  height: 24px;
}

.store-badge .badge-text {
  text-align: left;
}

.store-badge .badge-text small {
  font-size: 10px;
  opacity: 0.8;
  display: block;
}

.store-badge .badge-text span {
  font-size: 16px;
  font-weight: 600;
}

/* ============ FEATURES - App Style Cards ============ */
.features {
  padding: 64px 0;
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.section-header p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-card);
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--border);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 32px var(--shadow);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 24px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

/* ============ SCREENSHOTS ============ */
.screenshots {
  padding: 64px 0;
  background: var(--primary-pale);
}

.screenshots-gallery {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 16px 0;
}

.screenshot-item {
  flex: 0 0 auto;
  width: 200px;
  scroll-snap-align: center;
}

.screenshot-item img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 8px 32px var(--shadow);
}

/* ============ CTA ============ */
.cta {
  padding: 64px 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  text-align: center;
}

.cta h2 {
  font-size: 24px;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}

.cta p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
}

.cta .store-badges .store-badge {
  background: white;
  color: var(--text-primary);
}

/* ============ FOOTER ============ */
footer {
  background: var(--text-primary);
  color: white;
  padding: 40px 0 24px;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.footer-logo span {
  font-size: 20px;
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .timer-container {
    --timer-size: 240px;
    --timer-stroke: 10px;
  }

  .timer-display {
    font-size: 56px;
  }

  .primary-btn {
    padding: 14px 36px;
    font-size: 16px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }

  .stats-card {
    margin-left: 16px;
    margin-right: 16px;
    padding: 20px 16px;
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
  }
}
