
/* ============================================
   ToFindAI — Global Dynamic Theme Variables
   ============================================ */

:root {
  --accent-color: #00e0ff;
  --accent-strong: #00e0ff;
  --accent-light: #00e0ff;

  --bg-main: #05070a;
  --bg-alt: #05060a;

  --font-scale: 1;
  --glow-intensity: 1.0;
}

/* Apply font scaling */
body {
  font-size: calc(16px * var(--font-scale));
}

/* You may add more dynamic overrides here */


/* ============================================
   Append existing static CSS
   ============================================ */
/* ==========================================================
   ToFindAI — GlowPop Neon Theme (Option B)
   Global layout, header, footer, hero, grids, buttons
   ========================================================== */

:root {
  --bg-main: #02030a;
  --bg-alt: #050817;
  --bg-card: #070b1f;
  --bg-card-hover: #0b102b;
  --accent-color: #00e0ff;
  --accent-light: rgba(0, 224, 255, 0.7);
  --accent-strong: #00ffb3;
  --text-main: #f5f7ff;
  --text-muted: #a7b3d9;
  --danger: #ff4d6a;
  --shadow-soft: 0 0 25px rgba(0, 224, 255, 0.25);
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-pill: 999px;
  --font-family: "Orbitron", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ----------------------------------------------------------
   Global reset & body
   ---------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: var(--font-family);
  background:
    radial-gradient(circle at 10% 0%, rgba(0,255,196,0.12) 0, transparent 40%),
    radial-gradient(circle at 90% 100%, rgba(0,224,255,0.16) 0, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(56,0,112,0.45) 0, #02030a 65%);
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
}

/* Keep main content flexible so footer stays at bottom */
.page-content {
  flex: 1;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1rem 3.5rem;
}

/* Utility text */
h1, h2, h3, h4 {
  margin: 0;
}

/* ----------------------------------------------------------
   Header & navigation
   ---------------------------------------------------------- */

.site-header {
  padding: 1rem 1.25rem 0.75rem;
  background: linear-gradient(to bottom, rgba(4, 10, 32, 0.95), rgba(2, 3, 15, 0.95));
  border-bottom: 1px solid rgba(0, 224, 255, 0.25);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.75);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
}

.top-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.logo {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent-color);
  text-shadow:
    0 0 12px rgba(0, 224, 255, 0.9),
    0 0 30px rgba(0, 255, 179, 0.6);
}

.tagline {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.7rem;
  flex-wrap: wrap;
}

.main-nav a {
  position: relative;
  font-size: 0.75rem;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition:
    color 0.18s ease-out,
    border-color 0.18s ease-out,
    background 0.18s ease-out,
    box-shadow 0.18s ease-out,
    transform 0.12s ease-out;
}

.main-nav a:hover {
  color: #000;
  border-color: var(--accent-color);
  background: radial-gradient(circle at 30% 0%, rgba(0, 224, 255, 0.8), rgba(0, 255, 179, 0.8));
  box-shadow: 0 0 20px rgba(0, 224, 255, 0.6);
  transform: translateY(-1px);
}

/* Thin neon line under header */
.header-glow-line {
  margin-top: 0.75rem;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--accent-color), var(--accent-strong), transparent);
  box-shadow:
    0 0 8px rgba(0, 224, 255, 0.8),
    0 0 16px rgba(0, 255, 179, 0.7);
}

/* ----------------------------------------------------------
   Footer
   ---------------------------------------------------------- */

.site-footer {
  padding: 1.5rem 1rem 1.75rem;
  text-align: center;
  font-size: 0.75rem;
  background: linear-gradient(to top, rgba(1, 4, 15, 1), rgba(1, 3, 12, 0.94));
  color: var(--text-muted);
  border-top: 1px solid rgba(0, 224, 255, 0.25);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.85);
  position: relative;
}

.footer-glow-line {
  height: 4px;
  border-radius: 999px;
  margin: 0 0 0.75rem;
  background:
    radial-gradient(circle at 20% 0%, rgba(0, 224, 255, 0.9), transparent 60%),
    radial-gradient(circle at 80% 100%, rgba(0, 255, 179, 0.95), transparent 60%);
  box-shadow:
    0 0 12px rgba(0, 224, 255, 0.9),
    0 0 20px rgba(0, 255, 179, 0.8);
}

.site-footer a {
  color: var(--accent-color);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer .small {
  font-size: 0.68rem;
  opacity: 0.8;
}

/* ----------------------------------------------------------
   Generic buttons & inputs
   ---------------------------------------------------------- */

button,
.btn,
.btn-primary {
  font-family: var(--font-family);
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent-color);
  background: radial-gradient(circle at 20% 0%, rgba(0, 224, 255, 0.9), rgba(0, 32, 64, 0.9));
  color: #000;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.55rem 1.3rem;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition:
    background 0.16s ease-out,
    transform 0.12s ease-out,
    box-shadow 0.16s ease-out,
    border-color 0.16s ease-out;
}

button:hover,
.btn:hover,
.btn-primary:hover {
  background: radial-gradient(circle at 20% 0%, rgba(0, 255, 179, 1), rgba(0, 64, 96, 0.9));
  transform: translateY(-1px);
  box-shadow:
    0 0 16px rgba(0, 224, 255, 0.7),
    0 0 24px rgba(0, 255, 179, 0.7);
  border-color: var(--accent-strong);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
select,
textarea {
  font-family: var(--font-family);
  background: rgba(5, 8, 24, 0.96);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 224, 255, 0.35);
  color: var(--text-main);
  padding: 0.55rem 0.7rem;
  font-size: 0.85rem;
  outline: none;
  transition:
    border-color 0.16s ease-out,
    box-shadow 0.16s ease-out,
    background 0.16s ease-out;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 1px rgba(0, 224, 255, 0.55);
  background: rgba(7, 10, 32, 0.96);
}

