﻿/* 
   MOLI UI/UX PRO MAX - THEME SYSTEM V2.3 (Fresh Water)
   Aesthetics: Bright, Water Blue, Aqua, Light Mode
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@200;400;500;700&family=Space+Grotesk:wght@300;500;700&display=swap');

:root {
  /* Core Colors - Fresh Water (Light Mode) */
  --bg-deep: #ecfeff;
  /* Cyan 50 - Very Light Blue */
  --bg-surface: #cffafe;
  /* Cyan 100 */
  --bg-card: rgba(255, 255, 255, 0.7);
  /* White Glass */

  /* Accents */
  --primary: #06b6d4;
  /* Cyan 500 - Vibrant Water Blue */
  --primary-dim: rgba(6, 182, 212, 0.1);
  --primary-glow: rgba(6, 182, 212, 0.4);

  --secondary: #0ea5e9;
  /* Sky 500 - Deep Sky Blue */
  --secondary-glow: rgba(14, 165, 233, 0.4);

  --tertiary: #3b82f6;
  /* Blue 500 */

  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  /* Text - Dark on Light */
  --text-main: #164e63;
  /* Cyan 900 - Dark Blue Text for Main */
  --text-muted: #475569;
  /* Slate 600 */
  --text-dark: #000000;
  --text-inverse: #ffffff;
  /* For buttons */

  /* Measurements */
  --nav-height: 70px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  /* Effects */
  --glass-heavy: blur(20px) saturate(120%);
  --glass-light: blur(10px);
  --border-glow: 1px solid rgba(255, 255, 255, 0.6);
  /* White borders */
  --shadow-card: 0 10px 30px -5px rgba(6, 182, 212, 0.15);
  /* Soft Blue Shadow */
  --shadow-neon: 0 0 10px rgba(6, 182, 212, 0.2);
}

/* Base Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-deep);
  /* Fresh Water Gradient */
  background-image:
    linear-gradient(135deg, #ecfeff 0%, #cffafe 100%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Space Grotesk', sans-serif;
  color: #0e7490;
  /* Cyan 800 */
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  /* Water Gradient Text */
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

h2 {
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  color: #155e75;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 40px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

/* Global Layout */
.app-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: calc(var(--nav-height) + 2rem) 1.5rem 2rem;
  min-height: 100vh;
}

/* Navigation - Floating White Pill */
.moli-topbar {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 3rem);
  max-width: 1200px;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.85);
  /* White Glass */
  backdrop-filter: var(--glass-heavy);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 1000;
  box-shadow: 0 10px 20px rgba(6, 182, 212, 0.1);
  transition: all 0.3s ease;
}

.moli-topbar:hover {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 15px 30px rgba(6, 182, 212, 0.2);
}

.moli-topbar__brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--primary);
  /* Brand Cyan */
  text-transform: uppercase;
}

.moli-topbar__toggle {
  display: none;
}

.moli-topbar__links {
  display: flex;
  gap: 2rem;
}

.moli-topbar__links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s;
  position: relative;
}

.moli-topbar__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 100%;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.3s ease;
}

.moli-topbar__links a:hover,
.moli-topbar__links a.active {
  color: var(--primary);
}

.moli-topbar__links a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* Core Components: Cards */
.moli-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-heavy);
  -webkit-backdrop-filter: var(--glass-heavy);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.moli-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0.8;
}

.moli-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -10px rgba(6, 182, 212, 0.25);
  border-color: #fff;
}

/* Inputs & Form Elements - Light Mode Clean */
.moli-input,
.moli-select {
  width: 100%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  /* Slate 300 */
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: #0f172a;
  /* Slate 900 */
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  transition: all 0.3s;
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.moli-input:focus,
.moli-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-dim);
  background: #ffffff;
}

.moli-input::placeholder {
  color: #94a3b8;
}

/* Buttons */
.moli-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  border: none;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  font-size: 0.9rem;
}

.moli-btn--primary {
  /* Aqua Gradient */
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
}

.moli-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(6, 182, 212, 0.5);
}

/* Utility Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-enter {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Scrollbar (Light) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Responsive */
@media (max-width: 768px) {

  /* Google Ads Integration - Premium Slots */
  .ad-slot-container {
    width: 100%;
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.4);
    border: 1px dashed rgba(6, 182, 212, 0.3);
    /* Cyan dashed border placeholder */
    border-radius: var(--radius-sm);
    padding: 1rem;
    min-height: 100px;
    position: relative;
    overflow: hidden;
  }

  .ad-slot-container::before {
    content: 'CHAMBER OF COMMERCE (AD SPACE)';
    position: absolute;
    font-size: 0.7rem;
    color: var(--primary);
    opacity: 0.5;
    letter-spacing: 0.1em;
    pointer-events: none;
    z-index: 0;
  }

  /* Hide label when ad loads (if using JS detection) or just keep as watermark */

  .ad-banner-top {
    min-height: 250px;
    /* Leaderboard height + padding */
    max-width: 970px;
    margin: 0 auto 3rem;
    backdrop-filter: blur(5px);
  }

  .ad-sidebar {
    min-height: 600px;
    margin: 0 0 2rem;
  }

  /* Responsive Ad logic */
  @media (max-width: 768px) {
    .ad-banner-top {
      min-height: 100px;
    }

    .ad-sidebar {
      min-height: 250px;
      /* Convert skyscraper to rectangle on mobile */
    }
  }

  .moli-topbar {
    width: 100%;
    border-radius: 0;
    top: 0;
    left: 0;
    transform: none;
    max-width: none;
  }

  .moli-topbar__toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
  }

  .moli-topbar__links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: var(--glass-heavy);
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    gap: 1rem;
  }

  .moli-topbar__links.open {
    display: flex;
  }

  .app-container {
    padding-top: calc(var(--nav-height) + 1rem);
  }
}