/* ── GayTelegraph.com — Shared Stylesheet ── */

:root {
  --bg: #fdfcfb;
  --surface: #ffffff;
  --surface2: #f8f4ff;
  --text: #1a1028;
  --text-muted: #6b5f7a;
  --accent: #7c3aed;
  --accent2: #ec4899;
  --accent3: #0d9488;
  --accent4: #f97316;
  --border: #ede5f8;
  --shadow: 0 1px 12px rgba(124,58,237,.07);
  --shadow-md: 0 4px 24px rgba(124,58,237,.13);
  --radius: 12px;
  --max-w: 1200px;
  --rainbow: linear-gradient(to right,#e40303,#ff8c00,#ffed00,#008026,#004dff,#750787);
}

[data-theme="dark"] {
  --bg: #0f0a1e;
  --surface: #1a1232;
  --surface2: #221840;
  --text: #f0ecff;
  --text-muted: #9d91b8;
  --border: #2e2050;
  --shadow: 0 1px 14px rgba(0,0,0,.4);
  --shadow-md: 0 4px 28px rgba(0,0,0,.6);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--text); line-height: 1.65; transition: background .3s, color .3s; }

/* RAINBOW BAR */
.rainbow-bar { height: 5px; background: var(--rainbow); }

/* HEADER */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 13px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo-icon { width: 42px; height: 42px; background: var(--rainbow); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff; flex-shrink: 0; }
.logo-name { font-size: 1.25rem; font-weight: 900; letter-spacing: -0.3px; }
.logo-tag { font-size: .67rem; color: var(--text-muted); display: block; font-weight: 400; letter-spacing: .4px; text-transform: uppercase; }
nav { display: flex; align-items: center; gap: 3px; flex-wrap: wrap; }
nav a { color: var(--text-muted); text-decoration: none; font-size: .83rem; font-weight: 500; padding: 6px 11px; border-radius: 8px; transition: background .18s, color .18s; }
nav a:hover, nav a.active { background: var(--surface2); color: var(--accent); }
.theme-btn { background: var(--surface2); border: 1px solid var(--border); color: var(--text-muted); cursor: pointer; width: 34px; height: 34px; border-radius: 8px; font-size: 15px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* HERO */
.hero { background: linear-gradient(140deg, #3b0764 0%, #7c3aed 45%, #ec4899 80%, #f97316 100%); color: #fff; padding: 72px 24px 60px; text-align: center; position: relative; overflow: hidden; }
.hero::after { content: '🏳️‍🌈'; position: absolute; font-size: 260px; opacity: .05; right: -40px; top: -30px; pointer-events: none; }
.hero-label { display: inline-block; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25); border-radius: 20px; padding: 5px 14px; font-size: .73rem; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2rem,5vw,3.4rem); font-weight: 900; line-height: 1.15; margin-bottom: 16px; text-shadow: 0 2px 14px rgba(0,0,0,.2); position: relative; z-index: 1; }
.hero p { font-size: 1.1rem; opacity: .88; max-width: 580px; margin: 0 auto 28px; position: relative; z-index: 1; }
.hero-cta { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.18); border: 2px solid rgba(255,255,255,.4); color: #fff; padding: 12px 28px; border-radius: 10px; font-weight: 700; font-size: .95rem; text-decoration: none; transition: background .18s; position: relative; z-index: 1; }
.hero-cta:hover { background: rgba(255,255,255,.28); }

/* STATS BAR */
.stats-bar { background: var(--surface); border-bottom: 1px solid var(--border); }
.stats-inner { max-width: var(--max-w); margin: 0 auto; padding: 18px 24px; display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-n { font-size: 1.5rem; font-weight: 900; color: var(--accent); display: block; }
.stat-l { font-size: .72rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: .5px; }

/* SECTION */
.section { max-width: var(--max-w); margin: 0 auto; padding: 52px 24px; }
.section-label { font-size: .72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 6px; }
.section-title { font-size: 1.75rem; font-weight: 900; line-height: 1.2; }
.section-sub { color: var(--text-muted); font-size: .92rem; margin-top: 6px; }
.section-header { margin-bottom: 28px; }

/* CATEGORY TABS */
.cat-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.cat-tab { padding: 8px 18px; border-radius: 22px; font-size: .82rem; font-weight: 700; border: 2px solid var(--border); background: var(--surface); color: var(--text-muted); cursor: default; }
.cat-tab.travel { border-color: #0d9488; color: #0d9488; background: #f0fdf9; }
.cat-tab.culture { border-color: #ec4899; color: #ec4899; background: #fdf2f8; }
.cat-tab.glossary { border-color: #f97316; color: #f97316; background: #fff7ed; }
[data-theme="dark"] .cat-tab.travel { background: #0a2826; }
[data-theme="dark"] .cat-tab.culture { background: #2d0a1e; }
[data-theme="dark"] .cat-tab.glossary { background: #2d1407; }

/* ARTICLE GRID */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.article-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s, border-color .18s; }
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.card-thumb { height: 180px; position: relative; overflow: hidden; background-size: cover; background-position: center; background-color: #1a1028; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.article-card:hover .card-thumb img { transform: scale(1.05); }
.card-thumb-overlay { position: absolute; inset: 0; opacity: 0.42; transition: opacity .3s; z-index: 1; }
.article-card:hover .card-thumb-overlay { opacity: 0.28; }
.card-thumb svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.card-cat { z-index: 2; }
.card-read-time { z-index: 2; }
.card-cat { position: absolute; top: 12px; left: 12px; font-size: .68rem; font-weight: 700; padding: 3px 9px; border-radius: 6px; z-index: 2; }
.card-cat.travel { background: #0d9488; color: #fff; }
.card-cat.culture { background: #ec4899; color: #fff; }
.card-cat.glossary { background: #f97316; color: #fff; }
.card-read-time { position: absolute; bottom: 10px; right: 12px; font-size: .67rem; font-weight: 600; color: rgba(255,255,255,.9); background: rgba(0,0,0,.35); padding: 2px 8px; border-radius: 4px; z-index: 2; backdrop-filter: blur(4px); }
.card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.card-title { font-size: .97rem; font-weight: 700; line-height: 1.35; margin-bottom: 8px; }
.card-desc { font-size: .82rem; color: var(--text-muted); line-height: 1.6; flex: 1; }
.card-meta { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.badge { background: var(--surface2); border: 1px solid var(--border); color: var(--text-muted); font-size: .68rem; font-weight: 600; padding: 3px 8px; border-radius: 5px; }

/* ARTICLE PAGE */
.article-hero { padding: 52px 24px 44px; color: #fff; }
.article-hero-inner { max-width: 900px; margin: 0 auto; }
.breadcrumb { font-size: .78rem; opacity: .75; margin-bottom: 14px; }
.breadcrumb a { color: rgba(255,255,255,.75); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { margin: 0 6px; opacity: .5; }
.article-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: .83rem; opacity: .88; margin-top: 12px; }

.article-wrap { max-width: 1100px; margin: 0 auto; padding: 44px 24px 64px; display: grid; grid-template-columns: 1fr 300px; gap: 36px; }
@media (max-width: 860px) { .article-wrap { grid-template-columns: 1fr; } }

.article-body h2 { font-size: 1.3rem; font-weight: 800; color: var(--accent); margin: 32px 0 12px; padding-bottom: 6px; border-bottom: 2px solid var(--border); }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-size: 1.05rem; font-weight: 700; margin: 20px 0 8px; color: var(--text); }
.article-body p { font-size: .93rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 14px; }
.article-body ul, .article-body ol { margin: 0 0 16px 22px; }
.article-body li { font-size: .91rem; color: var(--text-muted); margin-bottom: 8px; line-height: 1.65; }
.article-body strong { color: var(--text); }
.article-body a { color: var(--accent); }

/* NUMBERED LIST ITEMS */
.rank-list { list-style: none; margin: 0 0 20px; padding: 0; }
.rank-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--border); }
.rank-item:last-child { border-bottom: none; }
.rank-num { min-width: 36px; height: 36px; background: var(--accent); color: #fff; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: .85rem; flex-shrink: 0; }
.rank-num.pink { background: var(--accent2); }
.rank-num.teal { background: var(--accent3); }
.rank-num.orange { background: var(--accent4); }
.rank-content .rank-title { font-weight: 700; font-size: .94rem; margin-bottom: 3px; color: var(--text); }
.rank-content .rank-desc { font-size: .83rem; color: var(--text-muted); line-height: 1.6; }

/* SIDEBAR */
.sidebar { display: flex; flex-direction: column; gap: 18px; }
.widget { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; position: sticky; top: 76px; }
.widget-head { padding: 12px 16px; font-weight: 700; font-size: .85rem; border-bottom: 1px solid var(--border); background: var(--surface2); display: flex; gap: 7px; align-items: center; }
.widget-body { padding: 14px 16px; }
.widget-link { display: block; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: .84rem; color: var(--text); text-decoration: none; font-weight: 500; transition: color .18s; }
.widget-link:last-child { border-bottom: none; }
.widget-link:hover { color: var(--accent); }
.widget-link span { font-size: .72rem; color: var(--text-muted); display: block; }

/* GLOSSARY */
.glossary-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.gloss-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 18px; box-shadow: var(--shadow); }
.gloss-term { font-size: 1rem; font-weight: 800; color: var(--accent); margin-bottom: 6px; }
.gloss-def { font-size: .84rem; color: var(--text-muted); line-height: 1.65; }
.alpha-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.alpha-btn { width: 34px; height: 34px; border-radius: 7px; background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .82rem; color: var(--text-muted); cursor: default; }
.alpha-btn.has { background: var(--surface2); border-color: var(--accent); color: var(--accent); }

/* INFO BOX */
.info-box { background: var(--surface2); border-left: 4px solid var(--accent); border-radius: 0 8px 8px 0; padding: 14px 18px; margin: 18px 0; }
.info-box p { margin: 0; font-size: .88rem; }
.warn-box { background: #fff7ed; border-left: 4px solid var(--accent4); border-radius: 0 8px 8px 0; padding: 14px 18px; margin: 18px 0; }
[data-theme="dark"] .warn-box { background: #2d1407; }
.warn-box p { margin: 0; font-size: .88rem; color: var(--text-muted); }

/* FOOTER */
footer { background: #1a1028; color: rgba(255,255,255,.6); padding: 44px 24px 28px; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
@media (max-width: 720px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand p { font-size: .82rem; line-height: 1.65; margin-top: 10px; }
.footer-brand .fname { font-size: 1.1rem; font-weight: 800; color: #fff; display: flex; align-items: center; gap: 8px; }
.footer-col h4 { font-size: .77rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: rgba(255,255,255,.35); margin-bottom: 12px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,.5); text-decoration: none; font-size: .83rem; transition: color .18s; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: .77rem; }
.footer-links { display: flex; gap: 16px; }
.footer-links a { color: rgba(255,255,255,.35); text-decoration: none; }
.footer-links a:hover { color: rgba(255,255,255,.7); }

@media (max-width: 600px) { .hero { padding: 48px 18px 40px; } .section { padding: 36px 18px; } }
