/* Super Pissed Theme - Rage Zine Aesthetic */

:root {
  --bg-primary: #0b0b0d;
  --bg-secondary: #141015;
  --bg-tertiary: #1a141b;
  --panel: #19131a;
  --text-primary: #f5f1ed;
  --text-secondary: #d7c9c1;
  --text-muted: #b0988f;
  --accent-red: #e10600;
  --accent-darkred: #8c0a0a;
  --accent-orange: #ff6b00;
  --accent-yellow: #f2a900;
  --link-color: #ff3b30;
  --link-hover: #ffd166;
  --border-color: #2a1e27;
  --shadow: 0 18px 35px rgba(0, 0, 0, 0.45);
  --glow: 0 0 18px rgba(225, 6, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 16px;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(225, 6, 0, 0.08), transparent 45%),
    radial-gradient(circle at 85% 0%, rgba(255, 107, 0, 0.08), transparent 50%),
    linear-gradient(180deg, rgba(11, 11, 13, 0.9) 0%, rgba(11, 11, 13, 1) 100%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.015) 0px,
    rgba(255, 255, 255, 0.015) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.25;
  z-index: 1;
}

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

main, header, footer, aside, section {
  position: relative;
  z-index: 2;
}

/* ===== HEADER ===== */
.site-header {
  background: rgba(10, 8, 12, 0.95);
  border-bottom: 2px solid var(--accent-red);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}

.site-header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.branding {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 3px;
  color: var(--accent-red);
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: var(--glow);
}

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

.site-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  position: relative;
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--accent-yellow);
  transition: width 0.2s ease;
}

.site-nav a:hover {
  color: var(--accent-yellow);
}

.site-nav a:hover::after {
  width: 100%;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  border-bottom: 2px solid var(--border-color);
}

.hero-background {
  position: absolute;
  inset: 0;
  background-image: url('/images/hero-banner.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.55) saturate(1.2);
  transform: scale(1.03);
}

.hero-background::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 11, 13, 0.2) 0%,
    rgba(11, 11, 13, 0.85) 80%,
    rgba(11, 11, 13, 1) 100%
  );
}

.hero-content {
  position: relative;
  max-width: 900px;
  padding: 3rem 2rem;
  z-index: 2;
}

.hero-kicker {
  display: inline-block;
  padding: 0.35rem 1rem;
  border: 1px solid var(--accent-yellow);
  color: var(--accent-yellow);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  margin-bottom: 1rem;
  background: rgba(0, 0, 0, 0.35);
}

.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.2rem;
  color: var(--text-primary);
  margin: 0 0 1rem 0;
  letter-spacing: 1px;
  text-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
}

.hero p {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* ===== MAIN LAYOUT ===== */
.layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
}

main {
  min-width: 0;
}

/* ===== ARTICLES LIST ===== */
.articles {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.article-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-red);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.article-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-yellow);
}

.article-card h2 {
  margin: 0 0 0.6rem 0;
  font-size: 1.4rem;
  line-height: 1.3;
}

.article-card h2 a {
  color: var(--text-primary);
  text-decoration: none;
}

.article-card h2 a:hover {
  color: var(--accent-yellow);
}

.article-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  gap: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.article-summary {
  margin: 0;
  color: var(--text-secondary);
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  color: var(--accent-yellow);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

/* ===== FULL ARTICLE ===== */
article.full {
  background: var(--panel);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

article.full h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.4rem;
  color: var(--text-primary);
  margin: 0 0 1rem 0;
}

.page-sub {
  color: var(--text-muted);
  margin-top: 0.25rem;
}

article.full .article-meta {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.article-content h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  color: var(--accent-yellow);
  margin: 2.5rem 0 1rem 0;
}

.article-content h3 {
  font-size: 1.1rem;
  color: var(--accent-orange);
  margin: 1.5rem 0 0.75rem 0;
}

.article-content p {
  margin: 0 0 1.2rem 0;
}

.article-content a {
  color: var(--link-color);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 107, 0, 0.4);
}

.article-content a:hover {
  color: var(--link-hover);
  border-bottom-color: var(--accent-yellow);
}

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

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

.article-content blockquote {
  margin: 1.5rem 0;
  padding: 1.2rem 1.5rem;
  border-left: 4px solid var(--accent-red);
  background: rgba(225, 6, 0, 0.08);
  color: var(--text-secondary);
}

.article-content code {
  background: rgba(0, 0, 0, 0.6);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  border: 1px solid var(--border-color);
  color: var(--accent-yellow);
  font-size: 0.9em;
}

.article-content pre {
  background: #0a070b;
  padding: 1.2rem;
  border: 1px solid var(--accent-darkred);
  border-left: 4px solid var(--accent-red);
  overflow-x: auto;
}

.article-content pre code {
  background: none;
  border: none;
  color: var(--text-secondary);
}

.article-content img {
  border: 1px solid var(--border-color);
  margin: 1.5rem 0;
}

/* ===== TAGS ===== */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  background: rgba(225, 6, 0, 0.1);
  color: var(--accent-yellow);
  border: 1px solid var(--border-color);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.tag::before {
  content: '#';
}

.tag:hover {
  border-color: var(--accent-yellow);
  color: var(--text-primary);
}

/* ===== TAGS INDEX ===== */
.tags-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.tag-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 1.25rem;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.tag-card:hover {
  border-color: var(--accent-yellow);
  transform: translateY(-2px);
}

.tag-card .tag-name {
  color: var(--text-primary);
  font-weight: 700;
  margin: 0 0 0.5rem 0;
}

.tag-card .tag-count {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ===== SIDEBAR ===== */
aside {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.sidebar-section h3 {
  margin: 0 0 1rem 0;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  color: var(--accent-yellow);
}

.sidebar-section p {
  margin: 0 0 0.75rem 0;
}

.sidebar-section .view-all {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--accent-yellow);
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.sidebar-section .view-all:hover {
  color: var(--accent-orange);
}

.sidebar-section.hotline {
  border-left: 4px solid var(--accent-red);
}

.hotline-note {
  color: var(--text-muted);
  font-style: italic;
}

.sidebar-section.ad-slot {
  border: 1px dashed var(--accent-darkred);
  background: rgba(225, 6, 0, 0.08);
}

.ad-label {
  color: var(--text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
}

.promo-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  padding: 1rem;
  text-align: left;
}

.promo-box strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.3rem;
}

.promo-box .author {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.promo-box .cta {
  color: var(--accent-yellow);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #0a070b;
  border-top: 2px solid var(--accent-red);
  padding: 2.5rem 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.site-footer a {
  color: var(--accent-yellow);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent-orange);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1000px) {
  .layout {
    grid-template-columns: 1fr;
  }

  aside {
    order: 2;
  }

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

@media (max-width: 640px) {
  body::before {
    display: none;
  }

  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    gap: 1rem;
  }

  .hero {
    min-height: 320px;
  }

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

  .layout {
    padding: 2rem 1.5rem 3rem;
  }

  article.full {
    padding: 1.5rem;
  }
}
