@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --color-brand: #00f0ff;
  --color-brand-light: #38bdf8;
  --color-brand-dark: #0284c7;
  --color-accent: #0f172a;
  --color-accent-light: #f8fafc;
  --color-theme-bg: #030712;
  --color-theme-bg-dark: #070d19;
  --color-glow: rgba(0, 240, 255, 0.4);
}

body {
  background-image: url('assets/bg_theme.png') !important;
  background-size: cover !important;
  background-position: center center !important;
  background-attachment: fixed !important;
  background-repeat: no-repeat !important;
  background-color: #030712 !important;
  color: #f8fafc !important;
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.025em;
  font-weight: 700;
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

/* Base tailwind utility overrides for Dark Theme with Electric Cyan Accents */
.text-white {
  color: #ffffff !important;
}
.text-gray-100 {
  color: #f8fafc !important;
}
.text-gray-200 {
  color: #e2e8f0 !important;
}
.text-gray-300 {
  color: #cbd5e1 !important;
}
.text-gray-400 {
  color: #94a3b8 !important;
}
.text-gray-500 {
  color: #64748b !important;
}
.text-gray-600 {
  color: #475569 !important;
}

.text-brand-light {
  color: #38bdf8 !important;
}
.text-brand {
  color: #00f0ff !important;
}

.bg-brand {
  background-color: var(--color-brand) !important;
  color: #030712 !important;
}
.bg-theme-bg {
  background-color: transparent !important;
}
.bg-theme-bg-dark {
  background-color: rgba(6, 11, 24, 0.75) !important;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.bg-theme-bg-dark\/50 {
  background-color: rgba(6, 11, 24, 0.5) !important;
}

/* Transparent Background Overrides */
.bg-white\/5 {
  background-color: rgba(255, 255, 255, 0.05) !important;
}
.bg-white\/10 {
  background-color: rgba(255, 255, 255, 0.1) !important;
}
.bg-white\/20 {
  background-color: rgba(255, 255, 255, 0.18) !important;
}

/* Border Overrides */
.border-white\/5, .border-white\/10, .border-white\/20, .border-white\/30 {
  border-color: rgba(0, 240, 255, 0.2) !important;
}

/* Features Grid background section */
section[style*="background-color: rgba(6, 5, 21, 0.5)"] {
  background-color: rgba(5, 10, 22, 0.6) !important;
  border-top: 1px solid rgba(0, 240, 255, 0.2) !important;
  border-bottom: 1px solid rgba(0, 240, 255, 0.2) !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* Glassmorphism Metallic Cards */
.glass-card {
  background: rgba(8, 14, 28, 0.78) !important;
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(0, 240, 255, 0.25) !important;
  border-radius: 1.5rem;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 15px rgba(0, 240, 255, 0.12) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-card:hover {
  border-color: rgba(0, 240, 255, 0.6) !important;
  box-shadow: 0 20px 45px -10px rgba(0, 240, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-3px);
}

/* Glass Navigation Bar */
.glass-nav {
  background: rgba(6, 11, 23, 0.85) !important;
  border: 1px solid rgba(0, 240, 255, 0.3) !important;
  -webkit-backdrop-filter: blur(30px);
  backdrop-filter: blur(30px);
  border-radius: 1.25rem;
  box-shadow: 0 10px 35px -10px rgba(0, 0, 0, 0.85), 0 0 20px rgba(0, 240, 255, 0.2) !important;
}

/* Buttons */
.primary-button {
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-weight: 800;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #00f0ff 0%, #0284c7 100%) !important;
  color: #030712 !important;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid rgba(0, 240, 255, 0.5) !important;
}

.primary-button:hover {
  background: linear-gradient(135deg, #38bdf8 0%, #00f0ff 100%) !important;
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.7) !important;
  transform: translateY(-2px);
}

/* Input Fields & Forms */
input, select, textarea {
  background-color: rgba(5, 10, 24, 0.85) !important;
  color: #ffffff !important;
  border: 1px solid rgba(0, 240, 255, 0.25) !important;
}
input::placeholder, textarea::placeholder {
  color: #64748b !important;
}
input:focus, select:focus, textarea:focus {
  border-color: #00f0ff !important;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4) !important;
}

/* Custom CTA Button & Menu in Dynamic Details */
#cta-button {
  background: linear-gradient(135deg, #00f0ff 0%, #0284c7 100%) !important;
  color: #030712 !important;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.4) !important;
  border: 1px solid rgba(0, 240, 255, 0.5) !important;
}
#cta-button svg {
  stroke: #030712 !important;
}
#cta-menu {
  background: rgba(8, 14, 28, 0.95) !important;
  color: #ffffff !important;
  border: 1px solid rgba(0, 240, 255, 0.3) !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 240, 255, 0.2) !important;
}
#cta-menu li {
  color: #ffffff !important;
}
#cta-menu li:hover {
  background-color: rgba(0, 240, 255, 0.2) !important;
}

