/* Global variables & Custom styles for lwazi.dev */

:root {
  --bg-primary: #05040a;
  --bg-card: rgba(11, 15, 28, 0.82);
  --border-color: rgba(255, 255, 255, 0.06);
  
  --accent-cyan: #00f2fe;
  --accent-purple: #b92b27;
  --accent-violet: #8a2be2;
  --accent-cyan-rgb: 0, 242, 254;
  --accent-violet-rgb: 138, 43, 226;
  
  --text-primary: #f3f4f6;
  --text-secondary: #a3a9b6;
  --text-muted: #626875;
  
  --font-sans: 'Outfit', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --glow-shadow: 0 0 25px rgba(0, 242, 254, 0.25);
  --glow-shadow-purple: 0 0 25px rgba(138, 43, 226, 0.25);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
}

/* Background canvas and ambient glows */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: auto;
}

.ambient-glow-1 {
  position: fixed;
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vh;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.18) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
  filter: blur(80px);
}

.ambient-glow-2 {
  position: fixed;
  bottom: -10%;
  right: -10%;
  width: 60vw;
  height: 60vh;
  background: radial-gradient(circle, rgba(138, 43, 226, 0.15) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
  filter: blur(100px);
}

/* Main Container */
.container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Header Logo & Nav */
.header-logo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0.5rem 0;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-img {
  height: 32px;
  width: auto;
  display: block;
  transition: filter 0.3s ease, transform 0.3s ease;
  filter: drop-shadow(0 0 4px rgba(0, 242, 254, 0.25));
}

.logo-img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 8px rgba(0, 242, 254, 0.6)) drop-shadow(0 0 15px rgba(138, 43, 226, 0.45));
}

.logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: linear-gradient(to right, var(--text-primary) 30%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-cyan);
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: 9999px;
  padding: 0.35rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  color: var(--accent-cyan);
  text-transform: uppercase;
}

.status-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent-cyan);
}

.status-dot.pulsing {
  animation: pulse-rapid 1.5s infinite ease-in-out;
}

/* Two-Column Grid Layout */
.main-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.5rem;
  width: 100%;
  align-items: start;
}

.left-col, .right-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Dashboard Cards */
.card {
  position: relative;
  z-index: 2;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* Welcome Hero Banner Card */
.hero-banner-card {
  background: linear-gradient(135deg, rgba(14, 20, 36, 0.9) 0%, rgba(22, 12, 44, 0.45) 60%, rgba(9, 11, 20, 0.9) 100%) !important;
  border: 1px solid rgba(0, 242, 254, 0.16);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 25px rgba(0, 242, 254, 0.04);
  padding: 2.25rem !important;
  overflow: hidden;
}

.hero-banner-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(138, 43, 226, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-banner-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.terminal-micro-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.3);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  align-self: flex-start;
  margin-bottom: 0.35rem;
  display: inline-block;
}

.hero-banner-card h1 {
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 30%, #c5cadf 70%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-banner-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 640px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 1.25rem;
  margin-top: 0.25rem;
}

.hero-stat-box {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hero-stat-val {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero-stat-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Section Headings */
.section-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  border-left: 3px solid var(--accent-cyan);
  padding-left: 0.5rem;
}

/* Topic Pillars Board */
.pillars-section {
  display: flex;
  flex-direction: column;
  z-index: 2;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  width: 100%;
}

.pillar-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.9rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-secondary);
  font-family: var(--font-sans);
}

.pillar-card:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
}

.pillar-card.active {
  background: rgba(0, 242, 254, 0.05);
  border-color: rgba(0, 242, 254, 0.35);
  color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.12);
}

.pillar-icon {
  font-size: 1.35rem;
}

.pillar-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Articles Feed Header & Search */
.articles-section {
  display: flex;
  flex-direction: column;
  z-index: 2;
  margin-top: 0.5rem;
}

.feed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.feed-header .section-title {
  margin-bottom: 0;
}

.search-container {
  display: flex;
  align-items: center;
  background: rgba(7, 9, 15, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.4rem 0.8rem;
  gap: 0.5rem;
  width: 240px;
  transition: all 0.3s ease;
}

.search-container:focus-within {
  border-color: rgba(0, 242, 254, 0.4);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.1);
  background: rgba(7, 9, 15, 0.85);
}

.search-icon {
  font-size: 0.85rem;
  color: var(--text-muted);
}

#search-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.85rem;
  width: 100%;
}

#search-input::placeholder {
  color: var(--text-muted);
}

/* Articles Feed & Card UI */
.articles-feed {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.feed-placeholder {
  padding: 3rem;
  text-align: center;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: rgba(255,255,255,0.01);
  border: 1px dashed var(--border-color);
  border-radius: 12px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.article-cover-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--border-color);
}

