/*
Theme Name: NewGuardians - Exact React Conversion
Description: Pixel-perfect WordPress conversion of NewGuardians React app with exact styling, colors, fonts, and functionality
Version: 1.0.0
Author: ANISH MASTER FARM
Text Domain: newguardians
*/

/* Import exact fonts from React app */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800;900&family=Source+Sans+3:wght@200;300;400;500;600;700;800;900&display=swap');

/* EXACT CSS Variables from React app */
:root {
  --color-primary: 199 100% 50%;
  --color-background: 0 0% 100%;
  --color-foreground: 0 0% 4%;
  --color-muted: 0 0% 11%;
  --color-muted-foreground: 0 0% 23%;
  --color-card: 0 0% 100%;
  --color-card-foreground: 0 0% 4%;
  --color-border: 0 0% 85%;
  --color-input: 0 0% 95%;
}

.dark {
  --color-background: 0 0% 4%;
  --color-foreground: 0 0% 100%;
  --color-muted: 0 0% 23%;
  --color-muted-foreground: 0 0% 85%;
  --color-card: 0 0% 11%;
  --color-card-foreground: 0 0% 100%;
  --color-border: 0 0% 23%;
  --color-input: 0 0% 15%;
}

/* Utility color classes */
.bg-background { background-color: hsl(var(--color-background)); }
.bg-foreground { background-color: hsl(var(--color-foreground)); }
.bg-card { background-color: hsl(var(--color-card)); }
.bg-muted { background-color: hsl(var(--color-muted)); }
.bg-primary { background-color: hsl(var(--color-primary)); }
.text-background { color: hsl(var(--color-background)); }
.text-foreground { color: hsl(var(--color-foreground)); }
.text-card { color: hsl(var(--color-card-foreground)); }
.text-muted-foreground { color: hsl(var(--color-muted-foreground)); }
.text-primary { color: hsl(var(--color-primary)); }
.border-border { border-color: hsl(var(--color-border)); }

/* EXACT Reset from React app */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Source Sans 3', sans-serif;
  background-color: hsl(var(--color-background));
  color: hsl(var(--color-foreground));
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* EXACT Typography from React */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: bold;
  line-height: 1.2;
}

/* EXACT Glass Morphism Effect */
.glass {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark .glass {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* EXACT Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* EXACT Header Styling */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  transition: all 0.3s ease;
  padding: 1rem 0;
  background: transparent;
}

.site-header.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.site-header.scrolled,
.site-header .glass {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.dark .site-header.scrolled,
.dark .site-header .glass {
  background: rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* EXACT Logo */
.site-logo img {
  height: 64px;
  width: auto;
}

/* EXACT Navigation */
.main-nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .main-nav {
    display: flex;
  }
}

.main-nav > a, .main-nav .nav-dropdown {
  color: hsl(var(--color-foreground));
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

.main-nav a:hover,
.main-nav a.active {
  color: hsl(var(--color-primary));
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: hsl(var(--color-primary));
  transition: width 0.3s ease;
}

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

/* Navigation Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: hsl(var(--color-foreground));
  padding: 0.25rem;
  transition: color 0.2s;
}

.dropdown-toggle:hover {
  color: hsl(var(--color-primary));
}

.nav-dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 12rem;
  background: hsl(var(--color-card));
  border: 1px solid hsl(var(--color-border));
  border-radius: 0.375rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  padding: 0.25rem 0;
  display: none;
  z-index: 50;
  margin-top: 0.5rem;
}

.nav-dropdown:hover .nav-dropdown-content,
.nav-dropdown-content:hover {
  display: block;
}

.nav-dropdown-content a {
  display: block;
  padding: 0.5rem 1rem;
  color: hsl(var(--color-card-foreground));
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.nav-dropdown-content a:hover {
  color: hsl(var(--color-primary));
  background-color: hsl(var(--color-background));
}

.nav-dropdown-content a::after {
  display: none;
}

/* EXACT Theme Toggle */
.theme-toggle {
  background: none;
  border: none;
  padding: 0.5rem;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s;
  color: hsl(var(--color-foreground));
}

.theme-toggle:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

/* EXACT Hero Section */
.hero-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, 
    rgba(0, 0, 0, 0.8),
    rgba(0, 0, 0, 0.6),
    rgba(0, 0, 0, 0.4)
  );
  z-index: 1;
  transition: background 0.3s ease;
}

/* Light mode overlay */
body:not(.dark) .hero-overlay {
  background: linear-gradient(to right, 
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0.7),
    rgba(255, 255, 255, 0.5)
  );
}