/* Navbar active / hover overrides */
.hover\:text-purple-500:hover {
  color: #00f0ff !important;
}
.text-purple-500 {
  color: #38bdf8 !important;
}
.bg-purple-950\/20 {
  background-color: rgba(0, 240, 255, 0.15) !important;
}
.border-purple-500\/20 {
  border-color: rgba(0, 240, 255, 0.3) !important;
}
.shadow-purple-500\/10 {
  box-shadow: 0 10px 15px -3px rgba(0, 240, 255, 0.2) !important;
}
.via-purple-500\/20 {
  --tw-gradient-stops: var(--tw-gradient-from), rgba(0, 240, 255, 0.4), var(--tw-gradient-to) !important;
}

/* Card Category Badges Overrides */
.bg-purple-500\/80 {
  background-color: rgba(0, 240, 255, 0.9) !important;
  color: #030712 !important;
}
.border-purple-400\/20 {
  border-color: rgba(0, 240, 255, 0.3) !important;
}

/* Glow lightning animations */
.animate-lightning::before {
  background-color: rgba(0, 240, 255, 0.3) !important;
}

@keyframes lightning {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.05); }
}

/* Category Badge background custom override */
span.bg-brand\/20 {
  background-color: rgba(0, 240, 255, 0.15) !important;
  color: #38bdf8 !important;
  border-color: rgba(0, 240, 255, 0.3) !important;
}

/* Admin / General panel dark metallic theme overrides */
.bg-slate-900, .bg-gray-900, .bg-purple-950 {
  background-color: rgba(8, 14, 28, 0.85) !important;
}
.border-slate-800, .border-gray-800, .border-purple-900 {
  border-color: rgba(0, 240, 255, 0.2) !important;
}

/* Focus Ring/Border Overrides */
.focus\:ring-purple-500:focus, .focus\:ring-2:focus {
  --tw-ring-color: #00f0ff !important;
  border-color: #00f0ff !important;
}

/* Custom input styling overrides */
input[style*="background-color: #181622"], select[style*="background-color: #181622"], textarea[style*="background-color: #181622"] {
  background-color: rgba(5, 10, 24, 0.85) !important;
  border-color: rgba(0, 240, 255, 0.25) !important;
  color: #ffffff !important;
}

/* Accent texts like text-purple-400, text-purple-300 */
.text-purple-400, .text-purple-300 {
  color: #38bdf8 !important;
}

/* Inline purple background-color glows override */
div[style*="background-color: rgba(168, 85, 247"] {
  background-color: rgba(0, 240, 255, 0.15) !important;
}

