/* Theme presets; loaded after variables.css */
/* ================= THEME PRESETS ================= */
[data-theme="dark"] {
  --bg: #030712;
  --bg2: #0b1120;
  --card-bg: rgba(15, 23, 42, 0.75);
  --card-hover: rgba(20, 30, 55, 0.9);
  --text: #f8fafc;
  --text-secondary: #94a3b8;
  --muted: #64748b;
  --cyan: #00f0ff;
  --cyan2: #38bdf8;
  --cyanDark: #0284c7;
  --cyan-glow: rgba(0, 240, 255, 0.35);
  --border: rgba(0, 240, 255, 0.22);
  --border-focus: rgba(0, 240, 255, 0.6);
  --spr-color: #00f0ff;
  --spr-glow: rgba(0, 240, 255, 0.35);
  --splash-bg: radial-gradient(ellipse 60% 50% at 50% 40%, #0f172a 0%, #030712 70%);
  --bb-text-color: #030712;
}

[data-theme="dark"] body {
  background: #030712;
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(23, 37, 84, 0.7), transparent),
    radial-gradient(ellipse 50% 50% at 80% 50%, rgba(2, 132, 199, 0.08), transparent),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(112, 0, 255, 0.06), transparent);
  color: #f8fafc;
}

[data-theme="dark"] .header {
  background: #050b18;
  border-color: rgba(0, 240, 255, 0.22);
}

[data-theme="dark"] .search-wrapper {
  background: rgba(15, 23, 42, 0.75);
  border-color: rgba(0, 240, 255, 0.22);
}

[data-theme="dark"] .post-outer {
  background: rgba(15, 23, 42, 0.75);
  border-color: rgba(0, 240, 255, 0.22);
}

[data-theme="dark"] .bottom-nav {
  background: rgba(15, 23, 42, 0.94);
  border-color: rgba(0, 240, 255, 0.22);
}

[data-theme="dark"] .app-splash-screen {
  background: var(--splash-bg, radial-gradient(ellipse 60% 50% at 50% 40%, #0f172a 0%, #030712 70%)) !important;
}
[data-theme="dark"] .app-splash-screen .premium-text,
[data-theme="dark"] .app-splash-screen .splash-title,
[data-theme="dark"] #premiumLoadingArea .premium-text {
  color: #f8fafc !important;
}
[data-theme="dark"] .app-splash-screen .premium-subtext,
[data-theme="dark"] .app-splash-screen .splash-sub,
[data-theme="dark"] #premiumLoadingArea .premium-subtext {
  color: #94a3b8 !important;
}
[data-theme="dark"] .app-splash-screen .premium-percent,
[data-theme="dark"] #premiumLoadingArea .premium-percent {
  color: var(--spr-color, #00f0ff) !important;
}
[data-theme="dark"] .app-splash-screen .progress-bar-bg,
[data-theme="dark"] .app-splash-screen .splash-bar-wrap,
[data-theme="dark"] #premiumLoadingArea .progress-bar-bg {
  background: rgba(0, 240, 255, 0.12) !important;
}
[data-theme="dark"] .app-splash-screen .progress-bar-fill,
[data-theme="dark"] .app-splash-screen .splash-bar-progress,
[data-theme="dark"] #premiumLoadingArea .progress-bar-fill {
  background: linear-gradient(90deg, #0284c7, var(--spr-color, #00f0ff), #38bdf8) !important;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.35) !important;
}
[data-theme="dark"] #premiumLoadingArea .premium-loader-container {
  background: rgba(15, 23, 42, 0.88) !important;
  border: 1.5px solid rgba(0, 240, 255, 0.25) !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7), 0 0 25px rgba(0, 240, 255, 0.15) !important;
}

[data-theme="light"] {
  --bg: #f8fafc;
  --bg2: #f1f5f9;
  --card-bg: #ffffff;
  --card-hover: #f1f5f9;
  --text: #0f172a;
  --text-secondary: #475569;
  --muted: #64748b;
  --cyan: #2563eb;
  --cyan2: #38bdf8;
  --cyanDark: #1d4ed8;
  --cyan-glow: rgba(37, 99, 235, 0.22);
  --border: rgba(37, 99, 235, 0.2);
  --border-focus: rgba(37, 99, 235, 0.55);
  --spr-color: #2563eb;
  --spr-glow: rgba(37, 99, 235, 0.35);
  --splash-bg: #f8fafc;
}

