/*
Theme Name:  Persian Atheists - Raha
Theme URI:   https://raha.org
Author:      Babak Dalivand
Description: پوسته اختصاصی سایت رها — آتئیست‌های ایرانی
Version:     3.0.0
Text Domain: raha
Tags:        rtl-language, dark, light, blog, modern, persian, cosmic
*/

/* ══════════════════════════════════════
   THEME VARIABLES — DARK (آبی نفتی + نارنجی)
══════════════════════════════════════ */
:root {
    --bg:           #0d1b2a;
    --bg2:          #0a1520;
    --surface:      #112236;
    --surface2:     #162c42;
    --border:       rgba(255,140,50,.1);
    --border2:      rgba(255,140,50,.25);
    --text:         #b8ccd8;
    --text2:        #6a8fa8;
    --text3:        #3a5a72;
    --heading:      #e8f0f8;
    --acc:          #ff8c32;
    --acc2:         #ffaa60;
    --acc3:         #cc6010;
    --card-bg:      rgba(17,34,54,.94);
    --card-border:  rgba(255,140,50,.07);
    --pill-bg:      rgba(255,140,50,.06);
    --shadow:       0 8px 32px rgba(0,0,0,.6);
    --icon-stroke:  #4a7a9a;
    --icon-cat:     #3a6a88;
    --icon-thumb:   rgba(255,140,50,.28);
    --transition:   .35s ease;
    --font:         'Vazirmatn', 'Tahoma', sans-serif;
    --radius:       8px;
    --radius-lg:    12px;
}

/* ══════════════════════════════════════
   LIGHT MODE (آبی روشن + نارنجی)
══════════════════════════════════════ */
body.raha-light {
    --bg:           #eef4fa;
    --bg2:          #e4eef6;
    --surface:      #d8e8f4;
    --surface2:     #ccdaec;
    --border:       rgba(200,100,20,.16);
    --border2:      rgba(200,100,20,.32);
    --text:         #1e3a54;
    --text2:        #4a7090;
    --text3:        #8aaccа;
    --heading:      #0d1b2a;
    --acc:          #c85010;
    --acc2:         #e07020;
    --acc3:         #e89040;
    --card-bg:      rgba(236,246,255,.97);
    --card-border:  rgba(200,100,20,.12);
    --pill-bg:      rgba(200,100,20,.07);
    --shadow:       0 8px 32px rgba(0,0,0,.12);
    --icon-stroke:  #4a7a9a;
    --icon-cat:     #3a6a88;
    --icon-thumb:   rgba(180,90,20,.3);
}

/* ══════════════════════════════════════
   RESET & BASE
══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { direction: rtl; font-size: 16px; scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.8;
    min-height: 100vh;
    transition: background var(--transition), color var(--transition);
}

/* CANVAS */
#rahaStars {
    position: fixed; inset: 0; z-index: 0;
    pointer-events: none;
    opacity: 1; transition: opacity .6s;
}
body.raha-light #rahaStars { opacity: 0; }

#rahaSun {
    position: fixed; top: -100px; right: 60px;
    width: 320px; height: 320px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,170,60,.14), rgba(255,150,40,.04) 55%, transparent 72%);
    pointer-events: none; opacity: 0; transition: opacity .6s; z-index: 0;
}
body.raha-light #rahaSun { opacity: 1; }

.site-header, .site-main, .site-footer,
.hero-banner, .cat-bar, .content-area,
.page-header, .entry-content { position: relative; z-index: 2; }

a { color: var(--acc); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--acc2); }
h1,h2,h3,h4,h5,h6 { color: var(--heading); font-weight: 700; line-height: 1.4; font-family: var(--font); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 28px; }

/* ══════════════════════════════════════
   SITE HEADER
══════════════════════════════════════ */
.site-header {
    background: rgba(13,27,42,.92);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 1000;
    backdrop-filter: blur(16px);
    transition: background var(--transition), border-color var(--transition);
}
body.raha-light .site-header {
    background: rgba(220,232,244,.92);
}
.site-header::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--acc2), transparent);
    opacity: .2;
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 28px; max-width: 1400px; margin: 0 auto; gap: 14px;
}

