/*
Theme Name: Life Compass
Theme URI: https://www.ourlifecompass.com/
Author: Life Compass
Description: WordPress rebuild of the original v0.dev "Life Compass" site - technology, lifestyle, and discovery. Clean editorial design with Inter + Playfair Display.
Version: 1.0.0
Text Domain: lifecompass
*/

/* ============================================================
   Design tokens (mirrors the original Tailwind theme)
   ============================================================ */
:root {
  --background: #fafafa;
  --foreground: #101010;
  --card: #ffffff;
  --card-foreground: #101010;
  --popover: #ffffff;
  --popover-foreground: #101010;
  --primary: #101010;
  --primary-foreground: #fafafa;
  --secondary: #f3f3f3;
  --secondary-foreground: #101010;
  --muted: #f0f0f0;
  --muted-foreground: #636363;
  --accent: #d73431;
  --accent-foreground: #ffffff;
  --danger: #e40014;
  --border: #e1e1e1;
  --input: #e1e1e1;
  --ring: #101010;
  --radius: 0.5rem;
}

/* ============================================================
   Base
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--foreground);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, h4 { font-family: "Playfair Display", Georgia, serif; }

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/playfair.woff2") format("woff2");
}

.lc-container { max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 1024px) { .lc-container { padding: 0 2rem; } }
.lc-container--narrow { max-width: 48rem; }

/* ============================================================
   Header
   ============================================================ */
.lc-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.lc-header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lc-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.lc-logo svg { width: 28px; height: 28px; color: var(--accent); transition: transform 0.3s ease; }
.lc-logo:hover svg { transform: rotate(45deg); }
.lc-logo span {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.lc-nav { display: none; align-items: center; gap: 4px; }
@media (min-width: 768px) { .lc-nav { display: flex; } }
.lc-nav a {
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted-foreground);
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.lc-nav a:hover { color: var(--foreground); background: var(--secondary); }
.lc-header-actions { display: flex; align-items: center; gap: 8px; }
.lc-icon-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lc-icon-btn:hover { background: var(--secondary); color: var(--foreground); }
@media (min-width: 768px) { .lc-icon-btn--menu { display: none; } }
.lc-icon-btn svg { width: 20px; height: 20px; }

/* ============================================================
   Badges
   ============================================================ */
.lc-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  white-space: nowrap;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
}
.lc-badge--accent { padding: 5px 10px; background: var(--accent); color: var(--accent-foreground); }
.lc-badge--secondary { padding: 3px 8px; background: var(--secondary); color: var(--secondary-foreground); }

/* ============================================================
   Hero
   ============================================================ */
.lc-hero { padding: 24px 0 40px; }
@media (min-width: 1024px) { .lc-hero { padding: 40px 0; } }
.lc-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 1024px) { .lc-hero-grid { grid-template-columns: repeat(5, 1fr); } }

.lc-hero-card {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
@media (min-width: 1024px) {
  .lc-hero-card--featured { grid-column: span 3; aspect-ratio: auto; min-height: 420px; }
  .lc-hero-card--small { aspect-ratio: auto; min-height: 200px; }
  .lc-hero-small-col { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  @media (min-width: 1024px) { .lc-hero-small-col { grid-template-columns: 1fr; } }
}
.lc-hero-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.lc-hero-card:hover img { transform: scale(1.05); }
.lc-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
}
.lc-hero-card--small .lc-hero-gradient {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
}
.lc-hero-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lc-hero-card--small .lc-hero-copy { padding: 16px 20px; gap: 8px; }
.lc-hero-copy h1, .lc-hero-copy h2, .lc-hero-copy h3 {
  margin: 0;
  color: #fff;
}
.lc-hero-copy h1 {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
}
.lc-hero-copy p {
  margin: 0;
  max-width: 32rem;
  font-size: 14px;
  line-height: 1.625;
  color: rgba(255, 255, 255, 0.75);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (min-width: 768px) {
  .lc-hero-copy h1 { font-size: 36px; }
  .lc-hero-copy p { display: block; }
}
.lc-hero-badges { display: flex; align-items: center; gap: 8px; }

/* ============================================================
   Sections & titles
   ============================================================ */
.lc-section { padding: 32px 0 48px; }
@media (min-width: 1024px) { .lc-section { padding: 48px 0; } }
.lc-section-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}
.lc-section-title h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}
.lc-section-title .lc-rule { flex: 1; height: 1px; background: var(--border); }

/* ============================================================
   Article cards
   ============================================================ */