[data-theme="light"] body {
  background: #f8fafc;
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(219, 234, 254, 0.7), transparent),
    radial-gradient(ellipse 50% 50% at 80% 50%, rgba(191, 219, 254, 0.35), transparent);
  color: var(--text);
}

[data-theme="light"] .header {
  background: #ffffff;
  border: 1.5px solid rgba(37, 99, 235, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .header h1 {
  color: #0f172a;
}

[data-theme="light"] .header p {
  color: #64748b;
}

[data-theme="light"] .search-wrapper {
  background: #ffffff;
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .search-wrapper input {
  color: #0f172a;
}

[data-theme="light"] .search-wrapper input::placeholder {
  color: #94a3b8;
}

[data-theme="light"] .post-outer {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .post-outer:hover {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
}

[data-theme="light"] .post-title {
  color: #0f172a;
}

[data-theme="light"] .bottom-nav {
  background: rgba(255, 255, 255, 0.94);
  border-color: #e2e8f0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .nav-item {
  color: #64748b;
}

[data-theme="light"] .link-bar {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .link-text {
  color: #0f172a;
}

[data-theme="light"] .cyber-profile {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .cyber-name {
  color: #0f172a;
}

[data-theme="light"] .empty-state { grid-column: 1 / -1;
  background: #ffffff;
  border-color: #e2e8f0;
  color: #64748b;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

[data-theme="cyberpunk"] {
  --bg: #0d0221;
  --bg2: #190b2e;
  --card-bg: #1a0b2e;
  --card-hover: rgba(36, 15, 64, 0.95);
  --header-bg: #150536;
  --search-bg: #150536;
  --text: #fce7f3;
  --text-secondary: #f472b6;
  --muted: #c084fc;
  --cyan: #f43f5e;
  --cyan2: #a855f7;
  --cyanDark: #be123c;
  --cyan-glow: rgba(244, 63, 94, 0.35);
  --border: rgba(244, 63, 94, 0.28);
  --border-focus: rgba(244, 63, 94, 0.65);
  --spr-color: #f43f5e;
  --spr-glow: rgba(244, 63, 94, 0.35);
  --splash-bg: #0d0221;
}

[data-theme="cyberpunk"] body {
  background: #0d0221;
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(244, 63, 94, 0.22), transparent),
    radial-gradient(ellipse 50% 50% at 80% 50%, rgba(168, 85, 247, 0.18), transparent);
}

[data-theme="cyberpunk"] .header {
  background: #150536;
  border-color: rgba(244, 63, 94, 0.4);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7), 0 0 20px rgba(244, 63, 94, 0.2);
}

[data-theme="cyberpunk"] .search-wrapper {
  background: #150536;
  border-color: rgba(244, 63, 94, 0.35);
}

[data-theme="cyberpunk"] .post-outer {
  background: #1a0b2e;
  border-color: rgba(168, 85, 247, 0.3);
}

[data-theme="cyberpunk"] .post-outer:hover {
  border-color: #f43f5e;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.8), 0 0 25px rgba(244, 63, 94, 0.25);
}

[data-theme="cyberpunk"] .bottom-nav {
  background: #150536;
  border-color: rgba(244, 63, 94, 0.4);
}

[data-theme="amoled"] {
  --bg: #000000;
  --bg2: #050505;
  --card-bg: #080808;
  --card-hover: #121212;
  --header-bg: #050505;
  --search-bg: #050505;
  --text: #ffffff;
  --text-secondary: #a1a1aa;
  --muted: #71717a;
  --cyan: #10b981;
  --cyan2: #00f0ff;
  --cyanDark: #059669;
  --cyan-glow: rgba(16, 185, 129, 0.3);
  --border: rgba(255, 255, 255, 0.14);
  --border-focus: rgba(16, 185, 129, 0.6);
  --spr-color: #10b981;
  --spr-glow: rgba(16, 185, 129, 0.35);
  --splash-bg: #000000;
}

[data-theme="amoled"] body {
  background: #000000;
  background-image: none;
}

[data-theme="amoled"] .header {
  background: #050505;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

[data-theme="amoled"] .search-wrapper {
  background: #050505;
  border-color: rgba(255, 255, 255, 0.16);
}

[data-theme="amoled"] .post-outer {
  background: #080808;
  border-color: rgba(255, 255, 255, 0.14);
}

[data-theme="amoled"] .post-outer:hover {
  border-color: #10b981;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.22);
}

[data-theme="amoled"] .bottom-nav {
  background: #050505;
  border-color: rgba(255, 255, 255, 0.16);
}

/* Sunset Mirage Theme */
[data-theme="sunset"] {
  --bg: #140905;
  --bg2: #1f0f09;
  --card-bg: #210f08;
  --card-hover: #2e150c;
  --header-bg: #1c0c07;
  --search-bg: #1c0c07;
  --text: #fff7ed;
  --text-secondary: #fed7aa;
  --muted: #fdba74;
  --cyan: #f97316;
  --cyan2: #fbbf24;
  --cyanDark: #c2410c;
  --cyan-glow: rgba(249, 115, 22, 0.35);
  --border: rgba(249, 115, 22, 0.28);
  --border-focus: rgba(249, 115, 22, 0.65);
  --spr-color: #f97316;
  --spr-glow: rgba(249, 115, 22, 0.35);
  --splash-bg: #140905;
}

[data-theme="sunset"] body {
  background: #140905;
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(249, 115, 22, 0.25), transparent),
    radial-gradient(ellipse 50% 50% at 80% 50%, rgba(251, 191, 36, 0.15), transparent);
}

[data-theme="sunset"] .header {
  background: #1c0c07;
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7), 0 0 20px rgba(249, 115, 22, 0.2);
}

[data-theme="sunset"] .search-wrapper {
  background: #1c0c07;
  border-color: rgba(249, 115, 22, 0.35);
}

[data-theme="sunset"] .post-outer {
  background: #210f08;
  border-color: rgba(249, 115, 22, 0.28);
}

[data-theme="sunset"] .post-outer:hover {
  border-color: #f97316;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.8), 0 0 25px rgba(249, 115, 22, 0.25);
}

[data-theme="sunset"] .bottom-nav {
  background: #1c0c07;
  border-color: rgba(249, 115, 22, 0.4);
}

/* Emerald Forest Theme */
[data-theme="emerald"] {
  --bg: #03140c;
  --bg2: #062114;
  --card-bg: #062114;
  --card-hover: #0b3320;
  --header-bg: #051c11;
  --search-bg: #051c11;
  --text: #ecfdf5;
  --text-secondary: #a7f3d0;
  --muted: #6ee7b7;
  --cyan: #10b981;
  --cyan2: #34d399;
  --cyanDark: #047857;
  --cyan-glow: rgba(16, 185, 129, 0.35);
  --border: rgba(16, 185, 129, 0.28);
  --border-focus: rgba(16, 185, 129, 0.65);
  --spr-color: #34d399;
  --spr-glow: rgba(52, 211, 153, 0.35);
  --splash-bg: #03140c;
}

[data-theme="emerald"] body {
  background: #03140c;
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(16, 185, 129, 0.25), transparent),
    radial-gradient(ellipse 50% 50% at 80% 50%, rgba(52, 211, 153, 0.15), transparent);
}

[data-theme="emerald"] .header {
  background: #051c11;
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7), 0 0 20px rgba(16, 185, 129, 0.2);
}

[data-theme="emerald"] .search-wrapper {
  background: #051c11;
  border-color: rgba(16, 185, 129, 0.35);
}

[data-theme="emerald"] .post-outer {
  background: #062114;
  border-color: rgba(16, 185, 129, 0.28);
}

[data-theme="emerald"] .post-outer:hover {
  border-color: #10b981;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.8), 0 0 25px rgba(16, 185, 129, 0.25);
}

[data-theme="emerald"] .bottom-nav {
  background: #051c11;
  border-color: rgba(16, 185, 129, 0.4);
}

/* Royal Purple Theme */
[data-theme="purple"] {
  --bg: #0a0618;
  --bg2: #120b29;
  --card-bg: #130c2b;
  --card-hover: #1e1342;
  --header-bg: #0f0921;
  --search-bg: #0f0921;
  --text: #faf5ff;
  --text-secondary: #e9d5ff;
  --muted: #c084fc;
  --cyan: #a855f7;
  --cyan2: #c084fc;
  --cyanDark: #7e22ce;
  --cyan-glow: rgba(168, 85, 247, 0.35);
  --border: rgba(168, 85, 247, 0.28);
  --border-focus: rgba(168, 85, 247, 0.65);
  --spr-color: #a855f7;
  --spr-glow: rgba(168, 85, 247, 0.35);
  --splash-bg: #0a0618;
}

[data-theme="purple"] body {
  background: #0a0618;
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(168, 85, 247, 0.25), transparent),
    radial-gradient(ellipse 50% 50% at 80% 50%, rgba(192, 132, 252, 0.15), transparent);
}

[data-theme="purple"] .header {
  background: #0f0921;
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7), 0 0 20px rgba(168, 85, 247, 0.2);
}