/* Dark mode overlay */
body.dark .hero-overlay {
  background: linear-gradient(to right, 
    rgba(0, 0, 0, 0.85),
    rgba(0, 0, 0, 0.65),
    rgba(0, 0, 0, 0.45)
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 48rem;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  display: inline-block;
  border-radius: 9999px;
  margin-bottom: 1rem;
  animation: fade-in 0.6s ease-out;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  animation: slide-up 0.6s ease-out;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  margin-bottom: 2rem;
  color: hsl(var(--color-muted-foreground));
  animation: slide-up 0.6s ease-out 0.1s both;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  animation: slide-up 0.6s ease-out 0.2s both;
}

/* EXACT Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-primary {
  background-color: hsl(var(--color-primary));
  color: white;
}

.btn-primary:hover {
  background-color: hsl(var(--color-primary));
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 178, 255, 0.3);
}

.btn-outline {
  background: transparent;
  color: hsl(var(--color-foreground));
  border: 2px solid hsl(var(--color-border));
}

.btn-outline:hover {
  background-color: hsl(var(--color-primary));
  color: white;
  border-color: hsl(var(--color-primary));
}

/* EXACT Giggle Wiggle Animation */
.giggle-wiggle {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.giggle-wiggle:hover {
  animation: giggle 0.5s ease;
  transform-origin: center;
}

.giggle-wiggle::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 1;
}

.giggle-wiggle:hover::after {
  transform: translateX(100%);
}

@keyframes giggle {
  0% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(3deg) scale(1.05); }
  50% { transform: rotate(-2deg) scale(1.03); }
  75% { transform: rotate(1deg) scale(1.02); }
  100% { transform: rotate(0deg) scale(1.05); }
}

/* EXACT Animations */
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fade-in 0.6s ease-out;
}

.animate-slide-up {
  animation: slide-up 0.6s ease-out;
}

/* EXACT Mobile Menu */
.mobile-menu-toggle {
  display: block;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: hsl(var(--color-foreground));
}

@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: hsl(var(--color-background));
  z-index: 100;
  padding: 2rem;
  overflow-y: auto;
}

.mobile-menu.active {
  display: block;
  animation: fade-in 0.3s ease-out;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 4rem;
}

.mobile-menu nav a {
  color: hsl(var(--color-foreground));
  text-decoration: none;
  padding: 1rem;
  font-size: 1.125rem;
  transition: color 0.2s;
}

.mobile-menu nav a:hover,
.mobile-menu nav a.active {
  color: hsl(var(--color-primary));
}

/* Mobile Categories */
.mobile-categories {
  padding-left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.mobile-categories a {
  color: hsl(var(--color-muted-foreground)) !important;
  text-decoration: none;
  padding: 0.5rem;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.mobile-categories a:hover {
  color: hsl(var(--color-primary)) !important;
}

/* EXACT Footer */
.site-footer {
  background-color: hsl(var(--color-muted));
  color: hsl(var(--color-muted-foreground));
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer-content {
  text-align: center;
}

/* EXACT Responsive */
@media (max-width: 767px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero-content {
    padding-top: 4rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }
}

/* EXACT WordPress specific */
.wp-block-group {
  margin: 0;
}

.wp-site-blocks {
  padding: 0;
}

/* EXACT Dark mode transitions */
* {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

*:hover,
*:focus,
*:active,
.animate-slide-up,
.animate-fade-in,
.giggle-wiggle {
  transition-duration: initial;
}