/* Light Agricultural Theme - Clean & Airy Design */

:root {
  /* Light & Fresh Color Palette */
  --primary: #10b981;      /* Soft mint green */
  --primary-dark: #059669;
  --primary-light: #34d399;
  --primary-soft: #d1fae5;
  --primary-pale: #f0fdf4;
  
  --secondary: #f59e0b;    /* Warm amber */
  --secondary-light: #fbbf24;
  --secondary-soft: #fef3c7;
  
  --accent: #60a5fa;       /* Soft sky blue */
  --accent-light: #93c5fd;
  --accent-soft: #dbeafe;
  
  --danger: #f87171;
  --warning: #fbbf24;
  --success: #34d399;
  
  /* Light Neutral Scale */
  --gray-950: #030712;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --cream: #fefef9;
  --light-bg: #fcfcfc;
}

/* Page Background Patterns */
.page-bg-main,
.page-bg-categories,
.page-bg-livestock,
.page-bg-equipment,
.page-bg-grain,
.page-bg-produce,
.page-bg-clothing,
.page-bg-building,
.page-bg-vehicles,
.page-bg-services,
.page-bg-auctions,
.page-bg-trade,
.page-bg-subscription,
.page-bg-login,
.page-bg-profile,
.page-bg-create-listing {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  opacity: 1;
}

/* Main Page - Soft wheat field */
.page-bg-main {
  background: 
    linear-gradient(180deg, 
      rgba(255, 255, 255, 0.92) 0%, 
      rgba(240, 253, 244, 0.85) 50%,
      rgba(255, 255, 255, 0.88) 100%),
    url('https://images.unsplash.com/photo-1574323347407-f5e1ad6d020b?w=1920&q=90') center/cover fixed;
  filter: brightness(1.1) saturate(0.9);
}

/* Categories - Soft farm landscape */
.page-bg-categories {
  background: 
    linear-gradient(180deg, 
      rgba(255, 255, 255, 0.94) 0%, 
      rgba(209, 250, 229, 0.3) 50%,
      rgba(255, 255, 255, 0.92) 100%),
    url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?w=1920&q=90') center/cover fixed;
  filter: brightness(1.15) saturate(0.85);
}

/* Livestock - Pasture with animals */
.page-bg-livestock {
  background: 
    linear-gradient(180deg, 
      rgba(255, 255, 255, 0.93) 0%, 
      rgba(254, 243, 199, 0.4) 50%,
      rgba(255, 255, 255, 0.91) 100%),
    url('https://images.unsplash.com/photo-1516467508483-a7212febe31a?w=1920&q=90') center/cover fixed;
  filter: brightness(1.1) saturate(0.9);
}

/* Equipment - Modern tractors */
.page-bg-equipment {
  background: 
    linear-gradient(180deg, 
      rgba(255, 255, 255, 0.92) 0%, 
      rgba(219, 234, 254, 0.4) 50%,
      rgba(255, 255, 255, 0.90) 100%),
    url('https://images.unsplash.com/photo-1530267981375-f0de937f5f13?w=1920&q=90') center/cover fixed;
  filter: brightness(1.12) saturate(0.88);
}

/* Grain - Golden wheat close-up */
.page-bg-grain {
  background: 
    linear-gradient(180deg, 
      rgba(255, 255, 255, 0.90) 0%, 
      rgba(254, 243, 199, 0.35) 50%,
      rgba(255, 255, 255, 0.88) 100%),
    url('https://images.unsplash.com/photo-1574323347407-f5e1ad6d020b?w=1920&q=90') center/cover fixed;
  filter: brightness(1.15) saturate(0.9) hue-rotate(5deg);
}

/* Produce - Fresh vegetables garden */
.page-bg-produce {
  background: 
    linear-gradient(180deg, 
      rgba(255, 255, 255, 0.91) 0%, 
      rgba(240, 253, 244, 0.5) 50%,
      rgba(255, 255, 255, 0.89) 100%),
    url('https://images.unsplash.com/photo-1540420773420-3366772f4999?w=1920&q=90') center/cover fixed;
  filter: brightness(1.1) saturate(0.95);
}

/* Clothing - Cotton fields */
.page-bg-clothing {
  background: 
    linear-gradient(180deg, 
      rgba(255, 255, 255, 0.93) 0%, 
      rgba(240, 249, 255, 0.4) 50%,
      rgba(255, 255, 255, 0.91) 100%),
    url('https://images.unsplash.com/photo-1440428099904-c6d459a7e7b5?w=1920&q=90') center/cover fixed;
  filter: brightness(1.15) saturate(0.85);
}

