/* ==========================================================================
   AIOMM & BlackMyData Theme & Animation Engine
   Supports: Dark Mode (Default) + Light Mode via data-theme="light"
   ========================================================================== */

:root {
  /* Dark Mode Default Theme Variables */
  --aiomm-primary: #0284c7;
  --aiomm-primary-hover: #38bdf8;
  --aiomm-accent: #34e3c4;
  --aiomm-amber: #ffb86b;
  --aiomm-purple: #a78bfa;
  --aiomm-bg-page: #0a0e17;
  --aiomm-bg-hero: radial-gradient(circle at 50% 20%, #152238 0%, #0a0e16 80%);
  --aiomm-card-bg: rgba(18, 24, 38, 0.78);
  --aiomm-card-border: rgba(108, 196, 255, 0.16);
  --aiomm-card-hover-border: rgba(52, 227, 196, 0.45);
  --aiomm-header-bg: rgba(10, 14, 23, 0.82);
  --aiomm-header-border: rgba(255, 255, 255, 0.08);
  --aiomm-text-main: #f1f5f9;
  --aiomm-text-muted: #94a3b8;
  --aiomm-footer-bg: #070a10;
  --aiomm-footer-border: rgba(255, 255, 255, 0.08);
  --aiomm-footer-link: #94a3b8;
  --aiomm-glow: rgba(2, 132, 199, 0.35);
  --aiomm-shadow-card: 0 16px 36px rgba(0, 0, 0, 0.45);
}

/* Light Mode Overrides */
html[data-theme="light"],
body.is-light-theme {
  --aiomm-primary: #0284c7;
  --aiomm-primary-hover: #0369a1;
  --aiomm-accent: #0d9488;
  --aiomm-amber: #d97706;
  --aiomm-purple: #7c3aed;
  --aiomm-bg-page: #f8fafc;
  --aiomm-bg-hero: radial-gradient(circle at 50% 15%, #e0f2fe 0%, #f8fafc 85%);
  --aiomm-card-bg: rgba(255, 255, 255, 0.92);
  --aiomm-card-border: rgba(14, 165, 233, 0.22);
  --aiomm-card-hover-border: rgba(13, 148, 136, 0.5);
  --aiomm-header-bg: rgba(255, 255, 255, 0.88);
  --aiomm-header-border: rgba(0, 0, 0, 0.08);
  --aiomm-text-main: #0f172a;
  --aiomm-text-muted: #475569;
  --aiomm-footer-bg: #f1f5f9;
  --aiomm-footer-border: rgba(0, 0, 0, 0.08);
  --aiomm-footer-link: #475569;
  --aiomm-glow: rgba(2, 132, 199, 0.2);
  --aiomm-shadow-card: 0 12px 30px rgba(0, 0, 0, 0.07);
}

/* Base Body Styles */
html {
  scroll-behavior: smooth;
  background-color: var(--aiomm-bg-page);
  color: var(--aiomm-text-main);
  transition: background-color 0.3s ease, color 0.3s ease;
}

body {
  background-color: var(--aiomm-bg-page) !important;
  color: var(--aiomm-text-main) !important;
  min-height: 100vh;
  margin: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Light mode text & element adaptation */
html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3,
html[data-theme="light"] h4,
html[data-theme="light"] .wp-block-site-title a {
  color: #0f172a !important;
}

html[data-theme="light"] p:not(.aiomm-chip):not(.has-text-color),
html[data-theme="light"] .has-text-color[style*="#9aa6bd"],
html[data-theme="light"] .has-text-color[style*="#94a3b8"] {
  color: var(--aiomm-text-muted) !important;
}

html[data-theme="light"] .aiomm-btn-ghost a {
  color: #0f172a !important;
  border-color: rgba(0, 0, 0, 0.2) !important;
}
html[data-theme="light"] .aiomm-btn-ghost a:hover {
  background: rgba(0, 0, 0, 0.05) !important;
  border-color: var(--aiomm-accent) !important;
  color: var(--aiomm-accent) !important;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.aiomm-header-glass {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--aiomm-header-bg) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--aiomm-header-border);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.aiomm-btn-header-aiomm a {
  background: #0284c7 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  padding: 8px 16px !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
}
.aiomm-btn-header-aiomm a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.45);
}

.aiomm-btn-header-bmd a {
  background: rgba(167, 139, 250, 0.12) !important;
  color: #a78bfa !important;
  border: 1px solid rgba(167, 139, 250, 0.35) !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  padding: 8px 16px !important;
  transition: all 0.2s !important;
}
.aiomm-btn-header-bmd a:hover {
  background: rgba(167, 139, 250, 0.25) !important;
  border-color: #a78bfa !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* Donate Header Button */
.aiomm-btn-header-donate a {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  padding: 8px 16px !important;
  border: none !important;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3) !important;
  transition: all 0.2s ease !important;
}
.aiomm-btn-header-donate a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.5) !important;
  filter: brightness(1.08);
}

