/* Main stylesheet for Ocean CO₂ Extraction site */
/* Version: 2.0 - Custom CSS implementation (no Tailwind) */

/* Import all stylesheets */
@import url('base.css');
@import url('header.css');
@import url('footer.css');
@import url('content.css');
@import url('auth.css');
@import url('animations.css');
@import url('alerts.css');

/* Update fonts with cyberpunk-friendly options */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700&family=Fira+Code:wght@400;500&display=swap');

/* Custom body background for the cyberpunk theme */
body {
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-primary);
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(0, 245, 212, 0.1), transparent 30%),
    radial-gradient(circle at 90% 90%, rgba(157, 78, 221, 0.1), transparent 30%),
    radial-gradient(circle at 50% 50%, rgba(254, 83, 187, 0.05), transparent 40%);
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
}

/* Cyberpunk grid overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(rgba(0, 245, 212, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 245, 212, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: -1;
}

/* Neon glow effect for elements */
.neon-glow {
  box-shadow: 0 0 10px rgba(0, 245, 212, 0.5), 
              0 0 20px rgba(0, 245, 212, 0.3), 
              0 0 30px rgba(0, 245, 212, 0.1);
}

.neon-text {
  text-shadow: 0 0 5px rgba(0, 245, 212, 0.5), 
               0 0 10px rgba(0, 245, 212, 0.3), 
               0 0 15px rgba(0, 245, 212, 0.1);
}

/* Gradient overlays */
.gradient-overlay {
  position: relative;
}

.gradient-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 245, 212, 0.2), rgba(157, 78, 221, 0.2));
  pointer-events: none;
  border-radius: inherit;
}

/* Animated border for important elements */
.cyber-border {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.cyber-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(90deg, 
    var(--primary), 
    var(--secondary), 
    var(--accent), 
    var(--secondary), 
    var(--primary));
  background-size: 400% 100%;
  animation: cyber-border-flow 5s linear infinite;
  z-index: -1;
}

@keyframes cyber-border-flow {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 0%; }
}

/* Futuristic button effect */
.btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.3s ease, transform 0.2s ease;
}

.btn::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, 
    var(--primary), 
    var(--secondary),
    var(--accent),
    var(--secondary),
    var(--primary));
  background-size: 200% 200%;
  z-index: -1;
  animation: cyber-button-flow 3s ease infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

.btn:hover::before {
  opacity: 1;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 1px;
  background: inherit;
  border-radius: inherit;
  z-index: -1;
}

@keyframes cyber-button-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Add scanlines effect to cards and sections */
.scanlines {
  position: relative;
}

.scanlines::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(0, 0, 0, 0.05) 50%
  );
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 10;
  opacity: 0.15;
}

/* Terminal text effect for tech sections */
.terminal-text {
  font-family: var(--font-mono);
  color: var(--primary);
  background-color: rgba(0, 0, 0, 0.3);
  padding: 1rem;
  border-radius: var(--border-radius-sm);
  border-left: 3px solid var(--primary);
}

/* Fix scrollbar to match theme */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--primary-dark), var(--secondary-dark));
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

/* Add blurred overlay for content focus */
.glass-blur {
  backdrop-filter: blur(8px);
}

/* Add general container padding fix for more compact layout */
.container {
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

/* Admin content container spacing fix */
.admin-content {
  padding: 0 0.75rem;
}

@media (min-width: 768px) {
  .admin-content {
    padding: 0 1.5rem;
  }
}

/* Any additional global styles that don't fit into the modular files */

/* Home page specific styles */
.hero-section {
  text-align: center;
  padding: var(--space-lg) 0;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--light-gray);
  margin-bottom: var(--space-lg);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.intro-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.intro-card {
  background: rgba(26, 35, 126, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-md);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform var(--transition-medium) ease, box-shadow var(--transition-medium) ease;
}

.intro-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.intro-card-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(to bottom right, var(--accent-dark), var(--accent));
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
  color: var(--white);
  font-size: 1.5rem;
}

.intro-card-title {
  color: var(--accent-light);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

/* Key statistics section */
.stats-section {
  background: rgba(26, 35, 126, 0.3);
  padding: var(--space-lg) 0;
  margin: var(--space-xl) 0;
  border-radius: var(--border-radius-md);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
}

.stat-card {
  text-align: center;
  padding: var(--space-md);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-light);
  margin-bottom: var(--space-xs);
}

.stat-label {
  color: var(--light-gray);
  font-size: 0.9rem;
}

/* Responsive adjustments for homepage */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stat-value {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}