/* ----------------------------------------------------------
   Simple hero / home search section (generic)
   ---------------------------------------------------------- */

.hero {
  margin-top: 2rem;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 0% 0%, rgba(0, 224, 255, 0.26), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(0, 255, 179, 0.24), transparent 55%),
    linear-gradient(135deg, rgba(6, 10, 40, 0.98), rgba(1, 4, 22, 0.98));
  box-shadow:
    0 0 25px rgba(0, 0, 0, 0.9),
    0 0 32px rgba(0, 224, 255, 0.3);
  text-align: center;
}

.hero-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  margin-bottom: 0.4rem;
  color: var(--accent-color);
  text-shadow:
    0 0 18px rgba(0, 224, 255, 0.9),
    0 0 28px rgba(0, 255, 179, 0.7);
}

.hero-subtitle {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.3rem;
}

.hero-search {
  max-width: 650px;
  margin: 0.5rem auto 0;
}

.hero-search-form {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-search-form input[type="text"] {
  flex: 1 1 220px;
}

.hero-search-form button {
  flex: 0 0 auto;
}

/* ----------------------------------------------------------
   Browse AI listing grid
   ---------------------------------------------------------- */

.browse-container {
  margin-top: 2rem;
}

.page-title {
  text-align: center;
  font-size: 1.3rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
  color: var(--accent-color);
  text-shadow: 0 0 12px rgba(0, 224, 255, 0.8);
}

.no-results {
  text-align: center;
  color: var(--text-muted);
  margin-top: 1rem;
}

.ai-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.15rem;
}

.ai-card {
  position: relative;
  background: radial-gradient(circle at 0 0, rgba(0, 224, 255, 0.16), rgba(3, 7, 28, 0.98));
  border-radius: var(--radius-lg);
  padding: 1rem;
  border: 1px solid rgba(0, 224, 255, 0.35);
  box-shadow:
    0 0 20px rgba(0, 0, 0, 0.9),
    0 0 20px rgba(0, 224, 255, 0.18);
  overflow: hidden;
  transition:
    transform 0.14s ease-out,
    box-shadow 0.16s ease-out,
    border-color 0.16s ease-out,
    background 0.16s ease-out;
}

.ai-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 10% 0%, rgba(0, 224, 255, 0.12), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(0, 255, 179, 0.12), transparent 55%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-out;
}

.ai-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-color);
  background: radial-gradient(circle at 0 0, rgba(0, 224, 255, 0.22), rgba(5, 11, 40, 0.98));
  box-shadow:
    0 0 26px rgba(0, 224, 255, 0.45),
    0 0 34px rgba(0, 255, 179, 0.35);
}

.ai-card:hover::before {
  opacity: 1;
}

.ai-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.ai-card h3 a {
  text-decoration: none;
  color: var(--text-main);
}

.ai-card h3 a:hover {
  color: var(--accent-color);
}

.ai-meta {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.badge-verified,
.badge-featured {
  display: inline-block;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  margin-right: 0.35rem;
}

.badge-verified {
  background: rgba(0, 255, 179, 0.15);
  border-color: rgba(0, 255, 179, 0.7);
  color: var(--accent-strong);
}

.badge-featured {
  background: rgba(255, 215, 0, 0.15);
  border-color: rgba(255, 215, 0, 0.7);
  color: #ffea9a;
}

/* ----------------------------------------------------------
   AI detail page basics (if using .ai-detail from previous code)
   ---------------------------------------------------------- */

.ai-detail {
  font-family: var(--font-family);
  color: #fff;
  padding: 2rem 1rem 4rem;
  max-width: 900px;
  margin: 0 auto;
}

.ai-header {
  border-bottom: 2px solid var(--accent-color);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
}

.ai-header h1 {
  color: var(--accent-color);
  font-size: 1.6rem;
  text-shadow: 0 0 15px var(--accent-light);
}

.ai-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.ai-description {
  color: #d3ddff;
  line-height: 1.55;
  margin-bottom: 1.2rem;
}

.btn-visit {
  display: inline-block;
  margin-top: 0.3rem;
  text-decoration: none;
}

/* ----------------------------------------------------------
   Creator dashboard small helpers (since many inline styles exist)
   ---------------------------------------------------------- */

table {
  border-collapse: collapse;
}

table th,
table td {
  font-size: 0.8rem;
}

/* ----------------------------------------------------------
   Responsive tweaks
   ---------------------------------------------------------- */

@media (max-width: 768px) {
  .page-content {
    padding: 1.25rem 0.8rem 3rem;
  }

  .top-title {
    text-align: center;
  }

  .main-nav {
    gap: 0.45rem;
  }

  .main-nav a {
    font-size: 0.7rem;
    padding: 0.35rem 0.7rem;
  }

  .hero {
    padding: 1.7rem 1.2rem;
  }

  .ai-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .logo {
    letter-spacing: 0.18em;
  }

  .page-title {
    letter-spacing: 0.16em;
  }

  button,
  .btn,
  .btn-primary {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}
