/* ===== KUZAZA CYBERPUNK THEME ===== */

:root {
  --background: #0a0a0a;
  --foreground: #f0f0f0;
  --card: #111111;
  --card-foreground: #f0f0f0;
  --primary: #ff2a2a;
  --primary-foreground: #ffffff;
  --secondary: #1a1a1a;
  --secondary-foreground: #f0f0f0;
  --muted: #1a1a1a;
  --muted-foreground: #888888;
  --accent: #39ff14;
  --accent-foreground: #0a0a0a;
  --border: #39ff14;
  --input: #1a1a1a;
  --ring: #39ff14;
  --radius: 0;

  --neon-green: #39ff14;
  --blood-red: #ff2a2a;
  --cyber-blue: #00d4ff;
  --dark-bg: #0a0a0a;
  --card-bg: #111111;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: 'Space Mono', 'Courier New', monospace;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
}

/* Noise overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 9999;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Anton', 'Arial Black', sans-serif;
  text-transform: uppercase;
}

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

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

/* ===== LAYOUT ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.min-h-screen {
  min-height: 100vh;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-1 {
  flex: 1;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.text-center {
  text-align: center;
}

.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }

.border-b-3 { border-bottom: 3px solid; }
.border-t-3 { border-top: 3px solid; }
.border-y-3 { border-top: 3px solid; border-bottom: 3px solid; }
.border-2 { border: 2px solid; }
.border-3 { border: 3px solid; }
.border-transparent { border-color: transparent; }
.border-accent { border-color: var(--accent); }
.border-accent\/30 { border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.border-accent\/50 { border-color: color-mix(in srgb, var(--accent) 50%, transparent); }

.bg-background { background: var(--background); }
.bg-card { background: var(--card); }
.bg-primary { background: var(--primary); }
.bg-accent { background: var(--accent); }
.bg-accent\/30 { background: color-mix(in srgb, var(--accent) 30%, transparent); }

.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-foreground { color: var(--foreground); }
.text-muted-foreground { color: var(--muted-foreground); }
.text-primary-foreground { color: var(--primary-foreground); }
.text-accent-foreground { color: var(--accent-foreground); }
.text-primary { color: var(--primary); }
.text-\[10px\] { font-size: 10px; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }

.font-sans { font-family: 'Anton', 'Arial Black', sans-serif; }
.font-mono { font-family: 'Space Mono', 'Courier New', monospace; }
.uppercase { text-transform: uppercase; }
.leading-tight { line-height: 1.1; }
.leading-relaxed { line-height: 1.6; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-\[0\.3em\] { letter-spacing: 0.3em; }

.whitespace-nowrap { white-space: nowrap; }
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.bottom-3 { bottom: 0.75rem; }
.left-3 { left: 0.75rem; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

.block { display: block; }
.inline-flex { display: inline-flex; }
.hidden { display: none; }

.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.w-full { width: 100%; }
.h-px { height: 1px; }
.h-32 { height: 8rem; }
.h-48 { height: 12rem; }
.h-64 { height: 16rem; }

/* ===== GRID ===== */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }

/* ===== ANIMATIONS ===== */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes glitch {
  0%, 100% { text-shadow: 2px 0 var(--neon-green), -2px 0 var(--blood-red); }
  25% { text-shadow: -2px 0 var(--neon-green), 2px 0 var(--blood-red); }
  50% { text-shadow: 2px 2px var(--neon-green), -2px -2px var(--blood-red); }
  75% { text-shadow: -2px 2px var(--neon-green), 2px -2px var(--blood-red); }
}

.glitch-hover:hover {
  animation: glitch 0.3s ease-in-out infinite;
}

@keyframes ticker {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.ticker-scroll {
  animation: ticker 20s linear infinite;
}

.card-jump {
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.card-jump:hover {
  transform: translate(-3px, -3px);
}

.scanlines::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.1) 2px,
    rgba(0, 0, 0, 0.1) 4px
  );
  pointer-events: none;
  z-index: 2;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--background);
  border-bottom: 3px solid var(--accent);
}

.breaking-ticker {
  background: var(--primary);
  overflow: hidden;
  padding: 0.25rem 0;
}

.breaking-ticker .ticker-scroll {
  display: flex;
  gap: 2rem;
}