[data-theme="purple"] .search-wrapper {
  background: #0f0921;
  border-color: rgba(168, 85, 247, 0.35);
}

[data-theme="purple"] .post-outer {
  background: #130c2b;
  border-color: rgba(168, 85, 247, 0.28);
}

[data-theme="purple"] .post-outer:hover {
  border-color: #a855f7;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.8), 0 0 25px rgba(168, 85, 247, 0.25);
}

[data-theme="purple"] .bottom-nav {
  background: #0f0921;
  border-color: rgba(168, 85, 247, 0.4);
}

/* Ocean Abyss Theme */
[data-theme="ocean"] {
  --bg: #030c1e;
  --bg2: #061533;
  --card-bg: #071736;
  --card-hover: #0c2352;
  --header-bg: #05112b;
  --search-bg: #05112b;
  --text: #ecfeff;
  --text-secondary: #a5f3fc;
  --muted: #67e8f9;
  --cyan: #06b6d4;
  --cyan2: #38bdf8;
  --cyanDark: #0e7490;
  --cyan-glow: rgba(6, 182, 212, 0.35);
  --border: rgba(6, 182, 212, 0.28);
  --border-focus: rgba(6, 182, 212, 0.65);
  --spr-color: #06b6d4;
  --spr-glow: rgba(6, 182, 212, 0.35);
  --splash-bg: #030c1e;
}

