
/* =========================
   DESIGN SYSTEM (CHERRY EDITORIAL UI)
========================= */

:root {
  /* 🍒 LIGHT CHERRY PAPER */
  --bg: #fff8f9;
  --surface: #ffffff;
  --surface-2: #fff1f3;

  --text: #0f172a;
  --muted: #64748b;

  --primary: #e11d48;
  --primary-light: rgba(225, 29, 72, 0.10);
  --accent: #9f1239;

  --border: rgba(15, 23, 42, 0.10);

  --radius: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 8px 20px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 20px 60px rgba(15, 23, 42, 0.12);

  --transition: 0.25s ease;
}

/* =========================
   DARK MODE (CHERRY NIGHT)
========================= */

[data-theme="dark"] {
  --bg: #0a0b10;
  --surface: #12131a;
  --surface-2: #171823;

  --text: #f8fafc;
  --muted: rgba(248, 250, 252, 0.70);

  --primary: #fb7185;
  --primary-light: rgba(251, 113, 133, 0.12);
  --accent: #e11d48;

  --border: rgba(251, 113, 133, 0.14);

  --shadow-sm: 0 10px 25px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 30px 80px rgba(0, 0, 0, 0.65);
}

/* =========================
   BASE
========================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;

  background: var(--bg);
  color: var(--text);

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1180px;
  margin: auto;
  padding: 24px 18px;
}

/* =========================
   LINKS (FIXED)
========================= */

a,
a:visited {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

[data-theme="dark"] a,
[data-theme="dark"] a:visited {
  color: var(--text) !important;
}

[data-theme="dark"] a:hover {
  color: var(--primary) !important;
}

/* =========================
   HEADER (PREMIUM EDITORIAL BAR)
========================= */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;

  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 16px 20px;
}

.logo {
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.5px;

  display: flex;
  align-items: center;
  gap: 8px;
}

.logo::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--primary);
  border-radius: 50%;
}

/* NAV */
.nav-links {
  display: flex;
  gap: 26px;
}

.nav-links a {
  color: var(--muted);
  font-weight: 500;
  position: relative;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;

  width: 0%;
  height: 2px;
  background: var(--primary);

  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

/* =========================
   MOBILE MENU
========================= */

#menuBtn {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  color: var(--text);
  cursor: pointer;
}

.mobile-menu {
  display: none;
  flex-direction: column;

  position: absolute;
  top: 64px;
  left: 16px;
  right: 16px;

  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);

  box-shadow: var(--shadow-md);
  padding: 16px;
  gap: 12px;
}

.mobile-menu.show {
  display: flex;
}

/* =========================
   HERO (FIXED - MODERN EDITORIAL FEATURE)
========================= */

.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 50px;

  margin-top: 48px;
  align-items: center;
}

/* LEFT CONTENT */
.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-content span {
  display: inline-flex;
  width: fit-content;

  padding: 6px 12px;
  border-radius: 999px;

  font-size: 12px;
  font-weight: 600;

  background: var(--primary-light);
  color: var(--primary);
}

.hero-content h1 {
  font-size: 54px;
  line-height: 1.05;

  margin: 14px 0 12px;
  letter-spacing: -1px;
  font-weight: 800;
}

.hero-content p {
  font-size: 16px;
  line-height: 1.75;
  max-width: 520px;

  color: var(--muted);
}

/* BUTTON */
.hero-btn {
  margin-top: 18px;
  display: inline-flex;

  padding: 12px 18px;
  border-radius: 12px;

  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

/* IMAGE (NO BOX FEEL — CLEAN FEATURE STYLE) */
.hero img {
  width: 100%;
  height: 480px;
  object-fit: cover;

  border-radius: 20px;

  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);

  transition: transform 0.4s ease, filter 0.4s ease;
}

.hero img:hover {
  transform: scale(1.02);
  filter: contrast(1.05) saturate(1.05);
}

/* =========================
   POSTS GRID (4 COLUMN DESKTOP)
========================= */

.posts {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* tablet */
@media (max-width: 1024px) {
  .posts {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* mobile */
@media (max-width: 768px) {
  .posts {
    grid-template-columns: 1fr;
  }
}

/* =========================
   CARD
========================= */

.card {
  background: var(--surface);
  border: 1px solid var(--border);

  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);

  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.card-content {
  padding: 16px;
}

/* =========================
   ARTICLE PAGE (FIXED IMAGE STYLE)
========================= */

.article-page {
  max-width: 760px;
  margin: 70px auto;
  padding: 0 18px;
}

/* ARTICLE IMAGE FIXED */
.article-hero img {
  width: 100%;
  height: auto;
  max-height: 520px;

  object-fit: cover;

  border-radius: 18px;
  border: 1px solid var(--border);

  box-shadow: var(--shadow-md);

  transition: transform 0.4s ease, filter 0.4s ease;
}

.article-hero img:hover {
  transform: scale(1.02);
  filter: contrast(1.05) saturate(1.05);
}

.article-content {
  margin-top: 28px;
}

/* =========================
   FOOTER
========================= */

.footer {
  margin-top: 90px;
  padding: 42px 18px;
  text-align: center;

  border-top: 1px solid var(--border);
  color: var(--muted);
}

/* =========================
   BUTTONS
========================= */

.theme-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);

  padding: 8px 12px;
  border-radius: 10px;
}

/* =========================
   RESPONSIVE FIXES
========================= */

@media (max-width: 768px) {

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero img {
    height: 300px;
  }

  .nav-links {
    display: none;
  }

  #menuBtn {
    display: block;
  }

  .nav {
    padding: 14px 16px;
  }
}