/* ===== VARIABLES ===== */
:root {
  --color-primary: #d4a574;
  --color-primary-dark: #b8956a;
  --color-secondary: #f5e6d3;
  --color-text: #2d2d2d;
  --color-text-light: #6b6b6b;
  --color-background: #fffaf5;
  --color-white: #ffffff;
  --color-border: #e8e0d8;

  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  --container-width: 1200px;
  --container-narrow: 800px;
  --spacing-unit: 1rem;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-background);
}

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

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

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

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

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

/* ===== UTILITIES ===== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-unit);
}

.container-narrow {
  max-width: var(--container-narrow);
}

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
}

/* ===== HEADER ===== */
.site-header {
  background: var(--color-white);
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  flex-direction: column;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
}

.logo-tagline {
  font-size: 0.75rem;
  color: var(--color-text-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  gap: 2rem;
}

.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-primary-dark);
  border-bottom-color: var(--color-primary);
}

.mobile-menu-toggle {
  display: none;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-white) 100%);
  padding: 5rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.hero-intro {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  color: var(--color-text-light);
}

/* ===== POSTS GRID ===== */
.featured-posts,
.posts-section {
  padding: 4rem 0;
}

.featured-posts h2,
.posts-section h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.no-posts {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  background: var(--color-white);
  border-radius: 8px;
  color: var(--color-text-light);
}

/* ===== POST CARD ===== */
.post-card {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.post-card-link {
  display: block;
  color: inherit;
}

.post-card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #ffffff;
  padding: 1rem;
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.post-card-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  color: var(--color-primary-dark);
  padding: 1rem;
  text-align: center;
}

.post-card-content {
  padding: 1.5rem;
}

.post-card-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary-dark);
  font-weight: 600;
}

.post-card-title {
  font-size: 1.25rem;
  margin: 0.5rem 0;
}

.post-card-excerpt {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.post-card-date {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

/* ===== CATEGORY CARDS ===== */
.categories-preview {
  padding: 4rem 0;
  background: var(--color-white);
}

.categories-preview h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.category-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.category-card {
  background: var(--color-secondary);
  padding: 2.5rem;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
}

.category-card h3 {
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.category-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* ===== PAGE HEADER ===== */
.page-header {
  background: var(--color-secondary);
  padding: 4rem 0;
  text-align: center;
}

.page-description {
  font-size: 1.125rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 1rem auto 0;
}

/* ===== SINGLE POST ===== */
.post-header {
  background: var(--color-secondary);
  padding: 4rem 0;
  text-align: center;
}

.post-categories a {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary-dark);
  font-weight: 600;
}

.post-header h1 {
  margin: 1rem 0;
  font-size: 2.75rem;
}

.post-meta {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.post-meta span + span::before {
  content: "•";
  margin: 0 0.5rem;
}

.post-featured-image {
  max-width: 1000px;
  margin: -2rem auto 0;
  padding: 0 2rem;
}

.post-featured-image img {
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  background: #ffffff;
  padding: 1.5rem;
}

.post-content {
  padding: 3rem 0;
}

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content h2 {
  margin: 2.5rem 0 1rem;
}

.post-content h3 {
  margin: 2rem 0 1rem;
}

.post-content ul, .post-content ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.post-content li {
  margin-bottom: 0.5rem;
}

.affiliate-notice {
  background: transparent;
  border-top: 1px solid var(--color-border);
  padding: 1rem 0;
  margin-top: 2rem;
  font-size: 0.625rem;
  color: #999;
  line-height: 1.6;
}

.affiliate-notice .disclosure-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #888;
}

.affiliate-notice ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0;
}

.affiliate-notice li {
  margin-bottom: 0.25rem;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.post-tags a {
  background: var(--color-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
}

/* ===== PRODUCT CARD ===== */
.product-card {
  display: flex;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  margin: 2rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.product-card-image {
  flex: 0 0 200px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-image img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  padding: 1rem;
}

.product-card-no-image {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  font-family: var(--font-heading);
  color: var(--color-primary-dark);
  font-size: 0.9rem;
}

.product-card-info {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
}

.product-card-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product-card-rating .stars {
  color: #f5a623;
  font-size: 1rem;
  letter-spacing: 1px;
}

.product-card-rating .rating-text {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.product-card-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.product-card-button {
  display: inline-block;
  background: linear-gradient(135deg, #f7a81b 0%, #f08804 100%);
  color: white !important;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-top: 0.5rem;
  width: fit-content;
}

.product-card-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(240, 136, 4, 0.4);
  color: white !important;
}

.product-card-updated {
  font-size: 0.7rem;
  color: var(--color-text-light);
  margin-top: auto;
}

/* Multiple product cards container */
.product-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2rem 0;
}

@media (max-width: 600px) {
  .product-card {
    flex-direction: column;
  }

  .product-card-image {
    flex: 0 0 auto;
  }

  .product-card-image img,
  .product-card-no-image {
    height: 180px;
  }
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--color-text);
  color: var(--color-white);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.site-footer h3 {
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-about p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: var(--color-primary);
  font-size: 0.9rem;
}

.footer-links ul,
.footer-legal ul {
  list-style: none;
}

.footer-links a,
.footer-legal a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.footer-links a:hover,
.footer-legal a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  text-align: center;
}

.affiliate-disclosure {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
}

.copyright {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .category-cards {
    grid-template-columns: 1fr;
  }

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

  .post-header h1 {
    font-size: 2rem;
  }
}
