/* ========================================
   CAO NAM | EUROHERBA.SHOP
   UNIQUE DESIGN #2 - Warm Sage Neon + Sticky Sidebar + Masonry
   Completely different from previous: softer shadows, 24px radii,
   left sticky nav, warm mint palette, masonry articles
   ======================================== */

:root {
  --bg: #0c0f0c;
  --bg-card: #161b16;
  --neon-mint: #22c55e;
  --amber: #eab308;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --soft-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
}

/* STICKY LEFT SIDEBAR NAV - UNIQUE */
.sidebar-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100vh;
  background: #111511;
  border-right: 1px solid #272d27;
  padding: 2.5rem 1.75rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.sidebar-nav .logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--neon-mint);
  text-decoration: none;
  margin-bottom: 3rem;
  display: block;
}

.sidebar-nav nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sidebar-nav nav a {
  display: block;
  padding: 0.85rem 1.25rem;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.sidebar-nav nav a:hover,
.sidebar-nav nav a.active {
  background: #1f2520;
  color: var(--neon-mint);
}

.main-content {
  margin-left: 260px;
  min-height: 100vh;
}

/* HERO - Centered Warm Typography */
.hero {
  padding: 6rem 4rem 5rem;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 4.8rem;
  line-height: 1.05;
  font-weight: 800;
  background: linear-gradient(90deg, #f8fafc, #22c55e, #f8fafc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.25rem;
}

.hero .subtitle {
  font-size: 1.35rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 2.5rem;
}

.cta {
  display: inline-block;
  padding: 1rem 2.6rem;
  background: transparent;
  color: var(--neon-mint);
  border: 2px solid var(--neon-mint);
  border-radius: 9999px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.4s ease;
}

.cta:hover {
  background: var(--neon-mint);
  color: #0c0f0c;
  box-shadow: 0 0 25px rgba(34, 197, 94, 0.4);
}

/* MASONRY GRID - Unique */
.masonry-grid {
  column-count: 3;
  column-gap: 1.75rem;
  padding: 0 4rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
}

@media (max-width: 1100px) {
  .masonry-grid { column-count: 2; }
}
@media (max-width: 700px) {
  .masonry-grid { column-count: 1; }
}

.article-card {
  background: var(--bg-card);
  margin-bottom: 1.75rem;
  break-inside: avoid;
  padding: 2.25rem;
  border-radius: 24px;
  box-shadow: var(--soft-shadow);
  border: 1px solid #272d27;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.article-card:hover {
  transform: translateY(-8px);
}

.article-card h3 {
  font-size: 1.45rem;
  margin-bottom: 1rem;
  color: #fff;
}

.article-card .meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}

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

.read-more {
  color: var(--amber);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
}

.read-more:hover { gap: 0.7rem; }

/* TEXT SECTIONS */
.text-block {
  max-width: 780px;
  margin: 5rem auto;
  padding: 0 4rem;
}

.text-block h2 {
  font-size: 2.4rem;
  margin-bottom: 1.5rem;
  color: #fff;
}

/* FORM */
.form-container {
  max-width: 580px;
  margin: 3rem auto;
  background: var(--bg-card);
  padding: 3rem;
  border-radius: 24px;
  box-shadow: var(--soft-shadow);
}

.form-container input,
.form-container textarea {
  width: 100%;
  background: #111511;
  border: 1px solid #272d27;
  color: var(--text);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  border-radius: 12px;
  font-size: 1rem;
}

.form-container input:focus,
.form-container textarea:focus {
  outline: none;
  border-color: var(--neon-mint);
}

.form-container button {
  width: 100%;
  padding: 1.15rem;
  background: var(--neon-mint);
  color: #0c0f0c;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-container button:hover {
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
}

/* FOOTER */
footer {
  background: #0a0d0a;
  padding: 4rem 2rem 2rem;
  margin-top: 6rem;
  border-top: 1px solid #272d27;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand {
  font-size: 1.35rem;
  color: var(--neon-mint);
  margin-bottom: 1rem;
}

.footer-info {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-links a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 0.7rem;
}

.footer-links a:hover { color: var(--neon-mint); }

.copyright {
  text-align: center;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #272d27;
  color: #64748b;
  font-size: 0.85rem;
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(12, 15, 12, 0.9);
}

.modal-content {
  background: var(--bg-card);
  margin: 6% auto;
  padding: 3rem;
  width: 90%;
  max-width: 760px;
  border-radius: 24px;
  box-shadow: var(--soft-shadow);
  position: relative;
}

.close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 2rem;
  color: var(--amber);
  cursor: pointer;
}

/* MOBILE */
@media (max-width: 900px) {
  .sidebar-nav { display: none; }
  .main-content { margin-left: 0; }
  .hero { padding: 4rem 1.5rem; }
  .masonry-grid { padding: 0 1.5rem 3rem; }
}