[data-theme="ocean"] body {
  background: #030c1e;
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(6, 182, 212, 0.25), transparent),
    radial-gradient(ellipse 50% 50% at 80% 50%, rgba(56, 189, 248, 0.15), transparent);
}

[data-theme="ocean"] .header {
  background: #05112b;
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7), 0 0 20px rgba(6, 182, 212, 0.2);
}

[data-theme="ocean"] .search-wrapper {
  background: #05112b;
  border-color: rgba(6, 182, 212, 0.35);
}

[data-theme="ocean"] .post-outer {
  background: #071736;
  border-color: rgba(6, 182, 212, 0.28);
}

[data-theme="ocean"] .post-outer:hover {
  border-color: #06b6d4;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.8), 0 0 25px rgba(6, 182, 212, 0.25);
}

[data-theme="ocean"] .bottom-nav {
  background: #05112b;
  border-color: rgba(6, 182, 212, 0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', 'Hind Siliguri', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

html {
  background: var(--bg, #f8fafc);
  background-color: var(--bg, #f8fafc);
  scroll-behavior: smooth;
}

body {
  background: var(--bg, #f8fafc);
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(219, 234, 254, 0.7), transparent),
    radial-gradient(ellipse 50% 50% at 80% 50%, rgba(191, 219, 254, 0.35), transparent);
  color: var(--text, #0f172a);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 16px 16px calc(95px + env(safe-area-inset-bottom, 0px));
  line-height: 1.5;
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

button, input {
  font: inherit;
}
