/* BLOC Magazine - Unified with ODOQ Brand Style */
/* Dark Hero + Light Content | Deep Green + Terracotta */

/* ===== CSS Variables ===== */
:root {
  /* Colors - Unified with ODOQ Brand */
  --primary: #1a3c34;
  --accent: #9a4532;
  --accent-hover: #7a3828;
  --black: #0a0a0a;
  --white: #ffffff;
  --off-white: #fafafa;
  --light-gray: #f5f5f5;
  --border: #e0e0e0;
  --text: #1a1a1a;
  --text-light: #666666;
  --text-lighter: #999999;
  
  /* Typography */
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'Space Mono', monospace;
  
  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  
  /* Transitions */
  --transition: 0.2s ease;
  --transition-slow: 0.3s ease;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
  
  /* Border radius */
  --radius: 8px;
}

/* ===== Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(3rem, 8vw, 6rem); }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

/* ===== Header ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-md) var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--white);
  letter-spacing: 0.05em;
}

.logo span {
  color: var(--accent);
}

nav {
  display: flex;
  gap: var(--space-xl);
}

nav a {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color var(--transition);
  position: relative;
}

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

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

nav a:hover::after {
  width: 100%;
}

/* ===== Hero Section (Dark) ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
  color: var(--white);
  text-align: center;
  padding: calc(80px + var(--space-3xl)) var(--space-xl) var(--space-3xl);
}

.hero-content {
  max-width: 900px;
}

.hero h1 {
  font-size: clamp(4rem, 12vw, 8rem);
  margin-bottom: var(--space-lg);
}

.hero h1 span {
  color: var(--accent);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-2xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: var(--space-md) var(--space-xl);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-block;
  border: 2px solid var(--white);
  color: var(--white);
  padding: var(--space-md) var(--space-xl);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--black);
}

/* ===== Stats Section ===== */
.stats-section {
  background: var(--primary);
  color: var(--white);
  padding: var(--space-2xl) var(--space-xl);
}

.stats-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: var(--space-3xl);
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
  margin-top: var(--space-xs);
}

/* ===== Articles Section ===== */
.articles-section {
  padding: var(--space-3xl) var(--space-xl);
  background: var(--white);
}

.section-header {
  max-width: 1400px;
  margin: 0 auto var(--space-2xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.section-header h2 {
  color: var(--primary);
}

.articles-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--space-xl);
}

/* ===== Article Card ===== */
.article-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-xl);
  transition: all var(--transition-slow);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.article-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.article-cat {
  display: inline-block;
  background: var(--light-gray);
  color: var(--primary);
  padding: var(--space-xs) var(--space-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 4px;
  width: fit-content;
}

.article-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text);
  line-height: 1.2;
}

.article-subtitle {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.5;
}

.article-meta {
  color: var(--text-lighter);
  font-size: 0.8rem;
  margin-top: auto;
}

/* ===== Categories Section ===== */
.categories-section {
  padding: var(--space-3xl) var(--space-xl);
  background: var(--off-white);
}

.categories-content {
  max-width: 1400px;
  margin: 0 auto;
}

.categories-content h2 {
  text-align: center;
  color: var(--primary);
  margin-bottom: var(--space-2xl);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
}

.category-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--transition-slow);
}

.category-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.category-card h3 {
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.category-card p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ===== Footer ===== */
footer {
  background: var(--black);
  color: var(--white);
  padding: var(--space-3xl) var(--space-xl) var(--space-xl);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-section h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: var(--space-md);
  color: var(--white);
}

.footer-section a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
  transition: color var(--transition);
}

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

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
}

/* ===== Loading State ===== */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.loading-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== Toast ===== */
.toast-container {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  z-index: 9999;
}

/* ===== Skip Link ===== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: var(--white);
  padding: var(--space-sm) var(--space-md);
  z-index: 10000;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* ===== Language Switcher ===== */
.lang-switcher {
  display: flex;
  gap: var(--space-xs);
  margin-left: var(--space-xl);
}

.lang-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  padding: var(--space-xs) var(--space-sm);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
}

.lang-btn:hover,
.lang-btn.active {
  background: var(--accent);
  border-color: var(--accent);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .header-content {
    padding: var(--space-md);
  }
  
  nav {
    gap: var(--space-md);
  }
  
  nav a {
    font-size: 0.8rem;
  }
  
  .hero {
    padding: calc(60px + var(--space-xl)) var(--space-md) var(--space-xl);
  }
  
  .stats-content {
    gap: var(--space-xl);
  }
  
  .articles-grid {
    grid-template-columns: 1fr;
  }
  
  .section-header {
    flex-direction: column;
    text-align: center;
  }
}
