/* Personal Blogs — shares the design language of antonnie.dev */
:root {
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --text-white: rgba(255, 255, 255, 0.92);
  --text-muted: rgba(255, 255, 255, 0.65);
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-hover: rgba(255, 255, 255, 0.1);
  --transition: all 0.3s ease;
  --shadow-glow: 0 0 30px rgba(102, 126, 234, 0.25);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--text-white);
  background: #0f0c29;
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Animated background */
.animated-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.circle { position: absolute; border-radius: 50%; animation: float 20s infinite ease-in-out; }
.circle:nth-child(1) { width: 350px; height: 350px; top: 5%; left: 5%; background: rgba(102, 126, 234, 0.08); }
.circle:nth-child(2) { width: 200px; height: 200px; top: 60%; right: 10%; background: rgba(244, 143, 177, 0.08); animation-delay: 3s; }
.circle:nth-child(3) { width: 150px; height: 150px; bottom: 15%; left: 15%; background: rgba(79, 172, 254, 0.08); animation-delay: 6s; }
.circle:nth-child(4) { width: 280px; height: 280px; top: 35%; right: 30%; background: rgba(167, 139, 250, 0.07); animation-delay: 9s; }

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); }
  33% { transform: translateY(-40px) translateX(25px) scale(1.08); }
  66% { transform: translateY(20px) translateX(-20px) scale(0.93); }
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.container.narrow { max-width: 780px; }

/* Header */
header {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  background: rgba(15, 12, 41, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; }
.logo {
  font-size: 1.6rem; font-weight: 800; text-decoration: none; letter-spacing: -0.5px;
  background: var(--gradient-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.nav-links { display: flex; list-style: none; gap: 8px; }
.nav-links a {
  text-decoration: none; color: var(--text-muted); font-weight: 500; font-size: 0.9rem;
  padding: 8px 14px; border-radius: 8px; transition: var(--transition);
}
.nav-links a:hover { color: white; background: var(--glass-hover); }

/* Typography helpers */
.section-label {
  display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  background: var(--gradient-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 12px;
}
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* Page hero (listing) */
.page-hero { padding: 140px 0 40px; text-align: center; }
.page-hero h1 { font-size: 3rem; font-weight: 800; color: white; line-height: 1.15; margin-bottom: 16px; }
.page-hero p { color: var(--text-muted); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

/* Blog cards */
.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px; padding: 40px 0 100px;
}
.blog-card {
  background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 20px;
  padding: 32px; backdrop-filter: blur(10px); transition: var(--transition);
  display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-8px); border-color: rgba(102, 126, 234, 0.35); box-shadow: var(--shadow-glow); }
.blog-card h2 { font-size: 1.3rem; font-weight: 700; color: white; margin-bottom: 12px; line-height: 1.3; }
.blog-card p { color: var(--text-muted); font-size: 0.93rem; line-height: 1.7; margin-bottom: 20px; flex: 1; }
.blog-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 14px; }
.blog-meta i { color: #667eea; margin-right: 5px; }

.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.tag {
  background: rgba(102, 126, 234, 0.12); border: 1px solid rgba(102, 126, 234, 0.2);
  color: #a8b8ff; padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 500;
}

.read-link {
  display: inline-flex; align-items: center; gap: 6px; color: #667eea; font-size: 0.88rem;
  font-weight: 600; text-decoration: none; transition: var(--transition);
}
.read-link:hover { color: #a8b8ff; gap: 10px; }

/* Article */
.article-hero { padding: 140px 0 20px; }
.article-hero h1 { font-size: 2.6rem; font-weight: 800; color: white; line-height: 1.2; margin-bottom: 18px; }
.article-lead { font-size: 1.15rem; color: var(--text-muted); font-style: italic; margin-bottom: 24px; }
.back-link {
  display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted);
  text-decoration: none; font-size: 0.88rem; font-weight: 500; margin-bottom: 24px; transition: var(--transition);
}
.back-link:hover { color: white; gap: 12px; }

.article-body {
  background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 24px;
  padding: 48px; margin: 24px 0 40px; backdrop-filter: blur(10px);
}
.article-body p { font-size: 1.05rem; line-height: 1.85; color: rgba(255, 255, 255, 0.82); margin-bottom: 20px; }
.article-body h2 {
  font-size: 1.55rem; font-weight: 700; color: white; margin: 48px 0 20px; line-height: 1.3;
  padding-bottom: 12px; border-bottom: 1px solid var(--glass-border);
}
.article-body h2 .num {
  background: var(--gradient-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-right: 6px;
}
.article-body h3 { font-size: 1.15rem; font-weight: 700; color: white; margin: 32px 0 14px; }
.article-body ul { margin: 0 0 24px 4px; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.article-body li { position: relative; padding-left: 30px; color: rgba(255, 255, 255, 0.82); font-size: 1.02rem; line-height: 1.7; }
.article-body li::before {
  content: '\2713'; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(102, 126, 234, 0.2); color: #a8b8ff; font-size: 0.7rem;
  display: flex; align-items: center; justify-content: center;
}
.pull-quote {
  border-left: 4px solid #667eea; background: rgba(102, 126, 234, 0.1);
  border-radius: 0 14px 14px 0; padding: 18px 24px; margin: 8px 0 24px;
  font-size: 1.1rem; font-weight: 600; color: white; line-height: 1.6;
}
.scenario {
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--glass-border);
  border-radius: 14px; padding: 16px 22px; margin: 0 0 20px; color: white; font-weight: 500; font-style: italic;
}

.btn-glass {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 12px;
  background: var(--glass-bg); border: 1px solid var(--glass-border); color: white;
  text-decoration: none; font-weight: 600; font-size: 0.92rem; transition: var(--transition);
}
.btn-glass:hover { background: var(--glass-hover); transform: translateY(-2px); }
.article-footer { padding-bottom: 80px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Footer */
footer {
  background: rgba(0, 0, 0, 0.35); border-top: 1px solid var(--glass-border);
  padding: 28px 0; position: relative; z-index: 1;
}
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 0.85rem; color: var(--text-muted); }
.footer-bottom a { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; }
.footer-bottom a:hover { color: white; }

@media (max-width: 768px) {
  .page-hero h1 { font-size: 2.1rem; }
  .article-hero h1 { font-size: 1.9rem; }
  .article-body { padding: 28px 20px; }
  .nav-links a { padding: 8px 10px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
