/* Editorial & High-Conversion News/Article Theme */
:root {
  --bg-body: #fbfbfd;
  --bg-card: #ffffff;
  --text-main: #141420;
  --text-body: #33334a;
  --text-muted: #6b6b80;
  --border: #ececf3;
  --accent-gradient: linear-gradient(120deg, #667eea, #764ba2 50%, #ff6b9d);
  --primary: #667eea;
  --radius: 14px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 251, 253, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.navbar {
  display: flex;
  align-items: center;
  height: 66px;
  gap: 20px;
}

.logo {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.8px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 8px;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 0;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-link {
  font-size: 13.5px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 99px;
  color: var(--text-muted);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
  background: linear-gradient(120deg, #667eea, #764ba2);
  box-shadow: 0 4px 14px rgba(102, 126, 234, 0.3);
}

/* Featured & Grid */
.hero-banner {
  padding: 36px 0 20px;
  text-align: center;
}

.hero-banner h1 {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.8px;
  margin-bottom: 8px;
}

.hero-banner p {
  color: var(--text-muted);
  font-size: 16px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  margin: 24px 0 40px;
}

.article-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(20, 20, 60, 0.08);
}

.card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #eee;
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-category {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 8px;
}

.card-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 10px;
  color: var(--text-main);
}

.card-summary {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.card-footer {
  font-size: 12px;
  color: #a3a3b8;
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #f2f2f7;
}

/* Article Reading Layout */
.article-detail-wrap {
  max-width: 820px;
  margin: 36px auto 60px;
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  padding: 36px 32px;
}

.detail-header {
  margin-bottom: 24px;
}

.detail-badge {
  display: inline-block;
  background: rgba(102, 126, 234, 0.1);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 99px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.detail-title {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.6px;
  margin-bottom: 14px;
}

.detail-meta {
  font-size: 13.5px;
  color: var(--text-muted);
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.detail-cover {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 28px;
}

/* Rich Text Typography */
.article-content {
  font-size: 17.5px;
  line-height: 1.85;
  color: var(--text-body);
}

.article-content p {
  margin-bottom: 22px;
}

.article-content h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 36px 0 14px;
  color: var(--text-main);
}

.article-content h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 28px 0 12px;
  color: var(--text-main);
}

.article-content ul, .article-content ol {
  margin: 0 0 24px 26px;
}

.article-content li {
  margin-bottom: 8px;
}

/* Ad Placement Containers */
.ad-slot {
  width: 100%;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: min-height 0.25s ease, margin 0.25s ease;
}

.ad-click-shield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background: transparent;
  cursor: default;
  pointer-events: auto;
}

.ad-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #a3a3b8;
  margin-bottom: 6px;
  text-align: center;
}

/* Legal Pages */
.legal-page {
  max-width: 820px;
  margin: 36px auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px 30px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.03);
}

.legal-page h1 {
  font-size: 28px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
}

.legal-page h2 {
  font-size: 18px;
  margin: 24px 0 10px;
}

.legal-page p {
  color: var(--text-body);
  margin-bottom: 14px;
  font-size: 15.5px;
}

/* Footer */
footer {
  background: #141420;
  color: #a3a3b8;
  font-size: 13px;
  padding: 40px 20px 30px;
  margin-top: auto;
  text-align: center;
}

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

.footer-links a:hover {
  color: #fff;
}

/* GDPR / CCPA Cookie Consent Banner */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(20, 20, 32, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.3);
  font-size: 13.5px;
  color: #a3a3b8;
}

@media (min-width: 768px) {
  #cookie-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 14px 32px;
  }
}

.cookie-content {
  flex: 1;
}

.cookie-content a {
  color: #667eea;
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

.btn-cookie-accept {
  background: linear-gradient(120deg, #667eea, #764ba2);
  color: #fff;
  border: none;
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 22px;
  border-radius: 99px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.btn-cookie-accept:hover {
  opacity: 0.9;
}
