:root {
  --bg-color: #ffffff;
  --text-color: #0f172a;
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --secondary-color: #edf2f7;
  --font-family: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-family);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HEADER / NAVIGATION ===== */
header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 20px 0;
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  z-index: 100;
}

header nav a, nav a, .header-container nav a { color: #000000 !important; }

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

.logo-area {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 48px;
  display: block;
}

nav a {
  margin: 0 15px;
  text-decoration: none;
  color: #000000 !important;
  font-weight: 600;
  opacity: 0.9;
  transition: opacity 0.2s;
}

nav a:hover { opacity: 1; color: #000000 !important; }

/* ===== ARTICLE CONTENT ===== */
.article-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.article-header {
  text-align: center;
  margin-bottom: 40px;
}

.article-header h1 {
  font-size: 2.8rem;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-color);
}

.article-meta {
  display: flex;
  gap: 20px;
  justify-content: center;
  font-size: 0.9rem;
  opacity: 0.7;
}

.article-body {
  margin-bottom: 40px;
}

.article-intro {
  margin-bottom: 30px;
  font-size: 1.15rem;
  line-height: 1.8;
}

.article-intro p {
  margin-bottom: 20px;
}

.article-section {
  margin-bottom: 40px;
}

.article-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--primary-color);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding-bottom: 10px;
}

.article-section h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 20px 0 12px;
  color: var(--text-color);
}

.article-section p {
  margin-bottom: 18px;
  line-height: 1.8;
  font-size: 1.05rem;
}

/* Affiliate links */
.affiliate-link {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: 600;
}

.affiliate-link:hover {
  color: var(--primary-hover);
  text-decoration: none;
}

/* Product recommendations */
.product-recommendations {
  margin: 50px auto;
  padding: 30px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.product-recommendations h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.product-disclaimer {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-bottom: 20px;
  font-style: italic;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.product-card {
  padding: 20px;
  transition: transform 0.2s;
}

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

.product-link {
  text-decoration: none;
  color: inherit;
}

.product-image {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 15px;
}

.product-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.product-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.product-rating {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 10px;
}

.product-cta {
  font-size: 0.9rem;
  padding: 8px 16px;
}

/* Related articles */
.related-articles {
  margin: 40px auto;
  padding: 25px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.related-articles h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

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

.related-list li {
  margin-bottom: 10px;
}

.related-list a {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* ===== BLOG INDEX ===== */
.blog-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.blog-header {
  text-align: center;
  margin-bottom: 40px;
}

.blog-header h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 15px;
}

.blog-intro {
  font-size: 1.1rem;
  opacity: 0.8;
  line-height: 1.7;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.blog-card {
  padding: 25px;
}

.blog-card h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.blog-card h2 a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

.blog-card h2 a:hover {
  color: var(--primary-color);
}

.excerpt {
  font-size: 0.95rem;
  opacity: 0.8;
  margin-bottom: 15px;
  line-height: 1.6;
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  opacity: 0.7;
}

.read-more {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: 600;
  font-size: 0.9rem;
}

.read-more:hover {
  color: var(--primary-hover);
}

/* ===== LEGAL PAGES ===== */
.legal-body {
  padding: 40px;
  max-width: 800px;
  margin: 40px auto;
}

.legal-body h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.legal-body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 28px;
  margin-bottom: 12px;
}

.legal-body p {
  margin-bottom: 16px;
  opacity: 0.9;
  line-height: 1.6;
}

.legal-body ul {
  margin-left: 24px;
  margin-bottom: 16px;
}

.legal-body li {
  margin-bottom: 8px;
  opacity: 0.9;
}

.legal-body code {
  background: rgba(0, 0, 0, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ===== CARDS ===== */
.card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 40px 0;
  text-align: center;
  opacity: 0.85;
  margin-top: 40px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 1;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
  border: none;
  text-align: center;
}

.btn:active { transform: scale(0.98); }

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

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

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--text-color);
}

/* ===== COOKIE BANNER ===== */
.cookie-banner-fixed {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 500px;
  z-index: 10000;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(16px);
}

.cookie-banner-fixed.dark-theme {
  background: rgba(15, 15, 20, 0.95);
  border-color: rgba(255, 255, 255, 0.08);
  color: #f3f4f6;
}

.cookie-banner-content p {
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.5;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-banner-actions .btn {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.cookie-policy-link {
  font-size: 0.85rem;
  text-decoration: underline;
  color: inherit;
  opacity: 0.8;
  cursor: pointer;
}

/* ===== RESPONSIVE ===== */
@media(max-width: 768px) {
  .article-content { padding: 20px 15px; }
  .article-header h1 { font-size: 2.2rem; }
  .article-section h2 { font-size: 1.7rem; }
  .article-section h3 { font-size: 1.2rem; }
  .header-container { flex-direction: column; gap: 15px; }
  .nav { text-align: center; }
  .footer-container { flex-direction: column; gap: 20px; }
  .blog-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media(max-width: 480px) {
  .article-header h1 { font-size: 1.8rem; }
  .article-section h2 { font-size: 1.5rem; }
  .blog-header h1 { font-size: 2rem; }
  .product-grid { grid-template-columns: 1fr; }
}