/* Theme Toggle Button in Header */
.aiomm-theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  color: var(--aiomm-text-main);
  font-size: 16px;
  transition: all 0.25s ease;
  padding: 0;
  margin-left: 4px;
}
html[data-theme="light"] .aiomm-theme-toggle-btn {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.12);
  color: #0f172a;
}
.aiomm-theme-toggle-btn:hover {
  transform: rotate(20deg) scale(1.08);
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--aiomm-amber);
}
html[data-theme="light"] .aiomm-theme-toggle-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  border-color: var(--aiomm-amber);
}

/* ==========================================================================
   Hero Section & Gradients
   ========================================================================== */

.aiomm-hero {
  position: relative;
  overflow: hidden;
  background: var(--aiomm-bg-hero) !important;
  border-radius: 28px;
  padding: 60px 30px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--aiomm-card-border);
}
.aiomm-hero::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.25) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  animation: aiommPulse 8s infinite alternate ease-in-out;
}

.aiomm-gradient-text {
  background: linear-gradient(135deg, #38bdf8 0%, #34e3c4 50%, #ffb86b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* ==========================================================================
   Glass Cards & Feature Blocks
   ========================================================================== */

.aiomm-glass {
  background: var(--aiomm-card-bg) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--aiomm-card-border) !important;
  border-radius: 20px !important;
  padding: 28px !important;
  box-shadow: var(--aiomm-shadow-card);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}
.aiomm-glass:hover {
  transform: translateY(-6px);
  border-color: var(--aiomm-card-hover-border) !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25), 0 0 24px var(--aiomm-glow);
}

/* Feature Item Highlights */
.aiomm-feature-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
.aiomm-feature-icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: inline-block;
}

/* Chips & Badges */
.aiomm-chip {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(52, 227, 196, 0.12);
  color: var(--aiomm-accent);
  border: 1px solid rgba(52, 227, 196, 0.35);
  margin-bottom: 12px;
}
.aiomm-chip-purple {
  background: rgba(167, 139, 250, 0.14);
  color: var(--aiomm-purple);
  border-color: rgba(167, 139, 250, 0.35);
}
.aiomm-chip-amber {
  background: rgba(245, 158, 11, 0.14);
  color: var(--aiomm-amber);
  border-color: rgba(245, 158, 11, 0.35);
}

/* ==========================================================================
   Buttons & CTAs
   ========================================================================== */

.aiomm-btn-glow a {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 20px rgba(2, 132, 199, 0.45) !important;
  transition: all 0.3s ease !important;
}
.aiomm-btn-glow a:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(2, 132, 199, 0.65) !important;
}

.aiomm-btn-ghost a {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: var(--aiomm-text-main) !important;
  transition: all 0.3s ease !important;
}
.aiomm-btn-ghost a:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: var(--aiomm-accent) !important;
  color: var(--aiomm-accent) !important;
  transform: translateY(-2px);
}

/* Screenshot Frame with Glare */
.aiomm-shot {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
}
.aiomm-shot img {
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  display: block;
  width: 100%;
  height: auto;
}
.aiomm-shot:hover img {
  transform: scale(1.015);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--aiomm-accent);
}

/* Animations */
.aiomm-float {
  animation: aiommFloat 6s infinite ease-in-out;
}

@keyframes aiommFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes aiommPulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.3); opacity: 0.85; }
}

/* Scroll Reveal */
html.aiomm-js .aiomm-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
html.aiomm-js .aiomm-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer Section */
.aiomm-footer-section {
  background-color: var(--aiomm-footer-bg) !important;
  border-top: 1px solid var(--aiomm-footer-border);
  color: var(--aiomm-text-muted);
  transition: background-color 0.3s ease;
}
.aiomm-footer-muted {
  color: var(--aiomm-footer-link) !important;
}
.aiomm-footer-heading {
  color: var(--aiomm-text-main) !important;
}
.aiomm-footer-list a {
  color: var(--aiomm-footer-link) !important;
  text-decoration: none;
  transition: color 0.2s ease;
}
.aiomm-footer-list a:hover {
  color: var(--aiomm-accent) !important;
  text-decoration: underline;
}
.aiomm-footer-separator {
  border-color: var(--aiomm-footer-border) !important;
}
.aiomm-footer-bottom p,
.aiomm-footer-bottom a {
  color: var(--aiomm-footer-link) !important;
}


/* ==========================================================================
   Global Interactive Cursor Spotlight Glow
   ========================================================================== */
.portal-cursor-glow {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  max-width: none !important;
  height: 100vh !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
  z-index: 0 !important;
  background: radial-gradient(650px circle at var(--mouse-x, -999px) var(--mouse-y, -999px), rgba(56, 189, 248, 0.08), rgba(52, 227, 196, 0.03) 40%, transparent 80%);
  transition: opacity 0.4s ease;
  opacity: 0;
}

html[data-theme="light"] .portal-cursor-glow {
  background: radial-gradient(650px circle at var(--mouse-x, -999px) var(--mouse-y, -999px), rgba(2, 132, 199, 0.08), rgba(13, 148, 136, 0.04) 40%, transparent 80%);
}

body.has-cursor .portal-cursor-glow {
  opacity: 1;
}
