/* ── SoNSo Shared Stylesheet ── */

:root {
  --green: #10b981;
  --green-light: #34d399;
  --green-dark: #059669;
  --bg: #0a0a0a;
  --bg2: #111111;
  --bg3: #181818;
  --card: #161616;
  --border: #2a2a2a;
  --text: #f0f0f0;
  --muted: #888888;
  --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 5%;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(10,10,10,0.88); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}
.logo { font-size: 1.45rem; font-weight: 900; letter-spacing: -0.5px; color: var(--white); text-decoration: none; }
.logo span { color: var(--green); }
.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 0.875rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--white); }
.nav-cta {
  background: var(--green); color: #000 !important;
  padding: 9px 20px; border-radius: 8px;
  font-weight: 700 !important; font-size: 0.85rem !important;
  transition: background 0.2s, transform 0.2s !important;
}
.nav-cta:hover { background: var(--green-light) !important; transform: translateY(-1px); }

/* ── HAMBURGER ── */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE MENU ── */
.mobile-menu {
  display: none; position: fixed; top: 60px; left: 0; right: 0; z-index: 99;
  background: var(--bg2); border-bottom: 1px solid var(--border);
  flex-direction: column; padding: 16px 5%;
  animation: slideDown 0.2s ease;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 13px 0; font-size: 0.95rem; color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--border); font-weight: 500; transition: color 0.2s; }
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover, .mobile-menu a.mobile-cta { color: var(--green); }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--green); color: #000;
  padding: 15px 34px; border-radius: 10px;
  font-size: 0.95rem; font-weight: 700;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.2s; border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--green-light); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(16,185,129,0.35); }
.btn-ghost {
  background: transparent; color: var(--text);
  padding: 15px 34px; border-radius: 10px;
  font-size: 0.95rem; font-weight: 600;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255,255,255,0.18); transition: all 0.2s;
}
.btn-ghost:hover { border-color: var(--green); color: var(--green); transform: translateY(-2px); }
.btn-outline {
  background: transparent; color: var(--green);
  padding: 11px 24px; border-radius: 8px;
  font-size: 0.875rem; font-weight: 600;
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid rgba(16,185,129,0.4); transition: all 0.2s;
}
.btn-outline:hover { background: rgba(16,185,129,0.08); transform: translateY(-1px); }

/* ── SECTION BASE ── */
section { padding: 96px 5%; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-header { margin-bottom: 64px; }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin: 0 auto; }

.section-tag {
  display: inline-block;
  background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.25);
  color: var(--green); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 5px 13px; border-radius: 6px; margin-bottom: 18px;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800; letter-spacing: -1px;
  color: var(--white); line-height: 1.15; margin-bottom: 16px;
}
.section-title .hl { color: var(--green); }
.section-sub { font-size: 1rem; color: var(--muted); max-width: 520px; line-height: 1.75; }

/* ── CARDS ── */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px 28px;
  transition: all 0.25s; position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--green), var(--green-light));
  opacity: 0; transition: opacity 0.3s;
}
.card:hover { border-color: rgba(16,185,129,0.4); transform: translateY(-4px); box-shadow: 0 16px 48px rgba(16,185,129,0.1); }
.card:hover::before { opacity: 1; }

/* ── GRID LAYOUTS ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }

/* ── TAG CHIPS ── */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag {
  font-size: 0.72rem; font-weight: 600;
  background: rgba(16,185,129,0.08); color: var(--green);
  border: 1px solid rgba(16,185,129,0.2);
  padding: 4px 10px; border-radius: 6px;
}

/* ── DIVIDER ── */
.divider { height: 1px; background: var(--border); }

/* ── FOOTER ── */
footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 64px 5% 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  max-width: 1100px; margin: 0 auto 48px;
}
.footer-brand .logo { font-size: 1.4rem; display: block; margin-bottom: 12px; }
.footer-brand p { font-size: 0.875rem; color: var(--muted); line-height: 1.7; max-width: 280px; margin-bottom: 20px; }
.footer-col h5 { font-size: 0.8rem; font-weight: 700; color: var(--text); letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 0.875rem; color: var(--muted); text-decoration: none; margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: var(--green); }
.footer-bottom {
  max-width: 1100px; margin: 0 auto;
  padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 0.8rem; color: var(--muted); }
.footer-bottom a { font-size: 0.8rem; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-bottom a:hover { color: var(--green); }

/* ── ANIMATIONS ── */
@keyframes pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.5; transform:scale(1.4); } }
@keyframes fadeUp { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
.fade-up { animation: fadeUp 0.5s ease forwards; }

/* ── BREADCRUMB ── */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--muted); margin-bottom: 24px; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb span { color: var(--border); }

/* ── BLOG POST STYLES ── */
.post-body { max-width: 720px; margin: 0 auto; }
.post-body h2 { font-size: 1.5rem; font-weight: 800; color: var(--white); margin: 40px 0 16px; letter-spacing: -0.5px; }
.post-body h3 { font-size: 1.15rem; font-weight: 700; color: var(--white); margin: 32px 0 12px; }
.post-body p { font-size: 1rem; color: var(--muted); line-height: 1.85; margin-bottom: 20px; }
.post-body ul, .post-body ol { padding-left: 24px; margin-bottom: 20px; }
.post-body li { font-size: 0.95rem; color: var(--muted); line-height: 1.8; margin-bottom: 8px; }
.post-body strong { color: var(--text); font-weight: 600; }
.post-body a { color: var(--green); text-decoration: none; border-bottom: 1px solid rgba(16,185,129,0.3); transition: border-color 0.2s; }
.post-body a:hover { border-color: var(--green); }
.post-cta-box {
  background: linear-gradient(135deg, rgba(16,185,129,0.1), rgba(16,185,129,0.03));
  border: 1px solid rgba(16,185,129,0.3); border-radius: 16px;
  padding: 32px 36px; margin: 48px 0; text-align: center;
}
.post-cta-box h4 { font-size: 1.2rem; font-weight: 800; color: var(--white); margin-bottom: 10px; }
.post-cta-box p { font-size: 0.9rem; color: var(--muted); margin-bottom: 20px; max-width: 420px; margin-left: auto; margin-right: auto; }
.related-posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 32px; }
.related-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 24px; text-decoration: none; transition: all 0.25s; display: block; }
.related-card:hover { border-color: rgba(16,185,129,0.4); transform: translateY(-2px); }
.related-card .rc-tag { font-size: 0.7rem; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.related-card h4 { font-size: 0.95rem; font-weight: 700; color: var(--white); line-height: 1.4; }

/* ── MEDIA QUERIES ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  section { padding: 72px 5%; }
}
@media (max-width: 600px) {
  .section-title { font-size: 1.7rem; letter-spacing: -0.5px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
