/* ═══════════════════════════════════════════════
   G-LOG — Gearsh Blog
   ═══════════════════════════════════════════════ */

.glog-shell {
  padding-top: 72px;
  min-height: 100vh;
}

.glog-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 24px;
}

.glog-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--g-accent);
  background: var(--g-accent-light);
  border: 0.5px solid rgba(0,191,255,0.22);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.glog-title {
  font-family: var(--g-serif);
  font-weight: 400;
  font-size: clamp(36px, 7vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--g-white);
  margin-bottom: 10px;
}

.glog-title em { font-style: italic; color: var(--g-accent); }

.glog-subtitle {
  font-size: 16px;
  color: var(--g-text-muted);
  max-width: 620px;
  line-height: 1.55;
}

.glog-toolbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.glog-search {
  position: relative;
  max-width: 520px;
}

.glog-search i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--g-text-dim);
  font-size: 18px;
  pointer-events: none;
}

.glog-search input {
  width: 100%;
  background: var(--g-surface);
  border: 0.5px solid var(--g-border);
  border-radius: 12px;
  color: var(--g-text);
  font-family: var(--g-font);
  font-size: 15px;
  padding: 13px 14px 13px 42px;
  outline: none;
}

.glog-search input:focus {
  border-color: rgba(0,191,255,0.45);
  box-shadow: 0 0 0 3px rgba(0,191,255,0.08);
}

.glog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.glog-filter {
  background: var(--g-surface);
  border: 0.5px solid var(--g-border);
  color: var(--g-text-muted);
  font-family: var(--g-font);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.glog-filter:hover {
  color: var(--g-white);
  border-color: var(--g-border-light);
}

.glog-filter.is-active {
  background: var(--g-accent-light);
  border-color: rgba(0,191,255,0.35);
  color: var(--g-accent);
}

.glog-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 64px;
}

.glog-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  font-size: 12px;
  color: var(--g-text-dim);
}

.glog-meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.glog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.glog-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--g-accent);
  background: rgba(0,191,255,0.08);
  border: 0.5px solid rgba(0,191,255,0.18);
  padding: 4px 8px;
  border-radius: 999px;
  text-decoration: none;
}

.glog-tag:hover { background: rgba(0,191,255,0.14); }

/* Featured post */
.glog-featured {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  background: var(--g-surface);
  border: 0.5px solid var(--g-border);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 28px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.glog-featured:hover {
  transform: translateY(-2px);
  border-color: rgba(0,191,255,0.35);
}

.glog-featured-media {
  position: relative;
  min-height: 320px;
  background: var(--g-black);
}

.glog-featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  min-height: 320px;
}

.glog-featured-label {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  background: var(--g-accent);
  color: var(--g-black);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
}

.glog-featured-body {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.glog-featured-title {
  font-family: var(--g-serif);
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.12;
  color: var(--g-white);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.glog-featured-excerpt {
  font-size: 15px;
  color: var(--g-text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

.glog-read-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--g-accent);
  font-size: 14px;
  font-weight: 700;
}

/* Post grid */
.glog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.glog-card {
  display: flex;
  flex-direction: column;
  background: var(--g-surface);
  border: 0.5px solid var(--g-border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.glog-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0,191,255,0.28);
}

.glog-card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--g-black);
}

.glog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transition: transform 0.35s ease;
}

.glog-card:hover .glog-card-media img { transform: scale(1.04); }

.glog-card-body { padding: 16px 16px 18px; flex: 1; display: flex; flex-direction: column; }

.glog-card-title {
  font-family: var(--g-serif);
  font-size: 20px;
  line-height: 1.2;
  color: var(--g-white);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.glog-card-excerpt {
  font-size: 13px;
  color: var(--g-text-muted);
  line-height: 1.55;
  margin-bottom: 14px;
  flex: 1;
}

.glog-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.glog-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--g-text-muted);
}

.glog-empty i {
  font-size: 40px;
  color: var(--g-accent);
  margin-bottom: 12px;
  display: block;
}

/* ── Article page ── */
.glog-read-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 200;
  background: linear-gradient(90deg, var(--g-accent), #66d9ff);
  box-shadow: 0 0 12px rgba(0,191,255,0.55);
  transition: width 0.08s linear;
}

.glog-article-shell {
  padding-top: 0;
  min-height: 100vh;
  background: var(--g-black);
}

.g-nav--over-hero {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: linear-gradient(to bottom, rgba(10,10,10,0.82) 0%, rgba(10,10,10,0.35) 70%, transparent 100%);
  border-bottom-color: transparent;
}

.g-nav--over-hero .g-nav-links a,
.g-nav--over-hero .g-nav-mobile-login,
.g-nav--over-hero .g-nav-mobile-search,
.g-nav--over-hero .g-nav-menu-btn {
  color: rgba(255,255,255,0.92);
}

.g-nav--over-hero .g-nav-links a:hover,
.g-nav--over-hero .g-nav-links a.active {
  color: var(--g-accent);
}