.breaking-ticker .ticker-scroll span {
  color: var(--primary-foreground);
  font-family: 'Anton', 'Arial Black', sans-serif;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo h1 {
  font-size: 2.5rem;
  margin: 0;
  letter-spacing: -0.025em;
  color: var(--primary);
  transition: all 0.3s;
}

.logo p {
  font-size: 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-family: 'Space Mono', 'Courier New', monospace;
  margin: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-nav a {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-family: 'Space Mono', 'Courier New', monospace;
  text-transform: uppercase;
  border: 2px solid transparent;
  color: var(--foreground);
  transition: all 0.2s;
}

.main-nav a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.mobile-menu-btn {
  display: none;
  padding: 0.5rem;
  border: 2px solid var(--accent);
  background: none;
  color: var(--accent);
  cursor: pointer;
}

.mobile-menu-btn svg {
  display: block;
}

.mobile-nav {
  display: none;
  padding-bottom: 1rem;
}

.mobile-nav.open {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav a {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-family: 'Space Mono', 'Courier New', monospace;
  text-transform: uppercase;
  border: 2px solid var(--accent);
  color: var(--accent);
  transition: all 0.2s;
}

.mobile-nav a:hover {
  background: var(--accent);
  color: var(--accent-foreground);
}

/* ===== NEWS SECTION HEADERS ===== */
.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  font-family: 'Anton', 'Arial Black', sans-serif;
  font-size: 1.5rem;
  margin: 0;
  white-space: nowrap;
}

.section-header .header-line {
  flex: 1;
  height: 1px;
  background: color-mix(in srgb, var(--accent) 30%, transparent);
}

/* ===== NEWS CARDS ===== */
.news-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.news-card {
  position: relative;
  border: 3px solid var(--accent);
  background: var(--card);
  overflow: hidden;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.news-card:hover {
  transform: translate(-3px, -3px);
}

.news-card.default {
  box-shadow: 5px 5px 0px var(--blood-red);
}

.news-card.default:hover {
  box-shadow: 8px 8px 0px var(--blood-red);
}

.news-card.featured {
  box-shadow: 8px 8px 0px var(--blood-red);
}

.news-card.featured:hover {
  box-shadow: 8px 8px 0px var(--blood-red);
}

.news-card.compact {
  box-shadow: 5px 5px 0px var(--blood-red);
}

.breaking-badge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.25rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.breaking-badge svg {
  animation: pulse 2s ease-in-out infinite;
}

.breaking-badge span {
  font-size: 10px;
  font-family: 'Space Mono', 'Courier New', monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-image {
  position: relative;
  overflow: hidden;
}

.card-image.default-img {
  height: 12rem;
}

.card-image.featured-img {
  height: 16rem;
}

.card-image.compact-img {
  height: 8rem;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: all 0.3s;
}

.news-card:hover .card-image img {
  filter: grayscale(0%);
}

.card-image .img-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--card), transparent);
}

.category-badge {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.5rem;
  font-size: 10px;
  font-family: 'Space Mono', 'Courier New', monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.category-badge.tech { background: var(--cyber-blue); color: black; }
.category-badge.politics { background: var(--primary); color: white; }
.category-badge.crypto { background: #f7931a; color: black; }
.category-badge.culture { background: #9945ff; color: white; }
.category-badge.default-cat { background: var(--muted); color: var(--foreground); }

.card-content {
  padding: 1rem;
}

.news-card.featured .card-content {
  padding: 1.5rem;
}

.card-content h2 {
  font-family: 'Anton', 'Arial Black', sans-serif;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0;
  transition: all 0.3s;
}

.card-content h2.card-title-lg {
  font-size: 1.875rem;
}

.card-content h2.card-title-md {
  font-size: 1.25rem;
}

.card-content h2.card-title-sm {
  font-size: 0.875rem;
}

.news-card .card-content h2:hover {
  animation: glitch 0.3s ease-in-out infinite;
}

.card-excerpt {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  font-family: 'Space Mono', 'Courier New', monospace;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 10px;
  color: var(--muted-foreground);
  font-family: 'Space Mono', 'Courier New', monospace;
  text-transform: uppercase;
}

.card-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.card-hover-overlay {
  position: absolute;
  inset: 0;
  border: 3px solid transparent;
  pointer-events: none;
  transition: border-color 0.2s;
}

.news-card:hover .card-hover-overlay {
  border-color: var(--primary);
}

/* ===== FEATURED GRID ===== */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* ===== BREAKING SIDEBAR ===== */
.breaking-section {
  background: var(--card);
}

.breaking-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* ===== LATEST GRID ===== */
.latest-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* ===== LOAD MORE BUTTON ===== */
.load-more-btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: 'Space Mono', 'Courier New', monospace;
  text-transform: uppercase;
  font-size: 0.875rem;
  border: 3px solid var(--primary);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 4px 4px 0px var(--neon-green);
}

.load-more-btn:hover {
  background: transparent;
  color: var(--primary);
  box-shadow: 6px 6px 0px var(--neon-green);
  transform: translate(-2px, -2px);
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--card);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  text-align: center;
}

.stat-item {
  padding: 1rem;
  border: 2px solid color-mix(in srgb, var(--accent) 30%, transparent);
}

.stat-value {
  font-family: 'Anton', 'Arial Black', sans-serif;
  font-size: 1.875rem;
  line-height: 1;
}

.stat-value.primary { color: var(--primary); }
.stat-value.accent { color: var(--accent); }
.stat-value.blue { color: var(--cyber-blue); }
.stat-value.orange { color: #f7931a; }

.stat-label {
  font-size: 0.75rem;
  font-family: 'Space Mono', 'Courier New', monospace;
  color: var(--muted-foreground);
  text-transform: uppercase;
  margin-top: 0.25rem;
}

/* ===== FOOTER ===== */
.site-footer {
  border-top: 3px solid var(--accent);
  background: var(--card);
  margin-top: auto;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem 0;
}

.footer-logo h2 {
  font-family: 'Anton', 'Arial Black', sans-serif;
  font-size: 1.5rem;
  color: var(--primary);
  margin: 0;
}

.footer-logo p {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  font-family: 'Space Mono', 'Courier New', monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.footer-links a {
  font-size: 0.875rem;
  font-family: 'Space Mono', 'Courier New', monospace;
  text-transform: uppercase;
  color: var(--muted-foreground);
  transition: color 0.2s;
}

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

.footer-copy {
  font-size: 0.75rem;
  font-family: 'Space Mono', 'Courier New', monospace;
  color: var(--muted-foreground);
  margin: 0;
}

.footer-divider {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.footer-divider .line {
  flex: 1;
  height: 1px;
  background: color-mix(in srgb, var(--accent) 30%, transparent);
}

.footer-divider .dots {
  color: var(--accent);
  font-size: 0.75rem;
  font-family: 'Space Mono', 'Courier New', monospace;
}

/* ===== ARTICLE PAGE ===== */
.article-back {
  padding: 1rem 0;
}

.article-back a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-family: 'Space Mono', 'Courier New', monospace;
  color: var(--muted-foreground);
  transition: color 0.2s;
}

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

.article-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-family: 'Space Mono', 'Courier New', monospace;
  text-transform: uppercase;
}

.article-title {
  font-family: 'Anton', 'Arial Black', sans-serif;
  font-size: 2.25rem;
  color: var(--primary);
  margin: 1.5rem 0;
  line-height: 1.1;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 3px solid color-mix(in srgb, var(--accent) 30%, transparent);
  font-size: 0.875rem;
  font-family: 'Space Mono', 'Courier New', monospace;
  color: var(--muted-foreground);
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-meta .share-btn {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  transition: color 0.2s;
}

.article-meta .share-btn:hover {
  color: var(--primary);
}

.article-image {
  position: relative;
  height: 16rem;
  border: 3px solid var(--accent);
  overflow: hidden;
  margin: 2rem 0;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-content {
  max-width: 56rem;
  margin: 0 auto;
}

.article-excerpt {
  font-size: 1.125rem;
  font-family: 'Space Mono', 'Courier New', monospace;
  line-height: 1.6;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.article-body {
  font-family: 'Space Mono', 'Courier New', monospace;
  line-height: 1.6;
  color: var(--foreground);
}

.article-body p {
  margin-bottom: 1.5rem;
}

.article-tags {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 3px solid color-mix(in srgb, var(--accent) 30%, transparent);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.article-tags .tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-tags .tags span.label {
  font-size: 0.75rem;
  font-family: 'Space Mono', 'Courier New', monospace;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.article-tags .tags .tag {
  padding: 0.25rem 0.5rem;
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  font-size: 0.75rem;
  font-family: 'Space Mono', 'Courier New', monospace;
  color: var(--accent);
}

.related-section {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 3px solid var(--accent);
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* ===== CATEGORY PAGE ===== */
.category-header {
  background: var(--card);
  border-bottom: 3px solid var(--accent);
}

.category-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.category-info .icon {
  flex-shrink: 0;
}

.category-info .icon svg {
  display: block;
}

.category-info h1 {
  font-size: 2.5rem;
  margin: 0;
}

.category-desc {
  font-family: 'Space Mono', 'Courier New', monospace;
  color: var(--muted-foreground);
  max-width: 42rem;
}

.category-count {
  margin-top: 1rem;
  font-size: 0.875rem;
  font-family: 'Space Mono', 'Courier New', monospace;
  color: var(--accent);
}

.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 768px) {
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .breaking-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .latest-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .related-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-content {
    flex-direction: row;
  }

  .main-nav {
    display: flex;
  }

  .mobile-menu-btn {
    display: none;
  }

  .article-image {
    height: 24rem;
  }

  .article-title {
    font-size: 3rem;
  }

  .grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .logo h1 {
    font-size: 3rem;
  }

  .category-info h1 {
    font-size: 3rem;
  }
}

@media (max-width: 767px) {
  .main-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .card-image.featured-img {
    height: 14rem;
  }
}
