/* ===============================
   IMPORT COOL FONTS
================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@500;600&display=swap');

/* ===============================
   ROOT VARIABLES (EASY TO TWEAK)
================================= */
:root {
  --bg-primary: #0f1115;
  --bg-secondary: #161a21;
  --bg-card: #1c212b;

  --accent: #3ddc97;
  --accent-soft: #2bbd83;
  --accent-glow: rgba(61, 220, 151, 0.15);

  --text-primary: #e6edf3;
  --text-secondary: #9aa4b2;
  --text-muted: #6b7480;

  --border: rgba(255, 255, 255, 0.06);

  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;

  --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.55);
}

/* ===============================
   GLOBAL STYLES
================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
img {
  border-radius: 10px;
  width: 600px;
  height: auto;
}
body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(145deg, #0f1115, #12161d);
  color: var(--text-primary);
  line-height: 1.7;
  padding: 2rem;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* ===============================
   HEADINGS
================================= */
h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.2rem;
}

/* ===============================
   LINKS
================================= */
a {
  color: var(--accent);
  text-decoration: none;
  position: relative;
  transition: all 0.25s ease;
}

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

a::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  background: var(--accent);
  left: 0;
  bottom: -3px;
  opacity: 0;
  transform: scaleX(0.7);
  transition: all 0.25s ease;
}

a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

/* ===============================
   BLOG CONTAINER
================================= */
.blog-container {
  max-width: 900px;
  margin: 0 auto;
}

/* ===============================
   BLOG CARD (DATABASE ITEMS)
================================= */
.blog-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border);

  box-shadow: var(--shadow-soft);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

/* Subtle painterly glow effect */
.blog-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top right,
    var(--accent-glow),
    transparent 60%
  );
  opacity: 0.6;
  pointer-events: none;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(61, 220, 151, 0.2);
}

/* ===============================
   BLOG CONTENT
================================= */
.blog-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.blog-title {
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}

.blog-excerpt {
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
}

/* ===============================
   BUTTON STYLE
================================= */
.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #0f1115;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

/* ===============================
   CODE BLOCKS (PROGRAMMER TOUCH)
================================= */
pre {
  background: #0c0f14;
  padding: 1rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  border: 1px solid var(--border);
}

code {
  font-family: 'Fira Code', monospace;
  color: var(--accent);
}

/* ===============================
   FOOTER
================================= */
footer {
  text-align: center;
  margin-top: 4rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