/* Cinematic masthead */
.glog-masthead {
  position: relative;
  min-height: clamp(420px, 72vh, 640px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 0.5px solid var(--g-border);
}

.glog-masthead-bg {
  position: absolute;
  inset: 0;
  background: #111;
}

.glog-masthead-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.04);
}

.glog-masthead-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(10,10,10,1) 0%, rgba(10,10,10,0.88) 28%, rgba(10,10,10,0.45) 58%, rgba(10,10,10,0.18) 100%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(0,191,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.glog-masthead-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 96px 20px 36px;
}

.glog-masthead-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--g-accent);
  background: rgba(0,191,255,0.12);
  border: 0.5px solid rgba(0,191,255,0.28);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.glog-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
  transition: color 0.15s;
}

.glog-back:hover { color: var(--g-accent); }

.glog-article-title {
  font-family: var(--g-serif);
  font-size: clamp(34px, 6.5vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--g-white);
  margin-bottom: 14px;
  text-wrap: balance;
}

.glog-article-lede {
  font-size: clamp(16px, 2.4vw, 19px);
  line-height: 1.6;
  color: rgba(255,255,255,0.78);
  max-width: 680px;
  margin-bottom: 18px;
}

.glog-meta-row--hero {
  color: rgba(255,255,255,0.62);
}

.glog-meta-row--hero span {
  background: rgba(255,255,255,0.06);
  border: 0.5px solid rgba(255,255,255,0.08);
  padding: 6px 10px;
  border-radius: 999px;
}

.glog-article-main {
  position: relative;
  z-index: 1;
}

.glog-article-layout {
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px 20px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 40px;
  align-items: start;
}

.glog-article-body {
  max-width: none;
  margin: 0;
  padding: 0;
}

.glog-article-aside {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.glog-aside-card {
  background: var(--g-surface);
  border: 0.5px solid var(--g-border);
  border-radius: 16px;
  padding: 18px;
}

.glog-aside-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--g-text-dim);
  margin-bottom: 12px;
}

.glog-aside-card--cta {
  background: linear-gradient(160deg, rgba(0,191,255,0.14) 0%, rgba(0,191,255,0.04) 100%);
  border-color: rgba(0,191,255,0.24);
  text-align: center;
}

.glog-aside-card--cta strong {
  display: block;
  color: var(--g-white);
  font-size: 15px;
  margin: 10px 0 6px;
}

.glog-aside-card--cta p {
  font-size: 13px;
  color: var(--g-text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.glog-aside-logo {
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

.glog-aside-btn {
  width: 100%;
  justify-content: center;
}

.glog-prose {
  font-size: 18px;
  line-height: 1.78;
  color: var(--g-text);
}

.glog-prose .glog-lead,
.glog-prose .glog-lead + p {
  font-size: 1.12em;
  line-height: 1.7;
  color: var(--g-white);
}

.glog-prose .glog-lead {
  margin-bottom: 1.4em;
}

.glog-prose .glog-lead:first-letter {
  float: left;
  font-family: var(--g-serif);
  font-size: 3.4em;
  line-height: 0.82;
  padding-right: 10px;
  padding-top: 4px;
  color: var(--g-accent);
}

.glog-prose h2,
.glog-prose h3 {
  font-family: var(--g-serif);
  font-weight: 400;
  color: var(--g-white);
  letter-spacing: -0.02em;
  margin: 2.4em 0 0.75em;
  line-height: 1.18;
}

.glog-prose h2 { font-size: clamp(26px, 4vw, 34px); }
.glog-prose h3 { font-size: clamp(20px, 3vw, 26px); }

.glog-prose p { margin-bottom: 1.25em; }

.glog-prose strong { color: var(--g-white); font-weight: 650; }

.glog-prose a,
.glog-inline-link {
  color: var(--g-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0,191,255,0.45);
}

.glog-prose a:hover { text-decoration-color: var(--g-accent); }

.glog-prose ul,
.glog-prose ol {
  margin: 0 0 1.4em 0;
  padding-left: 0;
  list-style: none;
}

.glog-prose li {
  position: relative;
  margin-bottom: 0.65em;
  padding-left: 1.35em;
}

.glog-prose li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--g-accent);
  box-shadow: 0 0 10px rgba(0,191,255,0.45);
}

.glog-prose blockquote {
  margin: 2em 0;
  padding: 20px 22px;
  border-left: 3px solid var(--g-accent);
  background: linear-gradient(90deg, rgba(0,191,255,0.1) 0%, rgba(0,191,255,0.02) 100%);
  border-radius: 0 14px 14px 0;
  color: var(--g-white);
  font-family: var(--g-serif);
  font-size: 1.2em;
  line-height: 1.45;
}

.glog-prose img {
  width: 100%;
  border-radius: 16px;
  margin: 1.8em 0;
  border: 0.5px solid var(--g-border);
}

.glog-prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--g-surface-3);
  padding: 2px 7px;
  border-radius: 6px;
  color: var(--g-accent);
}