.article-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-card:hover {
  background: rgba(15, 20, 36, 0.85);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.article-card:hover .article-cover {
  transform: scale(1.03);
}

/* Hover glows by theme category */
.article-card.theme-cloud:hover { border-color: rgba(0, 242, 254, 0.38); box-shadow: 0 10px 25px rgba(0, 242, 254, 0.05), 0 15px 30px rgba(0, 0, 0, 0.4); }
.article-card.theme-kubernetes:hover { border-color: rgba(96, 165, 250, 0.38); box-shadow: 0 10px 25px rgba(96, 165, 250, 0.05), 0 15px 30px rgba(0, 0, 0, 0.4); }
.article-card.theme-cybersecurity:hover { border-color: rgba(52, 211, 153, 0.38); box-shadow: 0 10px 25px rgba(52, 211, 153, 0.05), 0 15px 30px rgba(0, 0, 0, 0.4); }
.article-card.theme-protocols:hover { border-color: rgba(167, 139, 250, 0.38); box-shadow: 0 10px 25px rgba(167, 139, 250, 0.05), 0 15px 30px rgba(0, 0, 0, 0.4); }
.article-card.theme-learning:hover { border-color: rgba(251, 191, 36, 0.38); box-shadow: 0 10px 25px rgba(251, 191, 36, 0.05), 0 15px 30px rgba(0, 0, 0, 0.4); }

.article-content-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.article-meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  align-items: center;
  font-family: var(--font-mono);
}

