/* ==========================================================================
   G-RANK BLOG — shared stylesheet
   Header/nav/brand styles copied verbatim from the main site (grank-rankings)
   to keep the blog visually identical. Article typography is new.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { background: #070910; color: #e8eaf0; font-family: 'Barlow', sans-serif; min-height: 100vh; }

/* ── PAGE HEADER (verbatim from main site) ── */
.page-header { background: #0d1117; border-bottom: 1px solid #1e2330; padding: 10px 32px; display: flex; align-items: center; justify-content: space-between; }
.page-logo { font-family: 'Barlow Condensed', sans-serif; font-size: 22px; font-weight: 700; letter-spacing: 2px; color: #f0f2f8; text-transform: uppercase; cursor: pointer; }
.page-logo span { color: #f5a623; }
.page-tagline { font-size: 10px; color: #3a4460; letter-spacing: 1px; text-transform: uppercase; margin-top: 1px; }
.header-right { display: flex; align-items: center; gap: 10px; }
.subscribe-btn { font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 6px 14px; border-radius: 4px; border: none; background: #f5a623; color: #0a0c10; cursor: pointer; transition: opacity 0.15s; }
.subscribe-btn:hover { opacity: 0.85; }
@media (max-width: 480px) { .subscribe-btn-text { display: none; } .subscribe-btn { padding: 6px 10px; } .page-tagline { display: none; } .tools-nav-btn { font-size: 11px; padding: 5px 8px; } .page-header { padding: 10px 12px 10px 16px; } .header-right { gap: 8px; flex: 1; justify-content: flex-end; margin-left: 8px; } }

/* ── TOOLS NAV DROPDOWN (verbatim from main site) ── */
.tools-nav { position: relative; display: inline-block; }
.tools-nav-btn { font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 6px 14px; border-radius: 4px; border: 1px solid #2a3045; background: transparent; color: #f0f2f8; cursor: pointer; display: flex; align-items: center; gap: 6px; transition: border-color 0.15s; min-width: 90px; justify-content: space-between; }
.tools-nav-btn:hover, .tools-nav-btn.open { border-color: #f5a623; color: #f5a623; }
.tools-nav-btn .tn-arrow { font-size: 10px; color: #3a4460; transition: transform 0.15s; }
.tools-nav-btn.open .tn-arrow { transform: rotate(180deg); }
.tools-nav-menu { display: none; position: absolute; top: calc(100% + 6px); right: 0; background: #0d1117; border: 1px solid #2a3045; border-radius: 6px; min-width: 180px; z-index: 300; box-shadow: 0 8px 24px rgba(0,0,0,0.5); overflow: hidden; }
.tools-nav-menu.open { display: block; }
.tools-nav-item { font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; padding: 10px 16px; color: #3a4460; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: background 0.1s; text-decoration: none; }
.tools-nav-item:hover { background: #1a2035; color: #f0f2f8; }
.tools-nav-item .tn-icon { color: #f5a623; font-size: 14px; }

/* ── SOCIAL ICONS (verbatim from main site) ── */
.social-link { color: #3a4460; display: flex; align-items: center; transition: color 0.15s; }
.social-link:hover { color: #f5a623; }

/* ── MOBILE TOOL NAV (verbatim from main site) ── */
.mobile-tool-nav { display: none; }
@media (max-width: 640px) {
  .mobile-tool-nav {
    display: flex; background: #0a0c10; border-bottom: 1px solid #1e2330;
    padding: 4px 2px;
  }
  .mtn-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; padding: 6px 2px; cursor: pointer; border-radius: 6px; min-width: 0;
    text-decoration: none;
  }
  .mtn-item .mtn-icon { font-size: 19px; line-height: 1; color: #4a5270; }
  .mtn-item .mtn-label {
    display: flex; align-items: center; justify-content: center; height: 22px;
    font-family: 'Barlow Condensed', sans-serif; font-size: 9.5px; font-weight: 700;
    letter-spacing: 0.2px; text-transform: uppercase; color: #4a5270;
    line-height: 1.15; text-align: center; width: 100%;
  }
  .mtn-item:active { background: #1a2035; }
}

/* ── FOOTER (new, shared across blog + eventually main site) ── */
.site-footer { border-top: 1px solid #1e2330; padding: 24px 32px 40px; text-align: center; }
.site-footer a { color: #6b7a9f; font-size: 12px; text-decoration: none; margin: 0 10px; }
.site-footer a:hover { color: #f5a623; }

/* ── BLOG INDEX LISTING ── */
.blog-wrap { max-width: 760px; margin: 0 auto; padding: 40px 24px 60px; }
.blog-title { font-family: 'Barlow Condensed', sans-serif; font-size: 32px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #f0f2f8; margin-bottom: 6px; }
.blog-subtitle { font-size: 14px; color: #6b7a9f; margin-bottom: 32px; }
.post-card:first-of-type { padding-top: 0; }
.post-card-title { font-family: 'Barlow Condensed', sans-serif; font-size: 22px; font-weight: 700; color: #f0f2f8; margin-bottom: 6px; transition: color 0.15s; }
.post-card:hover .post-card-title { color: #f5a623; }
.post-card-meta { font-size: 12px; color: #3a4460; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 8px; }
.post-card-excerpt { font-size: 14px; color: #9aa5c0; line-height: 1.6; }

/* ── ARTICLE (individual post) ── */
.article-wrap { max-width: 700px; margin: 0 auto; padding: 40px 24px 60px; }
.article-back { display: inline-block; font-size: 12px; color: #6b7a9f; text-decoration: none; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 24px; }
.article-back:hover { color: #f5a623; }
.article-title { font-family: 'Barlow Condensed', sans-serif; font-size: 34px; font-weight: 700; letter-spacing: 0.5px; color: #f5a623; line-height: 1.15; margin-bottom: 10px; }
.article-meta { font-size: 12px; color: #3a4460; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 24px; }
.article-body { font-size: 16px; line-height: 1.75; color: #d3d8e5; }
.article-body p { margin-bottom: 20px; }
.article-body h2 { font-family: 'Barlow Condensed', sans-serif; font-size: 24px; font-weight: 700; color: #f0f2f8; margin: 32px 0 14px; letter-spacing: 0.5px; }
.article-body h3 { font-family: 'Barlow Condensed', sans-serif; font-size: 19px; font-weight: 700; color: #f0f2f8; margin: 24px 0 10px; letter-spacing: 0.5px; }
.article-body a { color: #f5a623; text-decoration: underline; }
.article-body ul, .article-body ol { margin: 0 0 20px 22px; }
.article-body li { margin-bottom: 8px; }
.article-body img { max-width: 100%; border-radius: 6px; margin: 20px 0; }
.article-body blockquote { border-left: 3px solid #f5a623; padding-left: 16px; color: #9aa5c0; margin: 20px 0; font-style: italic; }
.article-cta { position: relative; margin-top: 98px; padding: 20px 24px 24px; background: #0d1117; border-top: 2px solid #f5a623; border-radius: 8px; text-align: center; box-shadow: 0 8px 24px rgba(0,0,0,0.35); }
.cta-peek { position: absolute; top: -73px; left: 50%; transform: translateX(-50%); width: 92px; height: auto; pointer-events: none; }
.cta-text { font-family: 'Barlow Condensed', sans-serif; font-size: 17px; font-weight: 700; color: #f0f2f8; letter-spacing: 0.5px; line-height: 1.3; margin-bottom: 16px; }
.cta-text span { color: #f5a623; }
.cta-row2 { display: flex; align-items: center; gap: 8px; max-width: 360px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.cta-input { background: #161b27; border: 1px solid #2a3045; border-radius: 6px; padding: 9px 14px; color: #f0f2f8; font-size: 15px; font-family: 'Barlow', sans-serif; flex: 1; min-width: 180px; outline: none; transition: border-color 0.15s; }
.cta-input:focus { border-color: #f5a623; }
.cta-input::placeholder { color: #3a4460; }
.cta-btn { font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; background: #f5a623; color: #0a0c10; border: none; border-radius: 6px; padding: 9px 20px; cursor: pointer; transition: opacity 0.15s; flex-shrink: 0; white-space: nowrap; }
.cta-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.cta-btn:hover:not(:disabled) { opacity: 0.85; }
.cta-success { font-family: 'Barlow Condensed', sans-serif; font-size: 15px; font-weight: 600; color: #5ac87a; text-align: center; padding: 4px 0; }
.email-banner-consent { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #3a4460; cursor: pointer; margin: 10px auto 0; max-width: 360px; text-align: left; }
.email-banner-consent input { accent-color: #f5a623; cursor: pointer; }

/* ── PRIVACY/TERMS MODAL (verbatim from main site) ── */
.privacy-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); z-index: 1000; align-items: center; justify-content: center; padding: 20px; }
.privacy-modal.active { display: flex; }
.privacy-content { background: #0d1117; border: 1px solid #1e2330; border-radius: 12px; max-width: 600px; width: 100%; max-height: 80vh; overflow-y: auto; padding: 32px; position: relative; }
.privacy-close { position: absolute; top: 16px; right: 16px; background: none; border: none; color: #3a4460; cursor: pointer; font-size: 20px; line-height: 1; }
.privacy-close:hover { color: #f5a623; }
.privacy-title { font-family: 'Barlow Condensed', sans-serif; font-size: 22px; font-weight: 700; color: #f0f2f8; margin-bottom: 4px; }
.privacy-title span { color: #f5a623; }
.privacy-date { font-size: 11px; color: #3a4460; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 24px; }
.privacy-section { margin-bottom: 20px; }
.privacy-section h3 { font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #f5a623; margin-bottom: 8px; }
.privacy-section p { font-size: 13px; color: #8a94b8; line-height: 1.7; }
.privacy-section a { color: #5aa3e8; text-decoration: none; }
.privacy-section a:hover { text-decoration: underline; }

/* ── BLOG HEADER OVERRIDES (simplified nav for blog pages) ── */
.blog-back-btn { font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 6px 14px; border-radius: 4px; border: 1px solid #2a3045; background: transparent; color: #f0f2f8; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: border-color 0.15s; }
.blog-back-btn:hover { border-color: #f5a623; color: #f5a623; }
.blog-logo-tag { color: #f0f2f8; }

/* ── POST CARD (index) WITH AVATAR ── */
.post-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid #1e2330; text-decoration: none; }
.post-card-avatar { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; background: #0d1117; border: 1px solid #1e2330; flex-shrink: 0; }
.post-card-body { flex: 1; min-width: 0; }
