/* ================================================================
   BLOG ARTICLE — CYBERPUNK ARTICLE STYLES
   ================================================================ */

/* ============================================================
   ROOT VARIABLES
   ============================================================ */
:root {
  --profile-bg: #0a0508;
  --profile-glass: rgba(10, 5, 20, 0.55);
  --profile-glass-border: rgba(255, 0, 234, 0.12);
  --profile-text: #f5eaff;
  --profile-text-muted: rgba(255, 255, 255, 0.3);

  --accent: #ff00ea;
  --accent-dim: rgba(255, 0, 234, 0.08);
  --accent-glow: 0 0 40px rgba(255, 0, 234, 0.15);
  --accent-glow-strong: 0 0 60px rgba(255, 0, 234, 0.25);

  --accent-secondary: #58ebfe;
  --font-display: "Orbitron", "Rajdhani", monospace;
  --font-condensed: "Rajdhani", "Orbitron", sans-serif;
  --font-mono: "Share Tech Mono", monospace;

  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-smooth: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

.blog-article-page {
  background: var(--profile-bg);
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================================
   GLASS PANEL
   ============================================================ */
.glass-panel {
  background: var(--profile-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--profile-glass-border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.6), var(--accent-glow);
  transition: all var(--transition);
}

.glass-panel:hover {
  background: rgba(10, 5, 20, 0.65);
  box-shadow: 0 12px 48px rgba(0,0,0,0.7), var(--accent-glow-strong);
  border-color: rgba(255, 0, 234, 0.25);
}

/* ============================================================
   ARTICLE MAIN
   ============================================================ */
.article-main {
  padding: 40px 0 80px;
  background: var(--profile-bg);
  min-height: 100vh;
}

.article-container {
  border-radius: 8px;
  padding: 3rem 4rem;
  position: relative;
}

/* Corner brackets */
.article-container::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: 16px;
  height: 16px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  opacity: 0.15;
  pointer-events: none;
}

.article-container::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 16px;
  height: 16px;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  opacity: 0.15;
  pointer-events: none;
}

/* ============================================================
   BACK LINK
   ============================================================ */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition);
  margin-bottom: 1.5rem;
}

.back-link:hover {
  color: var(--accent-secondary);
  gap: 12px;
}

/* ============================================================
   ARTICLE HEADER
   ============================================================ */
.article-header {
  margin-bottom: 1.5rem;
}

.article-category {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-secondary);
  padding: 2px 12px;
  border: 1px solid rgba(88, 235, 254, 0.15);
  border-radius: 2px;
  background: rgba(88, 235, 254, 0.05);
  margin-bottom: 0.5rem;
}

.article-header h1 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.article-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.article-meta i {
  color: var(--accent-secondary);
  font-size: 0.6rem;
}

/* ============================================================
   ARTICLE IMAGE
   ============================================================ */
.article-image {
  margin: 1.5rem 0 2rem;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--accent-dim);
  border: 1px solid var(--profile-glass-border);
}

.article-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--text-muted);
  opacity: 0.3;
}

/* ============================================================
   ARTICLE BODY
   ============================================================ */
.article-body {
  max-width: 700px;
  margin: 0 auto;
}

.article-body .lead {
  font-size: 1.15rem;
  color: var(--text-primary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 2rem 0 0.5rem;
  letter-spacing: 0.5px;
}

.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 1.5rem 0 0.5rem;
}

.article-body p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

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

.article-body ul, .article-body ol {
  margin: 0.5rem 0 1rem;
  padding-left: 1.5rem;
}

.article-body ul li, .article-body ol li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 0.3rem;
}

/* ============================================================
   BLOCKQUOTE
   ============================================================ */
.article-body blockquote {
  margin: 1.5rem 0;
  padding: 1.5rem 2rem;
  background: var(--accent-dim);
  border-left: 3px solid var(--accent);
  border-radius: 2px;
  position: relative;
}

.article-body blockquote p {
  font-size: 1.05rem;
  color: var(--text-primary);
  font-style: italic;
  margin: 0;
  line-height: 1.6;
}

.article-body blockquote cite {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  font-style: normal;
}

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

.article-tags .tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  padding: 2px 10px;
  border: 1px solid var(--profile-glass-border);
  border-radius: 2px;
  background: rgba(255,255,255,0.02);
}

.article-tags .tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================================
   AUTHOR BIO
   ============================================================ */
.author-bio {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(255,255,255,0.02);
  border-radius: 4px;
  border: 1px solid var(--profile-glass-border);
}

.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.author-info h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.author-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============================================================
   RELATED ARTICLES
   ============================================================ */
.related-articles {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--profile-glass-border);
}

.related-articles h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.related-card {
  padding: 1rem 1.25rem;
  border-radius: 4px;
  text-decoration: none;
  transition: all var(--transition);
  display: block;
}

.related-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--accent-glow);
}

.related-card h4 {
  font-family: var(--font-condensed);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

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

/* ============================================================
   THEME TOGGLE
   ============================================================ */
.theme-toggle-wrapper {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
}

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--profile-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--profile-glass-border);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: var(--font-condensed);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 8px 32px rgba(0,0,0,0.6), var(--accent-glow);
}

.theme-toggle:hover {
  background: var(--accent-dim);
  transform: scale(1.04);
  box-shadow: 0 12px 48px rgba(0,0,0,0.7), var(--accent-glow-strong);
  border-color: var(--accent);
}

/* ============================================================
   LIGHT THEME
   ============================================================ */
[data-theme="light"] {
  --profile-bg: #f5f0e8;
  --profile-glass: rgba(255, 255, 255, 0.6);
  --profile-glass-border: rgba(173, 3, 252, 0.12);
  --profile-text: #1a102a;
  --profile-text-muted: rgba(26, 16, 42, 0.4);
}

[data-theme="light"] .glass-panel {
  background: rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .glass-panel:hover {
  background: rgba(255, 255, 255, 0.7);
}

[data-theme="light"] .related-card {
  background: rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .related-card:hover {
  background: rgba(255, 255, 255, 0.7);
}

[data-theme="light"] .author-bio {
  background: rgba(255, 255, 255, 0.3);
}

[data-theme="light"] .theme-toggle {
  background: rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.7);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .article-container {
    padding: 1.5rem;
  }

  .article-header h1 {
    font-size: 2rem;
  }

  .article-body .lead {
    font-size: 1rem;
  }

  .article-body h2 {
    font-size: 1.3rem;
  }

  .article-body blockquote {
    padding: 1rem 1.25rem;
  }

  .article-body blockquote p {
    font-size: 0.95rem;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .author-bio {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .article-meta {
    gap: 0.75rem;
    font-size: 0.6rem;
  }
}

@media (max-width: 480px) {
  .article-container {
    padding: 1rem;
  }

  .article-header h1 {
    font-size: 1.6rem;
  }

  .article-body h2 {
    font-size: 1.1rem;
  }

  .article-body p {
    font-size: 0.9rem;
  }

  .article-body ul li, .article-body ol li {
    font-size: 0.85rem;
  }
}