.article-category {
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.cat-cloud { background: rgba(0, 242, 254, 0.08); color: var(--accent-cyan); border: 1px solid rgba(0, 242, 254, 0.2); }
.cat-kubernetes { background: rgba(50, 108, 229, 0.08); color: #60a5fa; border: 1px solid rgba(50, 108, 229, 0.2); }
.cat-cybersecurity { background: rgba(16, 185, 129, 0.08); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.2); }
.cat-protocols { background: rgba(139, 92, 246, 0.08); color: #a78bfa; border: 1px solid rgba(139, 92, 246, 0.2); }
.cat-learning { background: rgba(245, 158, 11, 0.08); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.2); }

.article-title {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
}

.article-excerpt {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Operator Profile Card (Dev.to Profile & Badge Mix) */
.operator-profile-card {
  background: linear-gradient(135deg, rgba(14, 20, 36, 0.85) 0%, rgba(9, 11, 20, 0.95) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-header {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.avatar-container {
  position: relative;
  width: 64px;
  height: 64px;
}

.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.08);
  background: #05040a;
  padding: 3px;
  object-fit: cover;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.15);
}

.avatar-status-ring {
  position: absolute;
  top: -3px;
  left: -3px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-cyan);
  opacity: 0.45;
  animation: rotate-gradient 8s linear infinite;
}

.profile-title-block {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.profile-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.profile-role {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.profile-badges {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.25rem;
}

.badge {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  text-transform: uppercase;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.badge-aws { background: rgba(255, 153, 0, 0.08); color: #ff9900; border: 1px solid rgba(255, 153, 0, 0.2); box-shadow: 0 0 8px rgba(255, 153, 0, 0.05); }
.badge-k8s { background: rgba(50, 108, 229, 0.08); color: #60a5fa; border: 1px solid rgba(50, 108, 229, 0.2); box-shadow: 0 0 8px rgba(50, 108, 229, 0.05); }
.badge-sec { background: rgba(16, 185, 129, 0.08); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.2); box-shadow: 0 0 8px rgba(16, 185, 129, 0.05); }

.profile-bio {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.profile-metrics {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.metric-row {
  display: flex;
  justify-content: space-between;
}

.metric-label {
  color: var(--text-muted);
}

.metric-val {
  font-weight: 500;
}

/* Telemetry Dashboard Widget (Dynamic Chart) */
.telemetry-card {
  background: rgba(7, 9, 15, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.75rem;
}

.widget-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  text-transform: uppercase;
}

.widget-subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.telemetry-live-badge {
  font-size: 0.6rem;
  font-weight: 700;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.telemetry-body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.tel-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tel-row.flex-col {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.tel-label {
  color: var(--text-muted);
}

.tel-value {
  color: var(--text-primary);
}

.tel-highlight {
  color: var(--accent-cyan);
}

.tel-success {
  color: #34d399;
  font-weight: bold;
}

.tel-warn {
  color: #fbbf24;
}

.tel-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  margin: 0.25rem 0;
}

.indicator-dot-green {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #34d399;
  border-radius: 50%;
  box-shadow: 0 0 8px #34d399;
  margin-right: 0.25rem;
  vertical-align: middle;
}

.sparkline-container {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  padding: 0.25rem;
  width: 100%;
  overflow: hidden;
  height: 38px;
}

.sparkline {
  display: block;
  overflow: visible;
}

/* Interactive Terminal Section */
.terminal-card-wrapper {
  padding: 0 !important;
  border: none !important;
}

.terminal-container {
  background: rgba(7, 9, 15, 0.9);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-align: left;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.terminal-container:focus-within {
  border-color: rgba(0, 242, 254, 0.4);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 242, 254, 0.15);
}

.terminal-header {
  background: rgba(255, 255, 255, 0.04);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-dots {
  display: flex;
  gap: 0.35rem;
}

.terminal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.terminal-dot.red { background-color: #ef4444; }
.terminal-dot.yellow { background-color: #eab308; }
.terminal-dot.green { background-color: #22c55e; }

.terminal-title {
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: bold;
}

.terminal-body {
  padding: 1rem;
  height: 180px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: #a7f3d0;
  scroll-behavior: smooth;
}

.terminal-body::-webkit-scrollbar {
  width: 4px;
}
.terminal-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
.terminal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.term-line {
  line-height: 1.4;
  word-break: break-all;
}

.term-prompt {
  color: var(--accent-cyan);
}

.term-input-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.term-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  flex-grow: 1;
  caret-color: var(--accent-cyan);
}

/* Subscribe Card Widget */
.subscribe-card {
  background: rgba(13, 18, 30, 0.7);
}

.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
}

.email-input {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  width: 100%;
  outline: none;
  transition: all 0.3s ease;
}

.email-input:focus {
  border-color: rgba(0, 242, 254, 0.4);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.05);
  background: rgba(255, 255, 255, 0.04);
}

.email-input::placeholder {
  color: var(--text-muted);
}

.subscribe-btn {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-violet) 100%);
  color: #000000;
  font-weight: 700;
  border: none;
  outline: none;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.subscribe-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.4);
  filter: brightness(1.1);
}

.subscribe-btn:active {
  transform: translateY(1px);
}

.subscribe-btn-text {
  color: #ffffff;
}

.form-msg {
  font-size: 0.75rem;
  text-align: center;
  min-height: 1rem;
}

.form-msg.error { color: #f87171; }
.form-msg.success { color: #34d399; }

/* Social Icons / Footer */
.footer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  width: 100%;
}

.socials {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.05);
  border-color: rgba(0, 242, 254, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0, 242, 254, 0.15);
}

.social-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.copyright {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
  text-align: center;
}

/* Keyframes & Animations */
@keyframes pulse-slow {
  0%, 100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.7);
  }
}

@keyframes pulse-rapid {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
  }
}

@keyframes rotate-gradient {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* --- Article Detail Page Styles --- */
.back-btn-container {
  display: flex;
  margin-top: 1rem;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.back-btn:hover {
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.05);
  border-color: rgba(0, 242, 254, 0.3);
  transform: translateX(-4px);
}

.article-container {
  max-width: 800px;
  margin: 1.5rem auto;
  width: 100%;
}

.article-post-card {
  padding: 3rem 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  z-index: 2;
  position: relative;
}

.article-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 1.5rem;
}

.article-title-large {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 40%, #c1c5db 80%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #d1d5db;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.article-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.25rem;
  border-left: 3px solid var(--accent-cyan);
  padding-left: 0.75rem;
  letter-spacing: -0.01em;
}

.article-body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 1rem;
  margin-bottom: 0.25rem;
}

.article-body ul, .article-body ol {
  margin-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.article-body li {
  padding-left: 0.25rem;
}

.article-body strong {
  color: #ffffff;
}

.article-body blockquote {
  background: rgba(255, 255, 255, 0.01);
  border-left: 4px solid var(--accent-cyan);
  padding: 1rem 1.5rem;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--text-secondary);
  margin: 1rem 0;
}

/* Code block styles */
.article-body pre {
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1rem 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.article-body code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  color: #f3f4f6;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.article-body pre code {
  background: transparent;
  padding: 0;
  border: none;
  border-radius: 0;
  color: inherit;
}

/* Article Images */
.article-image-container {
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  background: rgba(7, 9, 15, 0.6);
  border: 1px solid var(--border-color);
  padding: 1.1rem;
  border-radius: 12px;
  width: 100%;
}

.article-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.article-image-container figcaption {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-align: center;
  margin-top: 0.5rem;
}

.tip-box {
  background: rgba(0, 242, 254, 0.03);
  border: 1px dashed rgba(0, 242, 254, 0.3);
  border-radius: 12px;
  padding: 1.25rem;
  margin: 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tip-box-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Responsiveness */
@media (max-width: 1024px) {
  body {
    padding: 1.5rem 0.75rem;
  }
  
  .container {
    gap: 1.25rem;
  }
  
  .main-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header-logo {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }
  
  .nav-links {
    width: 100%;
    justify-content: flex-start;
    padding: 0.25rem 0;
  }
  
  .status-badge {
    align-self: flex-end;
    margin-top: -2.35rem;
  }

  .card {
    padding: 1.25rem;
    gap: 1.25rem;
  }
  
  .hero-banner-card h1 {
    font-size: 1.75rem;
  }
  
  .hero-banner-card p {
    font-size: 0.9rem;
  }
  
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .feed-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .search-container {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .article-post-card {
    padding: 1.5rem 1.25rem;
    gap: 1.5rem;
  }
  
  .article-title-large {
    font-size: 1.75rem;
  }
  
  .article-body {
    font-size: 0.95rem;
  }
}
