/* === Sand Theme ===
   Warm, earthy light theme
   Cream/tan with terracotta accent
   Cozy, inviting, organic feel
*/

[data-theme="sand"] {
  --bg-primary: #faf8f5;
  --bg-secondary: #f4f1ec;
  --bg-card: #ffffff;
  --text-primary: #2a2825;
  --text-secondary: #5a5550;
  --text-dim: #8a857f;
  --border-color: #e8e2d9;
  --border-hover: #d8d0c5;
  --accent: #d97757;
  --accent-hover: #c4684a;
  --accent-subtle: rgba(217, 119, 87, 0.1);
}

/* Base overrides */
[data-theme="sand"] body {
  background: var(--bg-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: var(--text-primary);
}

[data-theme="sand"] body::before,
[data-theme="sand"] body::after {
  display: none;
}

[data-theme="sand"] .main-content {
  background: var(--bg-primary);
}

/* Header */
[data-theme="sand"] .site-header {
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

[data-theme="sand"] .site-title {
  font-family: 'Newsreader', 'Georgia', serif;
  font-weight: 600;
  color: var(--text-primary);
  text-shadow: none;
  letter-spacing: -0.01em;
}

[data-theme="sand"] .plus-accent {
  color: var(--accent);
  text-shadow: none;
}

[data-theme="sand"] .site-title-link:hover .plus-accent {
  color: var(--accent-hover);
}

[data-theme="sand"] .nav-link {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

[data-theme="sand"] .nav-link:hover {
  color: var(--text-primary);
  text-shadow: none;
}

[data-theme="sand"] .nav-link.active {
  color: var(--accent);
}

[data-theme="sand"] .nav-link.active::after {
  background: var(--accent);
  box-shadow: none;
}

[data-theme="sand"] .github-widget a {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-dim);
}

[data-theme="sand"] .github-widget:hover a {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: none;
}

/* Hide old shell elements on home page */
[data-theme="sand"] .shell-container,
[data-theme="sand"] .lab-button-container {
  display: none;
}

/* Show new homepage sections */
[data-theme="sand"] .hero-section,
[data-theme="sand"] .product-showcase,
[data-theme="sand"] .lab-teaser {
  display: block;
}

/* Hero Section */
[data-theme="sand"] .hero-section {
  padding: 10vh 24px 6vh;
  text-align: center;
}

[data-theme="sand"] .hero-wordmark {
  font-family: 'Newsreader', 'Georgia', serif;
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

[data-theme="sand"] .hero-wordmark .plus-accent {
  color: var(--accent);
  text-shadow:
    0 0 10px rgba(217, 119, 87, 0.4),
    0 0 30px rgba(217, 119, 87, 0.2);
}

[data-theme="sand"] .hero-tagline {
  font-family: 'Newsreader', 'Georgia', serif;
  font-size: 1.35rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-weight: 400;
  font-style: italic;
}

[data-theme="sand"] .hero-subtext {
  font-size: 1rem;
  color: var(--text-dim);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

[data-theme="sand"] .hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

[data-theme="sand"] .hero-btn-primary {
  background: var(--accent);
  color: #ffffff;
  border: none;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

[data-theme="sand"] .hero-btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(196, 93, 53, 0.2);
}

[data-theme="sand"] .hero-btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

[data-theme="sand"] .hero-btn-secondary:hover {
  border-color: var(--text-dim);
  background: var(--bg-secondary);
}

/* Product Showcase */
[data-theme="sand"] .product-showcase {
  padding: 4vh 24px;
  max-width: 900px;
  margin: 0 auto;
}

[data-theme="sand"] .product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

[data-theme="sand"] .product-card {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  background: var(--bg-card);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

[data-theme="sand"] .product-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

[data-theme="sand"] .product-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

[data-theme="sand"] .product-icon {
  font-size: 1.5rem;
  line-height: 1;
}

[data-theme="sand"] .product-name {
  font-family: 'Newsreader', 'Georgia', serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0;
}

[data-theme="sand"] .product-tagline {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 10px;
  font-style: italic;
  text-align: left;
}

[data-theme="sand"] .product-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

[data-theme="sand"] .product-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
}

[data-theme="sand"] .product-card:hover .product-cta {
  gap: 12px;
}

/* Lab Teaser */
[data-theme="sand"] .lab-teaser {
  padding: 6vh 24px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

[data-theme="sand"] .lab-teaser-title {
  font-family: 'Newsreader', 'Georgia', serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 24px;
}

[data-theme="sand"] .lab-teaser-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 32px;
}

[data-theme="sand"] .lab-teaser-item {
  padding: 12px 20px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
}

[data-theme="sand"] .lab-teaser-item:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-subtle);
}

[data-theme="sand"] .lab-teaser-link {
  color: var(--accent);
  font-size: 0.95rem;
  text-decoration: none;
  font-weight: 500;
}

[data-theme="sand"] .lab-teaser-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Lab page */
[data-theme="sand"] .lab-container {
  max-width: 800px;
  padding: 6vh 24px;
}

[data-theme="sand"] .lab-title {
  font-family: 'Newsreader', 'Georgia', serif;
  font-weight: 500;
  color: var(--accent);
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.5rem;
  text-shadow:
    0 0 10px rgba(217, 119, 87, 0.4),
    0 0 30px rgba(217, 119, 87, 0.2);
}

[data-theme="sand"] .lab-description {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 3rem;
  font-style: italic;
}

[data-theme="sand"] .lab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

[data-theme="sand"] .lab-item-link {
  display: flex;
}

[data-theme="sand"] .lab-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  box-shadow: none;
  backdrop-filter: none;
  animation: none;
  width: 100%;
  transition: all 0.3s ease;
}

[data-theme="sand"] .lab-item::before {
  display: none;
}

[data-theme="sand"] .lab-item:hover,
[data-theme="sand"] .lab-item-link:hover .lab-item {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

[data-theme="sand"] .lab-item-header {
  margin-bottom: 8px;
}

[data-theme="sand"] .lab-item h3 {
  font-family: 'Newsreader', 'Georgia', serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-primary);
  text-shadow: none;
}

[data-theme="sand"] .lab-item-link:hover h3 {
  color: var(--accent);
}

[data-theme="sand"] .lab-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

[data-theme="sand"] .status-badge {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 6px;
}

[data-theme="sand"] .status-badge.live {
  background: var(--accent-subtle);
  color: var(--accent);
  border: none;
  text-shadow: none;
}

[data-theme="sand"] .status-badge.live::after {
  display: none;
}

[data-theme="sand"] .status-badge.cooking {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-dim);
  border: none;
  text-shadow: none;
}