.lc-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lc-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff; /* white backdrop, full image shown (same style as product cards) */
}
.lc-card-media img {
  position: absolute;
  inset: 16px; /* breathing room around the image */
  width: calc(100% - 32px);
  height: calc(100% - 32px);
  object-fit: contain; /* no crop, no distortion */
  mix-blend-mode: multiply;
  transition: transform 0.5s ease;
}
.lc-card:hover .lc-card-media img { transform: scale(1.05); }
.lc-card-body { display: flex; flex-direction: column; gap: 6px; }
.lc-card-meta-line { display: flex; align-items: center; gap: 8px; }
.lc-card h3 {
  margin: 0;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.375;
  color: var(--foreground);
  transition: color 0.2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lc-card--small h3 { font-size: 14px; }
.lc-card:hover h3 { color: var(--accent); }
.lc-card-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.625;
  color: var(--muted-foreground);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lc-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted-foreground);
}

.lc-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) { .lc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .lc-grid--latest { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .lc-grid--missed, .lc-grid--related { grid-template-columns: repeat(4, 1fr); }
  .lc-grid--related { grid-template-columns: repeat(3, 1fr); }
}

/* Latest layout: 2-col main + sidebar */
.lc-latest-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 1024px) { .lc-latest-layout { grid-template-columns: 2fr 1fr; } }

.lc-recent { display: flex; flex-direction: column; gap: 20px; }
.lc-recent-item { display: flex; gap: 16px; align-items: flex-start; }
.lc-recent-media {
  position: relative;
  width: 112px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}
.lc-recent-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.lc-recent-item:hover .lc-recent-media img { transform: scale(1.05); }
.lc-recent-copy { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lc-recent-copy h3 {
  margin: 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  transition: color 0.2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lc-recent-item:hover h3 { color: var(--accent); }

/* ============================================================
   Single article
   ============================================================ */
.lc-article-hero {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  background: #ffffff; /* white backdrop, full image shown without stretching */
}
@media (min-width: 768px) { .lc-article-hero { height: 420px; } }
@media (min-width: 1024px) { .lc-article-hero { height: 480px; } }
.lc-article-hero img {
  position: absolute;
  inset: 24px; /* breathing room around the product */
  width: calc(100% - 48px);
  height: calc(100% - 48px);
  object-fit: contain; /* no crop, no distortion */
  mix-blend-mode: multiply;
}
.lc-article-hero .lc-hero-gradient {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
}
.lc-article-body { position: relative; }
.lc-article-content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 32px;
}
.lc-back-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  font-size: 14px;
  color: var(--muted-foreground);
  transition: color 0.2s;
}
.lc-back-home:hover { color: var(--accent); }
.lc-article-content h1 {
  margin: 0;
  color: var(--foreground);
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
}
@media (min-width: 768px) { .lc-article-content h1 { font-size: 36px; } }
.lc-article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--muted-foreground);
}
.lc-article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.lc-article-meta svg { width: 14px; height: 14px; }

/* Prose body */
.lc-prose { margin-top: 40px; margin-bottom: 64px; font-size: 16px; }
.lc-prose p {
  margin: 16px 0;
  color: var(--muted-foreground);
  line-height: 1.7;
}
.lc-prose h2 {
  margin: 40px 0 16px;
  font-size: 20px;
  font-weight: 700;
  color: var(--foreground);
}
.lc-prose h3 {
  margin: 32px 0 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--foreground);
}
.lc-prose ul { margin: 16px 0; padding-left: 20px; }
.lc-prose li { color: var(--muted-foreground); line-height: 1.7; margin: 6px 0; }
.lc-prose strong { color: var(--foreground); font-weight: 600; }

/* ============================================================
   Article listing (archive / index)
   ============================================================ */
.lc-archive-head { margin: 32px 0; }
.lc-archive-head h1 {
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 700;
}
@media (min-width: 1024px) { .lc-archive-head h1 { font-size: 36px; } }
.lc-archive-head p { margin: 0; color: var(--muted-foreground); font-size: 14px; }
.lc-archive-grid { display: grid; grid-template-columns: 1fr; gap: 32px 32px; }
@media (min-width: 640px) { .lc-archive-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .lc-archive-grid { grid-template-columns: repeat(3, 1fr); } }
.lc-empty { padding: 64px 0; text-align: center; color: var(--muted-foreground); }
.lc-empty-irregular { margin: 0; }

/* ============================================================
   Pagination
   ============================================================ */
