/* ============================================================
   GEO Blog — momblush.com inspired design
   Fonts: Playfair Display (headings) + Lato (body)
   ============================================================ */

/* --- Variables --- */
:root {
  --white: #ffffff;
  --off-white: #fafafa;
  --text: #222222;
  --text-secondary: #555555;
  --text-light: #888888;
  --accent: #f78da7;
  --accent-hover: #f4729a;
  --link-blue: #0693e3;
  --light-gray: #f7f7f7;
  --border: #e8e8e8;
  --dark: #1a1a2e;
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
  --radius: 6px;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1200px;
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* --- Base --- */
html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header .container {
  display: flex;
  align-items: center;
  height: 72px;
  gap: 2.5rem;
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.site-logo:hover {
  color: var(--accent);
}

/* --- Navigation --- */
.site-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.site-nav a {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0;
  position: relative;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.site-nav a:hover::after,
.site-nav a.active::after {
  width: 100%;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--accent);
}

/* --- Language Switcher --- */
.lang-switcher {
  margin-left: auto;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lang-switcher a {
  color: var(--text-secondary);
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  margin-left: 4px;
  transition: all 0.2s ease;
}

.lang-switcher a:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

/* ============================================================
   Main Content Area
   ============================================================ */
.site-main {
  padding: 2.5rem 0;
  min-height: 60vh;
}

/* --- Two-column Layout --- */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
}

/* ============================================================
   Article Card
   ============================================================ */
.article-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.article-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.article-card > a {
  display: block;
  overflow: hidden;
}

.article-card img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-card:hover img {
  transform: scale(1.03);
}

.article-card-body {
  padding: 1.5rem;
}

.article-card-body .category-tag {
  margin-bottom: 0.6rem;
}

.article-card-body h2 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.article-card-body h2 a {
  color: var(--text);
}

.article-card-body h2 a:hover {
  color: var(--accent);
}

.article-card-body .meta {
  margin-bottom: 0.6rem;
}

.article-card-body .excerpt {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 0.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Category Tag --- */
.category-tag {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
}

/* --- Meta --- */
.meta {
  color: var(--text-light);
  font-size: 0.82rem;
}

.meta .author {
  font-weight: 700;
  color: var(--text-secondary);
}

.meta .author::after {
  content: '·';
  margin: 0 0.4rem;
  color: var(--text-light);
}

.author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
}

/* --- Read More --- */
.read-more {
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.read-more:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* ============================================================
   Sidebar
   ============================================================ */
.sidebar .widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sidebar .widget h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent);
}

.sidebar .widget ul {
  list-style: none;
}

.sidebar .widget li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.sidebar .widget li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar .widget a {
  color: var(--text);
}

.sidebar .widget a:hover {
  color: var(--accent);
}

/* ============================================================
   Search Box
   ============================================================ */
.search-box {
  display: flex;
}

.search-box input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  background: var(--white);
  transition: border-color 0.2s;
}

.search-box input:focus {
  border-color: var(--accent);
}

.search-box button {
  padding: 10px 20px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.search-box button:hover {
  background: var(--accent-hover);
}

/* ============================================================
   Hero Search (Homepage)
   ============================================================ */
.hero-search {
  margin-bottom: 2.5rem;
  padding: 2rem;
  background: linear-gradient(135deg, #fff5f7 0%, #fef0f3 50%, #fff8fa 100%);
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid #fde8ee;
}

.hero-search .search-box {
  max-width: 520px;
  margin: 0 auto;
}

/* ============================================================
   Recent Posts Section
   ============================================================ */
.recent-posts h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
}

/* ============================================================
   Pagination
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin: 2.5rem 0;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  transition: all 0.2s;
}

.page-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.page-link.active {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

/* ============================================================
   Section List Page
   ============================================================ */
.section-intro {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.75;
}

.main-content > h1 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

/* ============================================================
   Article Single Page
   ============================================================ */
.article-header {
  margin-bottom: 1.5rem;
}

.article-header .category-tag {
  margin-bottom: 0.75rem;
}

.article-header h1 {
  font-size: 2.2rem;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.article-header .meta {
  font-size: 0.88rem;
}

.featured-image {
  width: 100%;
  border-radius: var(--radius);
  margin: 1.25rem 0 2rem;
  box-shadow: var(--shadow-sm);
}

/* --- Article Body Content --- */
.article-content {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text);
}

.article-content h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.article-content h3 {
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article-content p {
  margin-bottom: 1.25rem;
}

.article-content a {
  color: var(--link-blue);
  text-decoration: underline;
  text-decoration-color: rgba(6, 147, 227, 0.3);
  text-underline-offset: 2px;
}

.article-content a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.75rem;
}

.article-content li {
  margin-bottom: 0.4rem;
}

.article-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--light-gray);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-secondary);
}

