/* ===== LumaLiving - Affiliate Marketing Site Styles ===== */
:root {
  --primary: #e91e63;
  --primary-dark: #c2185b;
  --accent: #ff6f61;
  --dark: #1a1a2e;
  --gray: #6b7280;
  --light: #f8f9fa;
  --white: #ffffff;
  --border: #e5e7eb;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
  --radius: 12px;
  --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
}
.logo {
  font-size: 28px; font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}
.logo span { color: var(--dark); }
.main-nav ul {
  display: flex; gap: 28px; list-style: none;
}
.main-nav a {
  font-size: 15px; font-weight: 600; color: var(--dark);
  transition: var(--transition);
  position: relative;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--primary);
}
.main-nav a.active::after {
  content: ''; position: absolute; bottom: -6px; left: 0;
  width: 100%; height: 2px; background: var(--primary);
}
.menu-toggle {
  display: none; background: none; border: none;
  font-size: 24px; cursor: pointer; color: var(--dark);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #fff0f5 0%, #fce4ec 50%, #f3e5f5 100%);
  padding: 70px 0;
  text-align: center;
}
.hero h1 {
  font-size: 44px; font-weight: 800; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 18px; color: var(--gray);
  max-width: 640px; margin: 0 auto 30px;
}
.hero-btn {
  display: inline-block; padding: 14px 36px;
  background: var(--primary); color: var(--white);
  border-radius: 50px; font-weight: 600;
  transition: var(--transition);
}
.hero-btn:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* Section */
.section { padding: 60px 0; }
.section-title {
  font-size: 32px; font-weight: 700; margin-bottom: 10px;
  text-align: center;
}
.section-subtitle {
  text-align: center; color: var(--gray); margin-bottom: 40px;
  font-size: 16px;
}

/* Categories Grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}
.category-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: var(--transition); cursor: pointer;
}
.category-card:hover {
  transform: translateY(-5px); box-shadow: var(--shadow-hover);
}
.category-card img {
  width: 100%; height: 180px; object-fit: cover;
}
.category-card-body {
  padding: 20px; text-align: center;
}
.category-card-body h3 {
  font-size: 20px; margin-bottom: 6px;
}
.category-card-body p {
  color: var(--gray); font-size: 14px;
}

/* Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}
.article-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex; flex-direction: column;
}
.article-card:hover {
  transform: translateY(-5px); box-shadow: var(--shadow-hover);
}
.article-card img {
  width: 100%; height: 220px; object-fit: cover;
}
.article-card-body {
  padding: 24px; flex: 1; display: flex; flex-direction: column;
}
.article-meta {
  display: flex; gap: 12px; font-size: 13px; color: var(--gray);
  margin-bottom: 12px;
}
.article-tag {
  display: inline-block; padding: 3px 12px;
  background: #fce4ec; color: var(--primary);
  border-radius: 20px; font-size: 12px; font-weight: 600;
}
.article-card h3 {
  font-size: 19px; line-height: 1.4; margin-bottom: 10px;
  transition: var(--transition);
}
.article-card:hover h3 { color: var(--primary); }
.article-card p {
  color: var(--gray); font-size: 14px; margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.read-more {
  margin-top: auto; color: var(--primary); font-weight: 600;
  font-size: 14px;
}
.read-more:hover { text-decoration: underline; }

/* Article Page */
.article-hero {
  height: 420px; position: relative;
  background-size: cover; background-position: center;
}
.article-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}
.article-hero-content {
  position: absolute; bottom: 40px; left: 0; right: 0;
  max-width: 800px; margin: 0 auto; padding: 0 20px;
  color: var(--white);
}
.article-hero-content h1 {
  font-size: 38px; font-weight: 800; line-height: 1.2;
  margin-bottom: 16px;
}
.article-hero-meta {
  display: flex; gap: 16px; font-size: 14px;
  opacity: 0.9;
}
.article-content {
  max-width: 800px; margin: 0 auto; padding: 50px 20px;
}
.article-content p {
  font-size: 17px; margin-bottom: 22px; color: #374151;
}
.article-content h2 {
  font-size: 26px; margin: 36px 0 16px; font-weight: 700;
}
.article-content h3 {
  font-size: 21px; margin: 28px 0 12px; font-weight: 700;
}
.article-content img {
  border-radius: var(--radius); margin: 24px 0;
  box-shadow: var(--shadow);
}
.article-content ul, .article-content ol {
  margin: 16px 0 22px 24px; font-size: 17px; color: #374151;
}
.article-content li { margin-bottom: 8px; }
.article-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 16px 24px; margin: 24px 0;
  background: #fdf2f8; font-style: italic;
  border-radius: 0 8px 8px 0;
}

/* Product Box (Affiliate) */
.product-box {
  background: var(--light); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  margin: 28px 0; display: flex; gap: 20px;
  align-items: center;
}
.product-box img {
  width: 120px; height: 120px; object-fit: cover;
  border-radius: 8px; margin: 0;
}
.product-info { flex: 1; }
.product-info h4 {
  font-size: 18px; margin-bottom: 8px;
}
.product-info p {
  font-size: 14px; color: var(--gray); margin-bottom: 12px;
}
.buy-btn {
  display: inline-block; padding: 10px 24px;
  background: var(--primary); color: var(--white);
  border-radius: 6px; font-weight: 600; font-size: 14px;
  transition: var(--transition); border: none; cursor: pointer;
}
.buy-btn:hover { background: var(--primary-dark); }

/* Category Page */
.page-header {
  background: linear-gradient(135deg, #fff0f5, #f3e5f5);
  padding: 60px 0; text-align: center;
}
.page-header h1 {
  font-size: 40px; font-weight: 800; margin-bottom: 10px;
}
.page-header p {
  color: var(--gray); font-size: 17px;
}

/* Pagination */
.pagination {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 40px;
}
.pagination a {
  padding: 8px 14px; border: 1px solid var(--border);
  border-radius: 6px; font-weight: 600; transition: var(--transition);
}
.pagination a:hover, .pagination a.active {
  background: var(--primary); color: var(--white); border-color: var(--primary);
}

/* Footer */
.site-footer {
  background: var(--dark); color: #c7c7d1;
  padding: 50px 0 20px; margin-top: 60px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 30px;
}
.footer-about h3 {
  color: var(--white); font-size: 24px; margin-bottom: 12px;
}
.footer-about p { font-size: 14px; line-height: 1.7; }
.footer-col h4 {
  color: var(--white); font-size: 16px; margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 14px; transition: var(--transition); }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  text-align: center; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
}
.disclaimer {
  font-size: 12px; color: #888; margin-top: 12px;
  font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); box-shadow: var(--shadow);
    max-height: 0; overflow: hidden; transition: max-height 0.3s;
  }
  .main-nav.open { max-height: 400px; }
  .main-nav ul { flex-direction: column; padding: 20px; gap: 16px; }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 16px; }
  .section-title { font-size: 26px; }
  .article-hero-content h1 { font-size: 26px; }
  .article-content { padding: 30px 16px; }
  .product-box { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}