/* Unlock / Login / Submit admin button styles */
button[class*="bg-gradient-to-r from-[#7c3aed] to-[#a855f7]"],
button[class*="from-purple-600 to-purple-400"],
div[class*="from-purple-600 to-purple-400"] {
  background: linear-gradient(135deg, #00f0ff, #0284c7) !important;
  color: #030712 !important;
  border-color: rgba(0, 240, 255, 0.5) !important;
}

.shadow-purple-500\/20 {
  box-shadow: 0 10px 15px -3px rgba(0, 240, 255, 0.3) !important;
}

.bg-purple-500\/10 {
  background-color: rgba(0, 240, 255, 0.15) !important;
}

.border-purple-500\/30 {
  border-color: rgba(0, 240, 255, 0.3) !important;
}

/* Green variations for Quick Add Content */
.text-green-400 {
  color: #38bdf8 !important;
}

.bg-green-500\/10 {
  background-color: rgba(0, 240, 255, 0.15) !important;
}

.hover\:bg-green-500\/20:hover {
  background-color: rgba(0, 240, 255, 0.25) !important;
}

.border-green-500\/30 {
  border-color: rgba(0, 240, 255, 0.3) !important;
}

/* Danger Glass Card & Modals */
.glass-card-danger {
  background-color: rgba(30, 10, 15, 0.85) !important;
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(239, 68, 68, 0.4) !important;
  border-radius: 1.5rem;
  box-shadow: 0 10px 30px -10px rgba(220, 38, 38, 0.3), 0 0 15px rgba(239, 68, 68, 0.2) !important;
  transition: all 0.3s ease;
}
.glass-card-danger:hover {
  border-color: rgba(239, 68, 68, 0.7) !important;
  box-shadow: 0 20px 40px -15px rgba(239, 68, 68, 0.5) !important;
  transform: translateY(-2px);
}

.text-real-white {
  color: #ffffff !important;
}

/* --- Advertisement Popup & Sponsor Banner Styles --- */
#ad-popup {
  width: 320px !important;
  max-width: calc(100vw - 1.5rem) !important;
  background-color: rgba(6, 11, 24, 0.92) !important;
  background: rgba(6, 11, 24, 0.92) !important;
  border: 1px solid rgba(0, 240, 255, 0.4) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 25px rgba(0, 240, 255, 0.3) !important;
  border-radius: 1.25rem !important;
}

#site-sponsor-banner {
  position: fixed !important;
  bottom: calc(1rem + env(safe-area-inset-bottom)) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: calc(100vw - 2rem) !important;
  max-width: 950px !important;
  z-index: 9999 !important;
  background-color: rgba(6, 12, 26, 0.95) !important;
  border: 1px solid rgba(0, 240, 255, 0.5) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 35px rgba(0, 240, 255, 0.35) !important;
  border-radius: 1.25rem !important;
}

@media (max-width: 768px) {
  #ad-popup {
    position: absolute !important;
    top: 0.5rem !important;
    right: 0.5rem !important;
    left: auto !important;
    width: 260px !important;
    max-width: calc(100vw - 1rem) !important;
    margin: 0 !important;
    z-index: 60 !important;
  }
  #ad-popup .ad-img-box {
    max-height: 120px !important;
  }
  #ad-popup img {
    max-height: 120px !important;
    object-fit: contain !important;
  }

  #site-sponsor-banner {
    position: fixed !important;
    bottom: calc(0.75rem + env(safe-area-inset-bottom)) !important;
    left: 0.75rem !important;
    right: 0.75rem !important;
    transform: none !important;
    width: calc(100vw - 1.5rem) !important;
    max-width: 100% !important;
    z-index: 9999 !important;
  }
}

/* Bright Solid Red Cancel / Close Button for Ads */
.ad-close-btn {
  background-color: #ef4444 !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.7) !important;
  width: 1.75rem !important;
  height: 1.75rem !important;
  border-radius: 9999px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 100 !important;
  transition: all 0.2s ease !important;
}
.ad-close-btn:hover {
  background-color: #dc2626 !important;
  transform: scale(1.1) !important;
}

#ad-popup h4, #site-sponsor-banner h4, #fullscreen-ad-title {
  color: #00f0ff !important;
  font-weight: 800 !important;
  font-size: 0.875rem !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  margin-bottom: 0.25rem !important;
}

#ad-popup p, #site-sponsor-banner p {
  color: #f8fafc !important;
  font-weight: 500 !important;
  font-size: 0.75rem !important;
  line-height: 1.4 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