.glog-prose pre {
  background: var(--g-surface);
  border: 0.5px solid var(--g-border);
  border-radius: 14px;
  padding: 18px;
  overflow-x: auto;
  margin: 1.6em 0;
}

.glog-prose pre code {
  background: none;
  padding: 0;
  color: var(--g-text);
}

/* Numbered step cards */
.glog-step {
  margin: 1.6em 0;
  background: var(--g-surface);
  border: 0.5px solid var(--g-border);
  border-radius: 18px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.glog-step:hover {
  border-color: rgba(0,191,255,0.32);
  transform: translateY(-1px);
}

.glog-step-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 0.5px solid var(--g-border);
  background: linear-gradient(135deg, rgba(0,191,255,0.08) 0%, transparent 100%);
}

.glog-step-num {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--g-accent);
  color: var(--g-black);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.glog-step-title {
  font-family: var(--g-serif);
  font-size: clamp(22px, 3.5vw, 28px);
  line-height: 1.15;
  color: var(--g-white);
  margin: 0;
  letter-spacing: -0.02em;
}

.glog-step-body {
  padding: 18px 20px 20px;
}

.glog-step-body p:last-child { margin-bottom: 0; }

.glog-share--stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  max-width: none;
  margin: 0;
}

.glog-share--stack .glog-share-btn {
  width: 100%;
  justify-content: flex-start;
}

.glog-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.glog-share-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--g-text-dim);
  margin-right: 4px;
}

.glog-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--g-surface-2, var(--g-surface));
  border: 0.5px solid var(--g-border);
  color: var(--g-text);
  font-family: var(--g-font);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.glog-share-btn:hover {
  border-color: rgba(0,191,255,0.35);
  color: var(--g-accent);
  background: rgba(0,191,255,0.06);
}

.glog-cta--banner {
  max-width: 1120px;
  margin: 48px auto 0;
  padding: 0 20px;
  position: relative;
}

.glog-cta--banner .glog-cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 28px 28px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(0,191,255,0.16) 0%, rgba(0,191,255,0.05) 55%, rgba(10,10,10,0.2) 100%);
  border: 0.5px solid rgba(0,191,255,0.28);
  overflow: hidden;
}

.glog-cta-glow {
  position: absolute;
  inset: 20px;
  border-radius: 20px;
  background: radial-gradient(circle at 20% 50%, rgba(0,191,255,0.18) 0%, transparent 55%);
  pointer-events: none;
}

.glog-cta-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--g-accent);
  margin-bottom: 8px;
}

.glog-cta--banner h2 {
  font-family: var(--g-serif);
  font-weight: 400;
  font-size: clamp(26px, 4vw, 36px);
  color: var(--g-white);
  line-height: 1.12;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.glog-cta--banner p {
  font-size: 15px;
  color: var(--g-text-muted);
  margin-bottom: 0;
  line-height: 1.55;
  max-width: 520px;
}

.glog-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}

.glog-related {
  max-width: 1120px;
  margin: 56px auto 0;
  padding: 0 20px 72px;
  border-top: 0.5px solid var(--g-border);
  padding-top: 40px;
}

.glog-related-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.glog-related-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--g-accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.glog-related-all:hover { opacity: 0.85; }

.glog-related-title {
  font-family: var(--g-serif);
  font-size: clamp(24px, 4vw, 32px);
  color: var(--g-white);
  margin: 0;
}

.glog-related-title em { font-style: italic; color: var(--g-accent); }

.glog-loading {
  color: var(--g-text-muted);
}

.glog-cta {
  max-width: 720px;
  margin: 36px auto 0;
  padding: 24px 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0,191,255,0.12), rgba(0,191,255,0.04));
  border: 0.5px solid rgba(0,191,255,0.22);
  text-align: center;
}

.glog-cta h2 {
  font-family: var(--g-serif);
  font-weight: 400;
  font-size: clamp(24px, 4vw, 30px);
  color: var(--g-white);
  line-height: 1.15;
  margin-bottom: 10px;
}

.glog-cta p {
  font-size: 14px;
  color: var(--g-text-muted);
  margin-bottom: 16px;
  line-height: 1.55;
}

@media (max-width: 960px) {
  .glog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .glog-featured { grid-template-columns: 1fr; }
  .glog-featured-media { min-height: 240px; }
  .glog-featured-media img { min-height: 240px; }

  .glog-article-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .glog-article-aside {
    position: static;
    order: 2;
  }

  .glog-share--stack {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .glog-share--stack .glog-share-btn {
    width: auto;
    flex: 1 1 calc(50% - 4px);
  }

  .glog-cta--banner .glog-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .glog-cta-actions {
    width: 100%;
  }

  .glog-cta-actions .btn-main,
  .glog-cta-actions .btn-ghost {
    flex: 1;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .glog-grid { grid-template-columns: 1fr; }
  .glog-hero { padding-top: 24px; }
  .glog-prose { font-size: 17px; }
  .glog-masthead { min-height: 380px; }
  .glog-masthead-inner { padding-top: 84px; }
  .glog-prose .glog-lead:first-letter { font-size: 2.8em; }
}
