/* ============================================
   GigMe Blog — Shared Styles
   Dark theme · rounded cards · brand colors
   "Gig" #FFFFFF · "Me" #F5C518 · bg #0B0B0F
   ============================================ */

:root {
  --bg: #0B0B0F;
  --bg-elev: #141419;
  --bg-card: #17171F;
  --border: #26262F;
  --text: #F4F4F6;
  --text-dim: #A2A2AE;
  --text-faint: #6B6B77;
  --purple: #5B21B6;
  --purple-light: #7C3AED;
  --yellow: #F5C518;
  --radius: 22px;
  --radius-sm: 14px;
  --maxw: 1140px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Montserrat', var(--font);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

/* ---------- Layout ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

section { position: relative; }

/* ---------- Top Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,11,15,0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px; max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
}
.logo {
  font-family: var(--font-head);
  font-weight: 900; font-size: 26px; letter-spacing: -0.5px;
  display: flex; align-items: center; gap: 2px;
}
.logo .gig { color: #fff; }
.logo .me { color: var(--yellow); }
.logo .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--yellow); margin-left: 2px; margin-top: -14px;
}
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { color: var(--text-dim); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-cta {
  background: var(--purple-light); color: #fff !important;
  padding: 10px 20px; border-radius: 999px; font-weight: 600;
  transition: transform .15s, background .2s;
}
.nav-cta:hover { background: #8b4ff0; transform: translateY(-1px); }

/* ---------- Hero ---------- */
.hero {
  padding: 90px 0 70px;
  text-align: center;
  background:
    radial-gradient(900px 400px at 50% -10%, rgba(124,58,237,0.22), transparent 70%);
}
.hero .eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--yellow);
  border: 1px solid rgba(245,197,24,0.35);
  background: rgba(245,197,24,0.08);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 24px;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 800; line-height: 1.08; letter-spacing: -1.5px;
  margin-bottom: 22px;
}
.hero h1 .hl { color: var(--yellow); }
.hero p {
  font-size: clamp(17px, 2.4vw, 21px);
  color: var(--text-dim); max-width: 640px; margin: 0 auto;
}

/* ---------- Section heading ---------- */
.sec-head { margin-bottom: 40px; }
.sec-head h2 {
  font-family: var(--font-head);
  font-size: clamp(26px, 4vw, 38px); font-weight: 800;
  letter-spacing: -0.8px; margin-bottom: 10px;
}
.sec-head p { color: var(--text-dim); font-size: 17px; max-width: 620px; }