/* Building - Barn construction */
.page-bg-building {
  background: 
    linear-gradient(180deg, 
      rgba(255, 255, 255, 0.92) 0%, 
      rgba(254, 243, 199, 0.3) 50%,
      rgba(255, 255, 255, 0.90) 100%),
    url('https://images.unsplash.com/photo-1564013799919-ab600027ffc6?w=1920&q=90') center/cover fixed;
  filter: brightness(1.12) saturate(0.88);
}

/* Vehicles - Farm trucks */
.page-bg-vehicles {
  background: 
    linear-gradient(180deg, 
      rgba(255, 255, 255, 0.91) 0%, 
      rgba(239, 246, 255, 0.4) 50%,
      rgba(255, 255, 255, 0.89) 100%),
    url('https://images.unsplash.com/photo-1519378551962-0e2c47d4a172?w=1920&q=90') center/cover fixed;
  filter: brightness(1.1) saturate(0.9);
}

/* Services - Helping hands */
.page-bg-services {
  background: 
    linear-gradient(180deg, 
      rgba(255, 255, 255, 0.92) 0%, 
      rgba(240, 253, 250, 0.4) 50%,
      rgba(255, 255, 255, 0.90) 100%),
    url('https://images.unsplash.com/photo-1589923158776-cb4485d99fd6?w=1920&q=90') center/cover fixed;
  filter: brightness(1.12) saturate(0.85);
}

/* Auctions - Market scene */
.page-bg-auctions {
  background: 
    linear-gradient(180deg, 
      rgba(255, 255, 255, 0.90) 0%, 
      rgba(254, 243, 199, 0.45) 50%,
      rgba(255, 255, 255, 0.88) 100%),
    url('https://images.unsplash.com/photo-1502086223501-7ea6ecd79368?w=1920&q=90') center/cover fixed;
  filter: brightness(1.1) saturate(0.92);
}

/* Trade - Market exchange */
.page-bg-trade {
  background: 
    linear-gradient(180deg, 
      rgba(255, 255, 255, 0.91) 0%, 
      rgba(240, 253, 244, 0.4) 50%,
      rgba(255, 255, 255, 0.89) 100%),
    url('https://images.unsplash.com/photo-1488459716781-31db52582fe9?w=1920&q=90') center/cover fixed;
  filter: brightness(1.12) saturate(0.88);
}

/* Subscription - Premium fields */
.page-bg-subscription {
  background: 
    linear-gradient(180deg, 
      rgba(255, 255, 255, 0.90) 0%, 
      rgba(254, 243, 199, 0.35) 60%,
      rgba(255, 255, 255, 0.88) 100%),
    url('https://images.unsplash.com/photo-1625246333195-78d9c38ad449?w=1920&q=90') center/cover fixed;
  filter: brightness(1.15) saturate(0.9);
}

/* Login/Auth - Sunrise fields */
.page-bg-login,
.page-bg-register {
  background: 
    linear-gradient(135deg, 
      rgba(255, 255, 255, 0.88) 0%, 
      rgba(240, 253, 250, 0.5) 50%,
      rgba(255, 255, 255, 0.85) 100%),
    url('https://images.unsplash.com/photo-1523741543316-beb7fc7023d8?w=1920&q=90') center/cover fixed;
  filter: brightness(1.18) saturate(0.85);
}

/* Profile - Personal farm */
.page-bg-profile {
  background: 
    linear-gradient(180deg, 
      rgba(255, 255, 255, 0.92) 0%, 
      rgba(240, 253, 244, 0.4) 50%,
      rgba(255, 255, 255, 0.90) 100%),
    url('https://images.unsplash.com/photo-1500595046743-cd271d694d30?w=1920&q=90') center/cover fixed;
  filter: brightness(1.12) saturate(0.88);
}

/* Create Listing - Open opportunities */
.page-bg-create-listing {
  background: 
    linear-gradient(180deg, 
      rgba(255, 255, 255, 0.91) 0%, 
      rgba(219, 234, 254, 0.35) 50%,
      rgba(255, 255, 255, 0.89) 100%),
    url('https://images.unsplash.com/photo-1523348837708-15d4a09cfac2?w=1920&q=90') center/cover fixed;
  filter: brightness(1.15) saturate(0.85);
}

/* Light Hero Section Overrides */
.hero-section {
  background: none !important;
  position: relative;
}

