/* Google & GSA Premium Clean Design System */

:root {
  --google-blue: #1A73E8;
  --google-red: #EA4335;
  --google-yellow: #FBBC05;
  --google-green: #34A853;
  --gsa-purple: #A142F4;
  --gsa-blue-purple: #8E6CFF;

  /* Light Theme Variables (Google AI Clean White) */
  --bg-color: #FFFFFF;
  --surface-color: #F8F9FA;
  --surface-card: #FFFFFF;
  --border-color: #E0E3E7;
  --text-main: #202124;
  --text-muted: #5F6368;
  --text-light: #80868B;
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(0, 0, 0, 0.06);
}

/* Base Styles */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #FFFFFF;
  color: var(--text-main);
  overflow-x: hidden;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-display {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-weight: 700;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(32, 33, 36, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  z-index: -1;
  pointer-events: none;
}



/* GSA Gradients */
.gsa-gradient {
  background: linear-gradient(135deg, #1A73E8 0%, #8E6CFF 50%, #34A853 100%);
}

.gsa-gradient-text {
  background: linear-gradient(90deg, #1A73E8 0%, #9B72FF 50%, #EA4335 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gsa-blue-purple-text {
  background: linear-gradient(90deg, #1A73E8, #A142F4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* White Clean Cards with Soft Shadows (Google Style) */
.google-card {
  background-color: var(--surface-card);
  border: 1px solid var(--border-color);
  box-shadow: 0 1px 3px 0 rgba(60, 64, 67, 0.08), 0 2px 8px 0 rgba(60, 64, 67, 0.04);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.25s ease;
  border-radius: 12px;
}

.google-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px 0 rgba(60, 64, 67, 0.1), 0 4px 12px 0 rgba(60, 64, 67, 0.05);
  border-color: rgba(26, 115, 232, 0.4);
}

/* Premium Card with brand color border glows on hover */
.premium-card {
  background-color: var(--surface-card);
  border: 1px solid var(--border-color);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 4px 16px 0 rgba(0, 0, 0, 0.02);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.premium-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--google-blue), var(--gsa-purple), var(--google-green));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.premium-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -10px rgba(26, 115, 232, 0.12), 0 10px 20px -12px rgba(142, 108, 255, 0.08);
  border-color: rgba(142, 108, 255, 0.3);
}

.premium-card:hover::after {
  opacity: 1;
}

/* Clean Google-Style Buttons */
.google-btn-primary {
  background-color: var(--google-blue);
  color: #FFFFFF;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.google-btn-primary:hover {
  background-color: #1557B0;
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.24);
  transform: translateY(-1px);
}

.google-btn-primary:active {
  transform: scale(0.97);
}

.google-btn-secondary {
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--google-blue);
  transition: all 0.2s ease;
}

.google-btn-secondary:hover {
  background-color: rgba(26, 115, 232, 0.04);
  border-color: var(--google-blue);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.google-btn-secondary:active {
  transform: scale(0.97);
}

/* Glassmorphism Header */
.glass-header {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dark .glass-header {
  background-color: rgba(3, 7, 18, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Material Input Styling */
.material-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-color);
  border-radius: 0;
  transition: border-color 0.2s;
}

.material-input:focus {
  outline: none;
  border-bottom: 2px solid var(--google-blue);
}

.dark .material-input:focus {
  border-bottom: 2px solid var(--gsa-blue-purple);
}

/* Loading Spinners */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #FFFFFF;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Pulsing Live Marker */
.live-marker {
  width: 6px;
  height: 6px;
  background-color: var(--google-green);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(52, 168, 83, 0.4);
  animation: pulse-live 1.6s infinite;
}

@keyframes pulse-live {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 168, 83, 0.7);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(52, 168, 83, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(52, 168, 83, 0);
  }
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-light);
}

/* Navigation items hover */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--google-blue), var(--gsa-purple));
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Ambient Floating Background Glows */
.bg-glow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -2;
  pointer-events: none;
}

.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.07;
  transition: transform 0.5s ease;
}

.glow-blue {
  background: var(--google-blue);
  width: 650px;
  height: 650px;
  top: -150px;
  left: 10%;
  animation: float-blue 28s infinite alternate ease-in-out;
}

.glow-purple {
  background: var(--gsa-purple);
  width: 600px;
  height: 600px;
  top: 15%;
  right: 5%;
  animation: float-purple 35s infinite alternate ease-in-out;
}

.glow-green {
  background: var(--google-green);
  width: 550px;
  height: 550px;
  bottom: 12%;
  left: -5%;
  animation: float-green 32s infinite alternate ease-in-out;
}

.glow-red {
  background: var(--google-red);
  width: 500px;
  height: 500px;
  bottom: -100px;
  right: 15%;
  animation: float-red 26s infinite alternate ease-in-out;
}

/* Drifting/floating animation cycles */
@keyframes float-blue {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(100px, 80px) scale(1.1);
  }

  100% {
    transform: translate(-50px, 140px) scale(0.9);
  }
}

@keyframes float-purple {
  0% {
    transform: translate(0, 0) scale(0.95);
  }

  50% {
    transform: translate(-120px, 100px) scale(1.15);
  }

  100% {
    transform: translate(60px, -80px) scale(1);
  }
}

@keyframes float-green {
  0% {
    transform: translate(0, 0) scale(1.1);
  }

  50% {
    transform: translate(110px, -90px) scale(0.85);
  }

  100% {
    transform: translate(-80px, 60px) scale(1.05);
  }
}

@keyframes float-red {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-90px, -60px) scale(1.12);
  }

  100% {
    transform: translate(80px, 100px) scale(0.9);
  }
}