/* Navigation */
.site-nav {
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold), #f0d68a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.nav-link.active {
  color: var(--gold);
  background: var(--bg-card);
}

/* Blog Layout */
.blog-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
}

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

.blog-header h1 {
  font-size: 2rem;
  background: linear-gradient(135deg, var(--gold), #f0d68a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.blog-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* Blog Cards Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.blog-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.blog-card-img {
  width: 100%;
  height: 180px;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  border-bottom: 1px solid var(--border);
}

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

.blog-card-tag {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--accent);
  background: rgba(10, 203, 230, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
  align-self: flex-start;
}

.blog-card-tag.tier-list {
  color: var(--gold);
  background: rgba(200, 170, 110, 0.15);
}

.blog-card-tag.guide {
  color: var(--green);
  background: rgba(46, 204, 113, 0.1);
}

.blog-card-tag.strategy {
  color: var(--orange);
  background: rgba(243, 156, 18, 0.1);
}

.blog-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.blog-card-excerpt {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
}

.blog-card-meta {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

/* Article Layout */
.article-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 24px;
  transition: color 0.2s;
}

.article-back:hover {
  color: var(--gold);
}

.article-tag {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--accent);
  background: rgba(10, 203, 230, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.article-tag.tier-list {
  color: var(--gold);
  background: rgba(200, 170, 110, 0.15);
}

.article-tag.guide {
  color: var(--green);
  background: rgba(46, 204, 113, 0.1);
}

.article-tag.strategy {
  color: var(--orange);
  background: rgba(243, 156, 18, 0.1);
}

.article-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 12px;
}

.article-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.article-content h2 {
  font-size: 1.4rem;
  color: var(--gold);
  margin: 32px 0 16px;
}

.article-content h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin: 24px 0 12px;
}

.article-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.article-content ul,
.article-content ol {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
  padding-left: 24px;
  font-size: 0.95rem;
}

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

.article-content strong {
  color: var(--text-primary);
}

.article-content blockquote {
  border-left: 3px solid var(--gold-dim);
  padding: 12px 20px;
  margin: 20px 0;
  background: var(--bg-card);
  border-radius: 0 8px 8px 0;
}

.article-content blockquote p {
  color: var(--text-secondary);
  margin-bottom: 0;
  font-style: italic;
}

.tier-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9rem;
}

.tier-table th {
  background: var(--bg-card);
  color: var(--gold);
  text-align: left;
  padding: 10px 14px;
  border: 1px solid var(--border);
  font-weight: 700;
}

.tier-table td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.tier-table tr:nth-child(even) td {
  background: var(--bg-card);
}

.tier-s { color: #ff7675; font-weight: 700; }
.tier-a { color: var(--orange); font-weight: 700; }
.tier-b { color: var(--gold); font-weight: 700; }
.tier-c { color: var(--text-secondary); font-weight: 600; }

/* CTA Banner */
.article-cta {
  background: linear-gradient(135deg, var(--bg-card), rgba(120, 90, 40, 0.2));
  border: 1px solid var(--gold-dim);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  margin-top: 40px;
}

.article-cta h3 {
  color: var(--gold);
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.article-cta p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold-dim), var(--gold));
  color: var(--bg-dark);
  padding: 10px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: opacity 0.2s;
}

.cta-btn:hover {
  opacity: 0.9;
}

/* Footer */
.site-footer {
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  padding: 40px 20px;
  margin-top: 60px;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

.footer-col h4 {
  color: var(--gold);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.footer-col a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 3px 0;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  max-width: 1000px;
  margin: 24px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.75rem;
  text-align: center;
}

/* Cookie Consent Banner */
#cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-panel);
  border-top: 1px solid var(--gold-dim);
  padding: 16px 20px;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

.cookie-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-inner p {
  flex: 1;
  min-width: 240px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
}

.cookie-inner a {
  color: var(--gold);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-buttons button {
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
}

.cookie-buttons button:hover {
  opacity: 0.85;
}

#cookie-accept {
  background: linear-gradient(135deg, var(--gold-dim), var(--gold));
  color: var(--bg-dark);
}

#cookie-essential {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

/* Author byline */
.article-author {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.article-author strong {
  color: var(--text-primary);
}

@media (max-width: 600px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .article-title {
    font-size: 1.5rem;
  }
  .nav-logo {
    font-size: 0.9rem;
  }
}