.hero-section::before {
  background: 
    linear-gradient(135deg, 
      rgba(16, 185, 129, 0.08) 0%, 
      rgba(96, 165, 250, 0.06) 100%) !important;
  opacity: 1 !important;
}

.hero-section::after {
  display: none !important;
}

/* Light overlay classes */
.overlay-green {
  position: relative;
}

.overlay-green::before {
  background: linear-gradient(135deg, 
    rgba(16, 185, 129, 0.15) 0%, 
    rgba(52, 211, 153, 0.10) 100%) !important;
}

/* Light section backgrounds */
.bg-agriculture-1,
.bg-agriculture-2,
.bg-agriculture-3 {
  position: relative;
  color: var(--gray-800) !important;
}

.bg-agriculture-1 {
  background: 
    linear-gradient(135deg, 
      rgba(240, 253, 244, 0.92), 
      rgba(209, 250, 229, 0.85)),
    url('https://images.unsplash.com/photo-1625246333195-78d9c38ad449?w=1920&q=90') center/cover !important;
}

.bg-agriculture-2 {
  background: 
    linear-gradient(135deg, 
      rgba(254, 243, 199, 0.90), 
      rgba(254, 249, 195, 0.85)),
    url('https://images.unsplash.com/photo-1574943320219-553eb213f72d?w=1920&q=90') center/cover !important;
}

.bg-agriculture-3 {
  background: 
    linear-gradient(135deg, 
      rgba(219, 234, 254, 0.88), 
      rgba(191, 219, 254, 0.82)),
    url('https://images.unsplash.com/photo-1560493676-04071c5f467b?w=1920&q=90') center/cover !important;
}

/* Ensure text is dark on light backgrounds */
.bg-agriculture-1 *,
.bg-agriculture-2 *,
.bg-agriculture-3 * {
  color: var(--gray-800) !important;
}

.bg-agriculture-1 .text-white,
.bg-agriculture-2 .text-white,
.bg-agriculture-3 .text-white {
  color: var(--gray-800) !important;
  text-shadow: none !important;
}

/* Light glassmorphism cards */
.glass-card {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(12px) saturate(150%) !important;
  border: 1px solid rgba(209, 250, 229, 0.5) !important;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.08) !important;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.12) !important;
  transform: translateY(-3px);
}

/* Light stats cards */
.stats-card {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.98) 0%, 
    rgba(240, 253, 244, 0.6) 100%) !important;
  border: 1px solid rgba(16, 185, 129, 0.15) !important;
  box-shadow: 0 2px 12px rgba(16, 185, 129, 0.08) !important;
}

/* Sections with light backgrounds */
.section-with-bg {
  background: rgba(255, 255, 255, 0.96) !important;
}

.section-padding {
  position: relative;
}

/* Modern light navigation */
.modern-nav {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(16, 185, 129, 0.1) !important;
}

.modern-nav.scrolled {
  box-shadow: 0 2px 12px rgba(16, 185, 129, 0.08) !important;
}

/* Light buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light)) !important;
  border: none !important;
  color: white !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25) !important;
}

.btn-primary:hover {
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35) !important;
  transform: translateY(-2px);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.25) !important;
  backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
}

/* Form elements with light theme */
.form-input,
.form-select,
.form-textarea {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(16, 185, 129, 0.2) !important;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
  background: white !important;
}

/* Light mobile menu */
#mobileMenu {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(16px) !important;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.1) !important;
}

.mobile-menu-link:hover {
  background: linear-gradient(90deg, 
    rgba(16, 185, 129, 0.08), 
    rgba(16, 185, 129, 0.05)) !important;
}

/* Ensure readability on all backgrounds */
body {
  background: var(--light-bg) !important;
  min-height: 100vh;
}

main {
  position: relative;
  z-index: 1;
}

/* Animation for page transitions */
@keyframes fadeInBackground {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.page-bg-main,
.page-bg-categories,
.page-bg-livestock,
.page-bg-equipment,
.page-bg-grain,
.page-bg-produce,
.page-bg-clothing,
.page-bg-building,
.page-bg-vehicles,
.page-bg-services,
.page-bg-auctions,
.page-bg-trade,
.page-bg-subscription,
.page-bg-login,
.page-bg-profile,
.page-bg-create-listing {
  animation: fadeInBackground 0.8s ease-out;
}

/* Smooth scrolling for better experience */
html {
  scroll-behavior: smooth;
}

/* Light scrollbar */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--gray-50);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary-light), var(--primary));
  border-radius: 6px;
  border: 2px solid var(--gray-50);
}

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