#ad-popup .bg-white\/5, #site-sponsor-banner .bg-white\/5 {
  background-color: rgba(255, 255, 255, 0.08) !important;
}
#ad-popup .bg-white\/5:hover, #site-sponsor-banner .bg-white\/5:hover {
  background-color: rgba(255, 255, 255, 0.15) !important;
}
#ad-popup .bg-white\/10, #site-sponsor-banner .bg-white\/10 {
  background-color: rgba(255, 255, 255, 0.15) !important;
}
#ad-popup .bg-white\/10:hover, #site-sponsor-banner .bg-white\/10:hover {
  background-color: rgba(255, 255, 255, 0.25) !important;
}
#ad-popup .border-white\/10, #site-sponsor-banner .border-white\/10 {
  border-color: rgba(255, 255, 255, 0.15) !important;
}
#ad-popup .text-gray-400, #site-sponsor-banner .text-gray-400 {
  color: #94a3b8 !important;
}
#ad-popup .hover\:text-white:hover, #site-sponsor-banner .hover\:text-white:hover {
  color: #ffffff !important;
}

/* AI Fetch Dropdown Custom Styles */
.fetch-dropdown-btn {
  background: linear-gradient(135deg, #00f0ff 0%, #0284c7 100%) !important;
  color: #030712 !important;
  border: 1.5px solid rgba(0, 240, 255, 0.5) !important;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3) !important;
}

.fetch-dropdown-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #38bdf8 0%, #00f0ff 100%) !important;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.5) !important;
}

.fetch-dropdown-menu {
  background: rgba(8, 14, 28, 0.95) !important;
  border: 1.5px solid rgba(0, 240, 255, 0.3) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 240, 255, 0.25) !important;
}

.fetch-dropdown-item {
  color: #ffffff !important;
  transition: all 0.2s ease;
}

.fetch-dropdown-item:hover {
  background-color: rgba(0, 240, 255, 0.2) !important;
}

.fetch-dropdown-item svg {
  stroke: #00f0ff !important;
}

/* Override inline #dcfb00 lime green styling to Electric Cyan Blue */
[style*="#dcfb00"] {
  background-color: #00f0ff !important;
  color: #030712 !important;
}
span[style*="#dcfb00"], h1[style*="#dcfb00"], h2[style*="#dcfb00"], h3[style*="#dcfb00"], h4[style*="#dcfb00"], p[style*="#dcfb00"], i[style*="#dcfb00"] {
  background-color: transparent !important;
  color: #00f0ff !important;
}
button[style*="#dcfb00"], a[style*="#dcfb00"] {
  background-color: #00f0ff !important;
  color: #030712 !important;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4) !important;
}
[style*="#557f00"], [style*="#6a9c00"], [style*="#a9c200"] {
  color: #38bdf8 !important;
}

/* Override inline #0f172a dark slate styles to white text */
[style*="#0f172a"], [style*="#1e293b"], [style*="#334155"], [style*="#0b0f19"] {
  color: #ffffff !important;
}
[style*="#475569"], [style*="#64748b"] {
  color: #cbd5e1 !important;
}

/* Category Pills & Badges (e.g., STARTUPS, EDUCATION, SCIENCE) */
span.rounded-full[style*="220, 251, 0"],
span.rounded-full[style*="220,251,0"],
span[style*="#a9c200"],
span[style*="color: #dcfb00"],
span[style*="color:#dcfb00"],
span.bg-brand\/20,
.category-pill {
  background-color: rgba(0, 240, 255, 0.15) !important;
  color: #00f0ff !important;
  border: 1px solid rgba(0, 240, 255, 0.4) !important;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5) !important;
}

/* Mobile Table Horizontal Scrollbars */
.overflow-x-auto {
  overflow-x: auto;
}
.overflow-x-auto::-webkit-scrollbar {
  height: 7px;
}
.overflow-x-auto::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
}
.overflow-x-auto::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #00f0ff, #0284c7);
  border-radius: 6px;
}