/* --- Tables --- */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.92rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.article-content th,
.article-content td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.article-content th {
  background: var(--light-gray);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.article-content tr:last-child td {
  border-bottom: none;
}

.article-content tr:hover td {
  background: #fafafa;
}

/* --- Definition Lists (product specs) --- */
.article-content dl {
  background: var(--light-gray);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin: 1rem 0 1.5rem;
}

.article-content dl dt {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-light);
  margin-top: 0.6rem;
}

.article-content dl dt:first-child {
  margin-top: 0;
}

.article-content dl dd {
  margin-left: 0;
  color: var(--text);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

/* ============================================================
   Summary / Answer / Verdict Boxes
   ============================================================ */
.summary,
.answer,
.verdict {
  background: linear-gradient(135deg, #fff5f7 0%, #fef0f3 100%);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  border-left: 4px solid var(--accent);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ============================================================
   Related Articles
   ============================================================ */
.related-articles {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border);
}

.related-articles h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.related-articles ul {
  list-style: none;
}

.related-articles li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.related-articles li:last-child {
  border-bottom: none;
}

.related-articles a {
  color: var(--text);
  font-size: 0.95rem;
}

.related-articles a:hover {
  color: var(--accent);
}

/* ============================================================
   Product Card Shortcode
   ============================================================ */
.product-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 1.5rem 0;
  align-items: center;
  transition: box-shadow 0.3s ease;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
}

.product-card .product-image {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.product-card .product-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin: 0 0 0.25rem;
}

.product-card .product-price {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.product-card .product-link {
  color: var(--white);
  background: var(--accent);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-block;
  transition: background 0.2s;
}

.product-card .product-link:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.65);
  padding: 3.5rem 0 2rem;
  margin-top: 4rem;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
}

.site-footer h4 {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.site-footer p {
  line-height: 1.7;
  font-size: 0.9rem;
}

.site-footer ul {
  list-style: none;
}

.site-footer li {
  padding: 0.3rem 0;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
}

/* ============================================================
   Responsive Design
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .content-with-sidebar {
    grid-template-columns: 1fr 280px;
    gap: 2rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  html {
    font-size: 16px;
  }

  .site-header .container {
    flex-wrap: wrap;
    height: auto;
    padding-top: 1rem;
    padding-bottom: 1rem;
    gap: 0.75rem;
  }

  .site-logo {
    font-size: 1.3rem;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .site-nav ul {
    gap: 1rem;
    white-space: nowrap;
  }

  .lang-switcher {
    margin-left: 0;
  }

  .content-with-sidebar {
    grid-template-columns: 1fr;
  }

  .article-header h1 {
    font-size: 1.6rem;
  }

  .main-content > h1 {
    font-size: 1.5rem;
  }

  .article-card-body h2 {
    font-size: 1.15rem;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-search {
    padding: 1.5rem;
  }

  .product-card {
    flex-direction: column;
    text-align: center;
  }

  .product-card .product-image {
    width: 100%;
    height: 180px;
  }

  .article-content table {
    display: block;
    overflow-x: auto;
  }
}