/* Back button */
[data-theme="sand"] .back-button {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--accent);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  box-shadow: none;
  backdrop-filter: none;
}

[data-theme="sand"] .back-button:hover {
  border-color: var(--accent);
  background: var(--accent-subtle);
  box-shadow: none;
}

/* Footer */
[data-theme="sand"] .site-footer {
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
  position: relative;
  z-index: 1;
}

[data-theme="sand"] .copyright {
  color: var(--text-dim);
  text-shadow: none;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.75rem;
}

/* Theme switcher styling */
[data-theme="sand"] .theme-switcher {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

[data-theme="sand"] .theme-switcher:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

[data-theme="sand"] .theme-dropdown {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

[data-theme="sand"] .theme-option {
  color: var(--text-primary);
  border-radius: 6px;
}

[data-theme="sand"] .theme-option:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

[data-theme="sand"] .theme-option.active {
  background: var(--accent-subtle);
  color: var(--accent);
}

[data-theme="sand"] .theme-desc {
  color: var(--text-dim);
}

/* Product pages */
[data-theme="sand"] .product-page {
  background: var(--bg-primary);
}

[data-theme="sand"] .product-icon {
  border-color: var(--border-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

[data-theme="sand"] .feature-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

[data-theme="sand"] .install-box {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="sand"] .btn-primary {
  box-shadow: 0 4px 12px rgba(196, 93, 53, 0.15);
}

[data-theme="sand"] .btn-primary:hover {
  box-shadow: 0 6px 16px rgba(196, 93, 53, 0.2);
}