/* ── LOGO — بزرگ‌تر و واضح‌تر ── */
.logo-area { display: flex; align-items: center; gap: 14px; }
.logo-orbit {
    position: relative;
    width: 72px; height: 72px;   /* بزرگ‌تر از قبل */
    flex-shrink: 0;
}
.orbit-ring1 {
    position: absolute; inset: 0; border-radius: 50%;
    border: 1.5px solid rgba(255,140,50,.25);
    animation: orbitSpin 12s linear infinite;
}
.orbit-ring1::after {
    content: '';
    position: absolute; width: 7px; height: 7px;
    background: var(--acc); border-radius: 50%;
    top: -3.5px; left: 50%; transform: translateX(-50%);
    box-shadow: 0 0 10px var(--acc), 0 0 20px rgba(255,140,50,.4);
    transition: background var(--transition);
}
.orbit-ring2 {
    position: absolute; inset: 8px; border-radius: 50%;
    border: 1px solid rgba(255,140,50,.12);
    animation: orbitSpin 7s linear infinite reverse;
}
.orbit-ring2::after {
    content: '';
    position: absolute; width: 4px; height: 4px;
    background: rgba(255,140,50,.55); border-radius: 50%;
    bottom: -2px; left: 50%; transform: translateX(-50%);
}
.logo-core {
    position: absolute;
    inset: 10px;            /* فضای بیشتر برای لوگو */
    border-radius: 50%;
    background: var(--surface2);
    border: 1.5px solid var(--border2);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    transition: background var(--transition);
}
.logo-core img {
    width: 100%; height: 100%;
    object-fit: cover; border-radius: 50%;
}
.logo-core-fallback {
    font-size: 1.1rem; font-weight: 900;
    background: linear-gradient(135deg, var(--acc), var(--acc2));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.logo-texts { display: flex; flex-direction: column; gap: 2px; }
.logo-name {
    font-size: .92rem; font-weight: 900;
    background: linear-gradient(135deg, var(--acc), var(--acc2));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.logo-sub { font-size: .5rem; color: var(--text2); letter-spacing: .3px; }
.logo-raha { font-size: .48rem; color: var(--acc3); letter-spacing: 1.5px; text-transform: uppercase; }

/* ── MAIN NAV ── */
.main-nav ul { display: flex; gap: 1px; list-style: none; }
.main-nav a {
    color: var(--text2); font-size: .68rem;
    padding: 6px 10px; border-radius: 6px;
    text-decoration: none; font-family: var(--font);
    transition: color var(--transition), background var(--transition);
    letter-spacing: .2px;
}
.main-nav a:hover, .main-nav a.active { color: var(--acc); background: var(--pill-bg); }

/* ── HEADER ACTIONS ── */
.header-actions { display: flex; gap: 6px; align-items: center; }
.hdr-btn {
    font-size: .68rem; padding: 6px 12px; border-radius: 6px;
    text-decoration: none; transition: all var(--transition);
    font-family: var(--font); white-space: nowrap;
    border: none; cursor: pointer; letter-spacing: .2px;
}
.hdr-btn-outline { color: var(--text2); border: 1px solid var(--border); background: transparent; }
.hdr-btn-outline:hover { color: var(--heading); border-color: var(--border2); }
.hdr-btn-primary { background: linear-gradient(135deg,#b04010,#d86018); color: #fff; font-weight: 700; }
.hdr-btn-primary:hover { background: linear-gradient(135deg,#d86018,#f07830); color: #fff; transform: translateY(-1px); }
.hdr-btn-support { background: var(--pill-bg); border: 1px solid var(--border2); color: var(--acc3); font-weight: 600; }
.hdr-btn-support:hover { background: rgba(255,140,50,.12); color: var(--acc); }

/* ── ACCENT LINE ── */
.accent-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--acc), transparent);
    opacity: .18; position: relative; z-index: 999;
}

/* ── THEME TOGGLE ── */
.theme-toggle { display: flex; align-items: center; gap: 7px; margin-left: 4px; }
.toggle-time { font-size: .5rem; color: var(--text3); letter-spacing: .4px; }
.toggle-track {
    width: 46px; height: 23px; border-radius: 12px;
    background: var(--surface2); border: 1px solid var(--border2);
    position: relative; cursor: pointer;
    transition: background var(--transition); flex-shrink: 0;
}
.toggle-thumb {
    position: absolute; top: 3px; right: 3px;
    width: 15px; height: 15px; border-radius: 50%;
    background: var(--acc);
    transition: right .3s, left .3s, background var(--transition);
    display: flex; align-items: center; justify-content: center;
}
body.raha-light .toggle-thumb { right: auto; left: 3px; }
.toggle-thumb svg { width: 9px; height: 9px; fill: none; stroke: rgba(0,0,0,.6); stroke-width: 2; stroke-linecap: round; }

/* ── ICONS — use CSS vars ── */
svg.icon     { display: block; fill: none; stroke: var(--icon-stroke); stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; transition: stroke var(--transition); }
svg.icon-cat { stroke: var(--icon-cat); stroke-width: 1.5; }
svg.icon-thumb { stroke: var(--icon-thumb); stroke-width: 1; fill: none; }
svg.icon-sec { stroke: var(--text2); stroke-width: 1.5; }
svg.icon-type { stroke: var(--icon-stroke); stroke-width: 1.5; }
svg.icon-pi  { stroke: var(--text3); stroke-width: 1.4; }
.cat-pill:hover svg.icon-cat, .cat-pill.active svg.icon-cat { stroke: var(--acc); }

/* ══════════════════════════════════════
   HERO BANNER
══════════════════════════════════════ */
.hero-banner {
    position: relative; z-index: 2;
    padding: 28px 28px 20px; text-align: center;
    border-bottom: 1px solid var(--border);
    transition: border-color var(--transition);
}
.hero-banner::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse 80% 120% at 50% 0%, rgba(30,80,180,.1), transparent 68%);
    pointer-events: none;
}
body.raha-light .hero-banner::before {
    background: radial-gradient(ellipse 80% 120% at 50% 0%, rgba(255,160,60,.1), transparent 68%);
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--pill-bg); border: 1px solid var(--border2);
    color: var(--acc3); font-size: .6rem;
    padding: 3px 14px; border-radius: 20px; margin-bottom: 12px;
    letter-spacing: .5px; font-family: var(--font);
}
.hero-badge-dot { width: 4px; height: 4px; background: var(--acc); border-radius: 50%; animation: pulse 2s infinite; }
.hero-title { font-size: 1.8rem; font-weight: 900; margin-bottom: 6px; }
.hero-title .word1 { color: var(--heading); }
.hero-title .word2 {
    background: linear-gradient(135deg, var(--acc), var(--acc2));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.raha-acronym { display: flex; justify-content: center; gap: 6px; margin: 10px auto 12px; direction: ltr; }
.raha-letter-card {
    background: var(--pill-bg); border: 1px solid var(--border);
    border-radius: 8px; padding: 7px 11px;
    text-align: center; min-width: 74px;
    transition: all .25s; cursor: default;
}
.raha-letter-card:hover { border-color: var(--border2); transform: translateY(-3px); }
.raha-letter {
    font-size: 1.05rem; font-weight: 900;
    background: linear-gradient(135deg, var(--acc), var(--acc2));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.raha-en { font-size: .5rem; color: var(--acc3); margin: 2px 0; letter-spacing: .3px; }
.raha-fa { font-size: .52rem; color: var(--text2); }
.hero-msg { font-size: .72rem; color: var(--text2); max-width: 420px; margin: 0 auto; line-height: 1.75; }
.hero-btns { display: flex; gap: 12px; justify-content: center; margin-top: 20px; }
.hero-btn-primary {
    padding: 11px 28px; border-radius: 9px;
    background: linear-gradient(135deg,#b04010,#d86018);
    color: #fff; font-weight: 800; font-size: .9rem;
    text-decoration: none; transition: all .25s; font-family: var(--font);
}
.hero-btn-primary:hover {
    background: linear-gradient(135deg,#d86018,#f07830);
    color: #fff; transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,120,40,.35);
}
.hero-btn-outline {
    padding: 11px 28px; border-radius: 9px;
    border: 1px solid rgba(255,140,50,.28); color: var(--acc);
    font-size: .9rem; text-decoration: none;
    transition: all .25s; font-family: var(--font);
}
.hero-btn-outline:hover { background: var(--pill-bg); border-color: var(--border2); color: var(--acc2); }

/* ══════════════════════════════════════
   CATEGORY BAR
══════════════════════════════════════ */
.cat-bar {
    position: relative; z-index: 2;
    border-bottom: 1px solid var(--border);
    padding: 9px 28px;
    display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
    background: rgba(13,27,42,.5);
    transition: border-color var(--transition), background var(--transition);
}
body.raha-light .cat-bar { background: rgba(210,228,244,.5); }
.cat-bar::-webkit-scrollbar { display: none; }
.cat-pill {
    display: flex; align-items: center; gap: 5px;
    padding: 5px 12px; border-radius: 16px;
    border: 1px solid var(--border); background: var(--card-bg);
    cursor: pointer; white-space: nowrap;
    transition: all var(--transition); flex-shrink: 0;
    font-size: .62rem; color: var(--text2);
    letter-spacing: .2px; font-family: var(--font);
}
.cat-pill:hover, .cat-pill.active { border-color: var(--border2); background: var(--pill-bg); color: var(--acc); }

/* ══════════════════════════════════════
   CONTENT CARDS
══════════════════════════════════════ */
.content-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; margin-bottom: 16px; }
.content-card {
    border-radius: 10px; overflow: hidden;
    cursor: pointer; background: var(--card-bg);
    border: 1px solid var(--card-border);
    transition: all .25s;
}
.content-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border2); }
.card-thumb { height: 68px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }

/* DARK THUMBS */
body:not(.raha-light) .thumb-phil { background: linear-gradient(135deg,#060e1a,#0c1c30); }
body:not(.raha-light) .thumb-sci  { background: linear-gradient(135deg,#080c18,#101828); }
body:not(.raha-light) .thumb-sec  { background: linear-gradient(135deg,#06100e,#0c1e1a); }
body:not(.raha-light) .thumb-pol  { background: linear-gradient(135deg,#140c06,#20140a); }
body:not(.raha-light) .thumb-hum  { background: linear-gradient(135deg,#080618,#100c28); }
body:not(.raha-light) .thumb-sci2 { background: linear-gradient(135deg,#060810,#0e1220); }
body:not(.raha-light) .thumb-deb  { background: linear-gradient(135deg,#04100e,#081c18); }
body:not(.raha-light) .thumb-pod  { background: linear-gradient(135deg,#060618,#0c0c28); }
body:not(.raha-light) .thumb-vid  { background: linear-gradient(135deg,#060e1a,#0c1c30); }
body:not(.raha-light) .thumb-news { background: linear-gradient(135deg,#060810,#0e1220); }

/* LIGHT THUMBS */
body.raha-light .thumb-phil { background: linear-gradient(135deg,#d0dcea,#c0cce0); }
body.raha-light .thumb-sci  { background: linear-gradient(135deg,#d0dce8,#bcccd8); }
body.raha-light .thumb-sec  { background: linear-gradient(135deg,#d0e8e0,#c0dcd4); }
body.raha-light .thumb-pol  { background: linear-gradient(135deg,#eedcc8,#e4cca8); }
body.raha-light .thumb-hum  { background: linear-gradient(135deg,#d4d0e8,#c8c4e0); }
body.raha-light .thumb-sci2 { background: linear-gradient(135deg,#d0d8e8,#c0cce0); }
body.raha-light .thumb-deb  { background: linear-gradient(135deg,#d0e8e0,#c0dcd4); }
body.raha-light .thumb-pod  { background: linear-gradient(135deg,#d4d0e8,#c8c4e0); }
body.raha-light .thumb-vid  { background: linear-gradient(135deg,#d0dcea,#c0cce0); }
body.raha-light .thumb-news { background: linear-gradient(135deg,#d0d8e8,#c0cce0); }

.card-body { padding: 9px 11px; }
.card-type {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: .52rem; padding: 2px 7px; border-radius: 5px;
    margin-bottom: 4px; border: 1px solid var(--border);
    color: var(--text2); letter-spacing: .3px; font-family: var(--font);
    transition: border-color var(--transition), color var(--transition);
}
.card-cat { font-size: .5rem; color: var(--text3); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 2px; }
.card-title { font-size: .68rem; color: var(--text); line-height: 1.35; margin-bottom: 3px; }
.card-title a { color: inherit; }
.card-title a:hover { color: var(--acc); }
.card-meta { font-size: .52rem; color: var(--text2); letter-spacing: .2px; }

/* PODCAST BARS */
.pod-visual { height: 68px; display: flex; align-items: center; justify-content: center; gap: 3px; padding: 0 14px; }
body:not(.raha-light) .pod-visual { background: linear-gradient(135deg,#060618,#0c0c28); }
body.raha-light .pod-visual { background: linear-gradient(135deg,#d4d0e8,#c8c4e0); }
.pod-bar { width: 2px; border-radius: 2px; background: var(--acc); opacity: .5; animation: podWave var(--d,.6s) ease-in-out infinite alternate; }
@keyframes podWave { 0%{height:4px;opacity:.28} 100%{height:var(--h,18px);opacity:.72} }

/* VIDEO */
.vid-thumb { height: 68px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
body:not(.raha-light) .vid-thumb { background: linear-gradient(135deg,#060e1a,#0c1c30); }
body.raha-light .vid-thumb { background: linear-gradient(135deg,#d0dcea,#c0cce0); }
.vid-play { width: 28px; height: 28px; border-radius: 50%; background: rgba(200,60,20,.15); border: 1px solid rgba(200,60,20,.28); display: flex; align-items: center; justify-content: center; }
.vid-play svg { width: 10px; height: 10px; fill: none; stroke: rgba(220,80,50,.75); stroke-width: 2; }
.yt-badge { position: absolute; top: 5px; left: 5px; background: rgba(180,30,30,.15); border: 1px solid rgba(180,30,30,.25); color: rgba(210,70,70,.75); font-size: .46rem; padding: 1px 5px; border-radius: 3px; font-weight: 700; }
.ch-badge { position: absolute; top: 5px; right: 5px; font-size: .46rem; color: var(--text3); background: var(--surface); padding: 2px 6px; border-radius: 3px; border: 1px solid var(--border); transition: background var(--transition); }

/* DEBATE */
.deb-visual { height: 68px; display: flex; align-items: center; justify-content: center; gap: 14px; }
body:not(.raha-light) .deb-visual { background: linear-gradient(135deg,#04100e,#081c18); }
body.raha-light .deb-visual { background: linear-gradient(135deg,#d0e8e0,#c0dcd4); }
.deb-vs { font-size: .6rem; color: var(--acc); border: 1px solid var(--border2); padding: 2px 7px; border-radius: 4px; letter-spacing: 1px; font-weight: 700; }

/* FEATURED */
.featured-card {
    background: var(--card-bg); border: 1px solid var(--border2);
    border-radius: 10px; overflow: hidden; margin-bottom: 16px;
    display: grid; grid-template-columns: 110px 1fr;
    transition: background var(--transition), border-color var(--transition);
}
.featured-img { display: flex; align-items: center; justify-content: center; }
body:not(.raha-light) .featured-img { background: linear-gradient(135deg,#081422,#0f2040); }
body.raha-light .featured-img { background: linear-gradient(135deg,#d0dcec,#c0cce0); }
.featured-body { padding: 14px 16px; }
.featured-tag {
    display: inline-flex; align-items: center; gap: 4px;
    background: var(--pill-bg); border: 1px solid var(--border2);
    color: var(--acc3); font-size: .55rem;
    padding: 2px 8px; border-radius: 7px; margin-bottom: 7px; letter-spacing: .3px;
}
.featured-title { font-size: .9rem; color: var(--heading); font-weight: 700; line-height: 1.4; margin-bottom: 5px; }
.featured-excerpt { font-size: .65rem; color: var(--text2); line-height: 1.65; margin-bottom: 7px; }
.featured-meta { font-size: .55rem; color: var(--text3); display: flex; gap: 10px; }

/* POPULAR */
.popular-list { display: flex; flex-direction: column; gap: 6px; }
.popular-item {
    background: var(--card-bg); border: 1px solid var(--card-border);
    border-radius: 8px; padding: 9px 12px;
    display: flex; align-items: center; gap: 9px;
    cursor: pointer; transition: all var(--transition);
}
.popular-item:hover { border-color: var(--border2); }
.popular-num {
    font-size: .9rem; font-weight: 900;
    background: linear-gradient(135deg, var(--acc), var(--acc2));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    min-width: 16px; text-align: center;
}
.popular-title { font-size: .66rem; color: var(--text); margin-bottom: 2px; line-height: 1.35; }
.popular-meta { font-size: .52rem; color: var(--text2); letter-spacing: .2px; }

/* SECTION HEADER */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.section-title-bar { font-size: .78rem; color: var(--text); font-weight: 700; display: flex; align-items: center; gap: 7px; letter-spacing: .3px; }
.section-more { font-size: .58rem; color: var(--text2); text-decoration: none; border: 1px solid var(--border); padding: 3px 9px; border-radius: 8px; transition: all var(--transition); }
.section-more:hover { color: var(--acc); border-color: var(--border2); }

/* STATS BAR */
.stats-bar { display: grid; grid-template-columns: repeat(4,1fr); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 18px; overflow: hidden; }
.stat-item { text-align: center; padding: 14px; border-left: 1px solid var(--border); }
.stat-item:last-child { border: none; }
.stat-num { font-size: 1.55rem; font-weight: 900; background: linear-gradient(135deg,var(--acc),var(--acc2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-lbl { font-size: .63rem; color: var(--text2); margin-top: 3px; }

/* ══════════════════════════════════════
   PAGE HEADER
══════════════════════════════════════ */
.page-header { background: var(--surface); border-bottom: 1px solid var(--border); padding: 48px 28px; text-align: center; transition: background var(--transition); }
.page-header h1 { font-size: 2rem; margin-bottom: 10px; }
.page-header p { color: var(--text2); font-size: .9rem; }
.breadcrumb { font-size: .75rem; color: var(--text2); margin-bottom: 12px; }
.breadcrumb a { color: var(--acc); }
.breadcrumb span { margin: 0 8px; color: var(--border2); }

/* ══════════════════════════════════════
   BUTTONS
══════════════════════════════════════ */
.btn { display: inline-block; padding: 10px 24px; border-radius: 8px; font-size: .88rem; font-weight: 700; transition: all var(--transition); cursor: pointer; border: none; font-family: var(--font); text-decoration: none; }
.btn-primary { background: linear-gradient(135deg,#b04010,#d86018); color: #fff; }
.btn-primary:hover { background: linear-gradient(135deg,#d86018,#f07830); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(200,80,20,.35); }
.btn-outline { background: transparent; color: var(--acc); border: 1px solid var(--border2); }
.btn-outline:hover { background: var(--pill-bg); border-color: var(--acc); }

/* ══════════════════════════════════════
   FORMS
══════════════════════════════════════ */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: .83rem; color: var(--text2); margin-bottom: 7px; font-family: var(--font); }
.form-control {
    width: 100%; background: var(--surface2);
    border: 1px solid var(--border); border-radius: 9px;
    color: var(--text); font-size: .9rem; padding: 10px 14px;
    font-family: var(--font); direction: rtl;
    transition: border-color var(--transition), background var(--transition);
}
.form-control:focus { outline: none; border-color: var(--acc); }
textarea.form-control { resize: vertical; min-height: 120px; }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.site-footer {
    background: rgba(10,21,32,.95);
    border-top: 1px solid var(--border);
    padding: 44px 0 20px;
    position: relative; z-index: 2;
    transition: background var(--transition);
}
body.raha-light .site-footer { background: rgba(210,228,244,.95); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-brand p { color: var(--text2); font-size: .83rem; margin-top: 12px; line-height: 1.8; max-width: 260px; }
.footer-col h4 { font-size: .82rem; color: var(--text); margin-bottom: 14px; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { color: var(--text2); font-size: .8rem; }
.footer-col ul li a:hover { color: var(--acc); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: .75rem; color: var(--text3); }
.social-links { display: flex; gap: 14px; }
.social-links a { color: var(--text3); font-size: .75rem; }
.social-links a:hover { color: var(--acc); }

/* ══════════════════════════════════════
   MISC
══════════════════════════════════════ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--acc3); }
::selection { background: rgba(255,140,50,.2); color: var(--heading); }

.entry-title { display: none; }
.badge { display: inline-block; font-size: .68rem; padding: 3px 11px; border-radius: 20px; background: var(--pill-bg); border: 1px solid var(--border); color: var(--text2); }
.divider { border: none; border-top: 1px solid var(--border); margin: 40px 0; }

/* ══════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════ */
@keyframes orbitSpin { from{transform:rotate(0)} to{transform:rotate(360deg)} }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(.8)} }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media(max-width:1000px) {
    .content-grid { grid-template-columns: repeat(2,1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .main-nav { display: none; }
    .stats-bar { grid-template-columns: repeat(2,1fr); }
}
@media(max-width:640px) {
    .content-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 1.4rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .container { padding: 0 16px; }
    .raha-acronym { gap: 4px; }
    .raha-letter-card { min-width: 60px; padding: 5px 8px; }
    .stats-bar { grid-template-columns: repeat(2,1fr); }
    .logo-orbit { width: 60px; height: 60px; }
}