/* ---------- Post grid ---------- */
.posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 26px;
}
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.post-card:hover {
  transform: translateY(-5px);
  border-color: rgba(124,58,237,0.5);
  box-shadow: 0 18px 50px -20px rgba(124,58,237,0.4);
}
/* image placeholder — replace src later */
.post-thumb {
  aspect-ratio: 16/10;
  background:
    linear-gradient(135deg, #1d1d26, #232331);
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-thumb .ph-label {
  color: var(--text-faint); font-size: 13px; letter-spacing: .5px;
}
.post-tag {
  position: absolute; top: 14px; left: 14px;
  background: rgba(11,11,15,0.7); backdrop-filter: blur(6px);
  color: var(--yellow); font-size: 12px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(245,197,24,0.25);
}
.post-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-body h3 {
  font-family: var(--font-head);
  font-size: 21px; font-weight: 700; line-height: 1.3;
  letter-spacing: -0.4px; margin-bottom: 10px;
}
.post-body p { color: var(--text-dim); font-size: 15px; flex: 1; }
.post-meta {
  display: flex; align-items: center; gap: 10px;
  margin-top: 18px; font-size: 13px; color: var(--text-faint);
}
.post-meta .read { margin-left: auto; }
.post-card:hover h3 { color: var(--yellow); }

/* ---------- Testimonials ---------- */
.testi-wrap { background: var(--bg-elev); padding: 80px 0; margin-top: 30px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.testi {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.testi .quote { font-size: 16px; color: var(--text); margin-bottom: 22px; }
.testi .stars { color: var(--yellow); font-size: 15px; letter-spacing: 2px; margin-bottom: 16px; }
.testi .who { display: flex; align-items: center; gap: 13px; }
.testi .avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; font-size: 16px; flex-shrink: 0;
  overflow: hidden;
}
.testi .avatar img { width: 100%; height: 100%; object-fit: cover; }
.testi .name { font-weight: 600; font-size: 15px; }
.testi .role { font-size: 13px; color: var(--text-faint); }

/* ---------- Stats strip ---------- */
.stats { padding: 70px 0; }
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
  gap: 20px; text-align: center;
}
.stat {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 34px 20px;
}
.stat .num {
  font-family: var(--font-head); font-weight: 800;
  font-size: 42px; color: var(--yellow); letter-spacing: -1px;
}
.stat .lbl { color: var(--text-dim); font-size: 15px; margin-top: 6px; }

/* ---------- CTA band ---------- */
.cta-band {
  margin: 70px auto; max-width: var(--maxw);
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  border-radius: 30px; padding: 60px 40px; text-align: center;
}
.cta-band h2 {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(26px,4vw,36px); letter-spacing: -0.8px; margin-bottom: 14px;
}
.cta-band p { color: rgba(255,255,255,0.85); font-size: 18px; margin-bottom: 28px; }
.btn-yellow {
  display: inline-block; background: var(--yellow); color: #1a1205 !important;
  font-weight: 700; padding: 15px 34px; border-radius: 999px; font-size: 16px;
  transition: transform .15s;
}
.btn-yellow:hover { transform: translateY(-2px); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 54px 0 40px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; }
.footer .logo { margin-bottom: 14px; }
.footer p { color: var(--text-faint); font-size: 14px; max-width: 300px; }
.social { display: flex; gap: 14px; margin-top: 18px; }
.social a {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s, transform .15s;
}
.social a:hover { background: var(--purple-light); border-color: var(--purple-light); transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; fill: var(--text-dim); }
.social a:hover svg { fill: #fff; }
.foot-links { display: flex; flex-direction: column; gap: 10px; }
.foot-links h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-faint); margin-bottom: 6px; }
.foot-links a { color: var(--text-dim); font-size: 15px; transition: color .2s; }
.foot-links a:hover { color: #fff; }
.copyright { text-align: center; color: var(--text-faint); font-size: 13px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }

/* ============================================
   Article (single post) styles
   ============================================ */
.article-hero { padding: 60px 0 30px; }
.breadcrumb { font-size: 14px; color: var(--text-faint); margin-bottom: 26px; }
.breadcrumb a:hover { color: var(--yellow); }
.article-tag {
  display: inline-block; color: var(--yellow); font-size: 13px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 18px;
}
.article-hero h1 {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(30px, 5vw, 48px); line-height: 1.12; letter-spacing: -1.2px;
  margin-bottom: 22px;
}
.article-byline { display: flex; align-items: center; gap: 13px; color: var(--text-dim); font-size: 14px; }
.article-byline .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff;
}
.article-cover {
  aspect-ratio: 16/8; border-radius: var(--radius);
  background: linear-gradient(135deg, #1d1d26, #232331);
  margin: 36px 0; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); overflow: hidden;
}
.article-cover img { width:100%; height:100%; object-fit: cover; }
.article-cover .ph-label { color: var(--text-faint); font-size: 14px; }

.article-body { font-size: 18px; color: #d9d9e0; }
.article-body p { margin-bottom: 24px; }
.article-body h2 {
  font-family: var(--font-head); font-weight: 700; color: #fff;
  font-size: 28px; letter-spacing: -0.6px; margin: 44px 0 18px;
}
.article-body h3 {
  font-family: var(--font-head); font-weight: 700; color: #fff;
  font-size: 21px; margin: 32px 0 14px;
}
.article-body ul, .article-body ol { margin: 0 0 24px 22px; }
.article-body li { margin-bottom: 10px; color: #d9d9e0; }
.article-body strong { color: #fff; }
.article-body blockquote {
  border-left: 3px solid var(--yellow);
  background: var(--bg-card);
  padding: 20px 26px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 30px 0; font-size: 19px; color: #fff; font-style: italic;
}
.inline-img {
  aspect-ratio: 16/9; border-radius: var(--radius); margin: 32px 0;
  background: linear-gradient(135deg, #1d1d26, #232331);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.inline-img img { width:100%; height:100%; object-fit: cover; }
.inline-img .ph-label { color: var(--text-faint); font-size: 13px; }

.article-footer-cta {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 34px; margin: 50px 0 20px; text-align: center;
}
.article-footer-cta h3 { font-family: var(--font-head); font-size: 24px; margin-bottom: 12px; }
.article-footer-cta p { color: var(--text-dim); margin-bottom: 22px; }

/* related */
.related { padding: 60px 0; border-top: 1px solid var(--border); margin-top: 40px; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .nav-links { gap: 16px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { padding: 60px 0 50px; }
  .footer-inner { flex-direction: column; }
}
