/**
 * SesWi Landing Page Styles
 * macOS-inspired design with Solarized Light theme
 */

/* Solarized Light Colors */
:root {
  --sol-base03: #002b36;
  --sol-base02: #073642;
  --sol-base01: #586e75;
  --sol-base00: #657b83;
  --sol-base0: #839496;
  --sol-base1: #93a1a1;
  --sol-base2: #eee8d5;
  --sol-base3: #fdf6e3;
  --sol-yellow: #b58900;
  --sol-orange: #cb4b16;
  --sol-red: #dc322f;
  --sol-magenta: #d33682;
  --sol-violet: #6c71c4;
  --sol-blue: #268bd2;
  --sol-cyan: #2aa198;
  --sol-green: #859900;
}

/* ========== Base ========== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ========== macOS Window ========== */
.macos-window {
  background: var(--sol-base3);
  border-radius: 12px;
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.08),
    0 2px 4px -2px rgba(0, 0, 0, 0.06),
    0 0 0 1px var(--sol-base2);
  overflow: hidden;
}

.macos-titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--sol-base2);
  border-bottom: 1px solid var(--sol-base2);
}

.traffic-lights {
  display: flex;
  gap: 8px;
}

.tl {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
  transition: opacity 0.15s;
}

.tl:hover {
  opacity: 0.8;
}

.tl-close {
  background: #ff5f57;
}

.tl-minimize {
  background: #ffbd2e;
}

.tl-maximize {
  background: #28c840;
}

.titlebar-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--sol-base00);
}

.macos-content {
  padding: 16px;
}

/* ========== Preview Extension UI ========== */
.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.preview-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: var(--sol-blue);
  color: var(--sol-base3);
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s;
}

.preview-btn:hover {
  opacity: 0.9;
}

.preview-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  padding: 4px;
  background: var(--sol-base2);
  border-radius: 8px;
}

.preview-tab {
  flex: 1;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--sol-base00);
  cursor: pointer;
  transition: all 0.15s;
}

.preview-tab.active {
  background: var(--sol-base3);
  color: var(--sol-base01);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.preview-sessions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.preview-session {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--sol-base2);
  border-radius: 8px;
  border: 1px solid var(--sol-base2);
}

.session-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sol-base3);
  color: var(--sol-violet);
  border-radius: 8px;
  font-size: 14px;
}

.session-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.session-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--sol-base01);
}

.session-meta {
  font-size: 11px;
  color: var(--sol-base1);
}

/* ========== Feature Cards ========== */
.feature-card {
  padding: 24px;
  background: var(--sol-base3);
  border-radius: 12px;
  border: 1px solid var(--sol-base2);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  border-color: var(--sol-base1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 20px;
  margin-bottom: 16px;
}

/* ========== Step Numbers ========== */
.step-number {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  background: var(--sol-blue);
  color: var(--sol-base3);
  border-radius: 50%;
  font-size: 20px;
  font-weight: 600;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .macos-window {
    max-width: 100%;
  }
  
  .preview-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  
  .preview-tab {
    white-space: nowrap;
  }
}

/* ========== Animations ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.macos-window {
  animation: fadeInUp 0.5s ease-out;
}

.feature-card {
  animation: fadeInUp 0.5s ease-out;
  animation-fill-mode: both;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.15s; }
.feature-card:nth-child(3) { animation-delay: 0.2s; }
.feature-card:nth-child(4) { animation-delay: 0.25s; }
.feature-card:nth-child(5) { animation-delay: 0.3s; }
.feature-card:nth-child(6) { animation-delay: 0.35s; }