.navigation.pagination {
  display: flex;
  justify-content: center;
  padding: 40px 0;
}
.navigation.pagination .nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.navigation.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--muted-foreground);
  background: var(--card);
  transition: color 0.2s, border-color 0.2s;
}
.navigation.pagination a.page-numbers:hover {
  color: var(--foreground);
  border-color: var(--foreground);
}
.navigation.pagination .page-numbers.current {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

/* ============================================================
   Footer
   ============================================================ */
.lc-footer {
  margin-top: auto;
  background: var(--primary);
  color: var(--primary-foreground);
}
.lc-footer-top {
  padding: 48px 0 64px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 768px) { .lc-footer-top { grid-template-columns: repeat(3, 1fr); } }
.lc-footer-brand { display: flex; flex-direction: column; gap: 16px; }
.lc-footer-brand a { display: inline-flex; align-items: center; gap: 8px; }
.lc-footer-brand svg { width: 24px; height: 24px; }
.lc-footer-brand span { font-family: "Playfair Display", Georgia, serif; font-size: 18px; font-weight: 700; }
.lc-footer-brand p {
  margin: 0;
  max-width: 320px;
  font-size: 14px;
  line-height: 1.625;
  color: rgba(250, 250, 250, 0.7);
}
.lc-footer h3 {
  margin: 0 0 16px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(250, 250, 250, 0.8);
}
.lc-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lc-footer ul a {
  font-size: 14px;
  color: rgba(250, 250, 250, 0.6);
  transition: color 0.2s;
}
.lc-footer ul a:hover { color: #fff; }
.lc-footer-divider { height: 1px; background: rgba(250, 250, 250, 0.1); }
.lc-footer-bottom {
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: rgba(250, 250, 250, 0.5);
}
@media (min-width: 768px) { .lc-footer-bottom { flex-direction: row; } }
.lc-footer-bottom p { margin: 0; }

/* ============================================================
   More link (section title row)
   ============================================================ */
.lc-section-title { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; }
.lc-section-title h2 { margin: 0; font-size: 22px; font-weight: 700; white-space: nowrap; font-family: "Playfair Display", Georgia, serif; }
.lc-section-title .lc-rule { flex: 1; height: 1px; background: var(--border); }
.lc-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--foreground);
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.lc-more span { transition: transform 0.2s; }
.lc-more:hover { background: var(--accent); color: var(--accent-foreground); border-color: var(--accent); }
.lc-more:hover span { transform: translateX(3px); }

/* ============================================================
   Products grid (3 cols) & product cards
   ============================================================ */
.lc-grid--products, .lc-grid--reviews { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 640px) {
  .lc-grid--products, .lc-grid--reviews { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .lc-grid--products, .lc-grid--reviews { grid-template-columns: repeat(3, 1fr); }
}

.lc-product-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}
.lc-product-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(16, 16, 16, 0.1); }
.lc-product-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #ffffff; /* white backdrop so the product floats cleanly */
}
.lc-product-media img {
  position: absolute;
  inset: 16px; /* breathing room around the product */
  width: calc(100% - 32px);
  height: calc(100% - 32px);
  object-fit: contain; /* full product, no crop, no distortion */
  mix-blend-mode: multiply;
  transition: transform 0.5s ease;
}
.lc-product-card:hover .lc-product-media img { transform: scale(1.05); }
.lc-product-placeholder {
  position: absolute;
  inset: 0;
  display: block;
  background: linear-gradient(135deg, var(--muted) 0%, var(--secondary) 100%);
}
.lc-product-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  flex: 1;
}
.lc-product-brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(215, 52, 49, 0.08);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lc-product-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--secondary);
  border: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
}
.lc-product-copy h3 {
  margin: 0;
  font-family: inherit;
  font-size: 19px;
  font-weight: 750;
  line-height: 1.25;
  color: var(--foreground);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lc-product-tagline {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted-foreground);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lc-product-price {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.lc-product-price b { font-size: 21px; letter-spacing: -0.02em; }
.lc-product-price del { color: var(--muted-foreground); font-size: 13px; }
.lc-product-price em {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-foreground);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.lc-btn-deal {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-foreground);
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  text-align: center;
  transition: background 0.2s;
}
.lc-btn-deal:hover { background: #b82725; color: var(--accent-foreground); }

/* ============================================================
   404
   ============================================================ */
.lc-404 { text-align: center; padding: 96px 16px; }
.lc-404 h1 { margin: 0 0 12px; font-size: 44px; }
.lc-404 p { color: var(--muted-foreground); margin: 0 0 28px; }
.lc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 22px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-foreground);
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.2s;
}
.lc-btn:hover { opacity: 0.9; color: var(--accent-foreground); }

/* Search form */
.lc-searchform { display: flex; gap: 8px; margin: 24px 0; }
.lc-searchform input {
  flex: 1;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
}
.lc-searchform button {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 14px;
  font-weight: 600;
}