/* Master Gardeners - Custom Styles */
/* Uses Semantic UI framework with earthy green theme */

:root {
  /* Natural Green Color Palette */
  --green-50: #f0fdf4;
  --green-100: #dcfce7;
  --green-200: #bbf7d0;
  --green-300: #86efac;
  --green-400: #4ade80;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-700: #15803d;
  --green-800: #166534;
  --green-900: #14532d;

  /* Earth Tones */
  --earth-light: #fef3c7;
  --earth-medium: #d97706;
  --earth-dark: #92400e;

  /* Brand Colors */
  --primary: #166534;
  --primary-light: #22c55e;
  --primary-dark: #14532d;
  --secondary: #92400e;

  /* Neutrals */
  --text-primary: #1f2937;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --bg-light: #f9fafb;
  --bg-white: #ffffff;

  /* Spacing */
  --section-padding: 5rem;
}

/* Global Styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans 3', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  line-height: 1.7;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary-dark);
}

.ui.header {
  font-family: 'Merriweather', Georgia, serif;
}

/* Custom Button Styles */
.ui.button.primary,
.ui.primary.button {
  background-color: var(--primary) !important;
}

.ui.button.primary:hover,
.ui.primary.button:hover {
  background-color: var(--primary-dark) !important;
}

.ui.button.secondary,
.ui.secondary.button {
  background-color: var(--secondary) !important;
}

/* Header/Navigation */
.main-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.main-header .ui.menu {
  background: transparent;
  border: none;
  box-shadow: none;
}

.main-header .ui.menu .item {
  color: white !important;
  font-weight: 500;
}

.main-header .ui.menu .item:hover {
  background: rgba(255,255,255,0.1) !important;
}

.main-header .ui.menu .active.item {
  background: rgba(255,255,255,0.2) !important;
}

.site-title {
  color: white !important;
  font-family: 'Merriweather', Georgia, serif !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
}

/* Hero Section */
.hero-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 500px;
  display: flex;
  align-items: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(22, 101, 52, 0.85) 0%, rgba(20, 83, 45, 0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: white;
  padding: 4rem 0;
}

.hero-content h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 600px;
}

/* Page Hero (smaller) */
.page-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 350px;
  display: flex;
  align-items: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(22, 101, 52, 0.85) 0%, rgba(20, 83, 45, 0.75) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  color: white;
  padding: 3rem 0;
}

.page-hero-content h1 {
  color: white;
  font-size: 2.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

/* Content Sections */
.content-section {
  padding: var(--section-padding) 0;
}

.content-section.alt {
  background-color: var(--bg-light);
}

.content-section.green-bg {
  background: linear-gradient(135deg, var(--green-50) 0%, var(--green-100) 100%);
}

/* Cards */
.ui.card,
.ui.cards > .card {
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ui.card:hover,
.ui.cards > .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.ui.card > .content > .header,
.ui.cards > .card > .content > .header {
  font-family: 'Merriweather', Georgia, serif;
  color: var(--primary-dark);
}

/* Feature Cards */
.feature-card {
  text-align: center;
  padding: 2rem;
}

.feature-card .icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin-bottom: 1rem;
}

/* Images */
.ui.image.rounded {
  border-radius: 12px;
}

.content-image {
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  max-width: 100%;
  height: auto;
}

/* Lists */
.styled-list {
  list-style: none;
  padding-left: 0;
}

.styled-list li {
  padding: 0.5rem 0;
  padding-left: 1.75rem;
  position: relative;
}

.styled-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* Blockquotes */
blockquote {
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  background: var(--green-50);
  border-radius: 0 8px 8px 0;
  margin: 2rem 0;
  font-style: italic;
}

/* Footer */
.main-footer {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #0f3d24 100%);
  color: white;
  padding: 4rem 0 2rem;
}

.main-footer h4 {
  color: var(--green-300);
  font-family: 'Merriweather', Georgia, serif;
  margin-bottom: 1.5rem;
}

.main-footer a {
  color: var(--green-200);
  transition: color 0.2s ease;
}

.main-footer a:hover {
  color: white;
}

.main-footer p {
  color: var(--green-200);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  margin-top: 3rem;
  text-align: center;
  color: var(--green-300);
}

/* Utility Classes */
.text-primary {
  color: var(--primary) !important;
}

.text-secondary {
  color: var(--secondary) !important;
}

.bg-green-light {
  background-color: var(--green-50);
}

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }
.mb-4 { margin-bottom: 2rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.5rem !important; }
.mt-2 { margin-top: 1rem !important; }
.mt-3 { margin-top: 1.5rem !important; }
.mt-4 { margin-top: 2rem !important; }
.mt-5 { margin-top: 3rem !important; }

.py-5 {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content h1,
  .page-hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .content-section {
    padding: 3rem 0;
  }

  .main-header .ui.menu {
    flex-direction: column;
  }
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 991px) {
  .mobile-menu-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    flex-direction: column;
    padding: 1rem;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu .item {
    padding: 0.75rem 1rem !important;
    border-radius: 4px;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Print Styles */
@media print {
  .main-header,
  .main-footer {
    display: none;
  }

  .hero-section,
  .page-hero {
    min-height: auto;
    padding: 2rem 0;
  }
}
