/*
Theme Name: STEM Wander
Description: A dynamic WordPress theme for STEM education organizations. Features a modern design with gradient colors, responsive layout, and comprehensive functionality for educational institutions.
Author: STEM Wander Team
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: stem-wander
Tags: education, nonprofit, responsive, custom-header, custom-menu, featured-images, threaded-comments, translation-ready
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
*/

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #f0f8ff 0%, #f5f0ff 50%, #f0fff4 100%);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
}

.gradient-text-blue {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-orange {
  background: linear-gradient(135deg, #f97316, #ef4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-purple {
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-green {
  background: linear-gradient(135deg, #10b981, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.btn-primary {
  background: linear-gradient(135deg, #f97316, #ef4444);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ea580c, #dc2626);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
  color: white;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: #8b5cf6;
  border: 2px solid #d8b4fe;
}

.btn-outline:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: #8b5cf6;
  color: #8b5cf6;
  text-decoration: none;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
  z-index: 1000;
  padding: 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: #3b82f6;
  text-decoration: none;
}

.nav-logo:hover {
  color: #3b82f6;
  text-decoration: none;
}

.nav-logo i {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: white;
  padding: 8px;
  border-radius: 8px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
}

.nav-link {
  text-decoration: none;
  color: #4b5563;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.current-menu-item {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
  text-decoration: none;
}

.nav-cta {
  display: flex;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #3b82f6;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 100px 20px 50px;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  z-index: 2;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 24px;
  line-height: 1.1;
}

.hero-description {
  font-size: 20px;
  color: #6b7280;
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.floating-icons {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.floating-icon {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  animation: float 6s ease-in-out infinite;
}

.icon-1 {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.icon-2 {
  background: linear-gradient(135deg, #10b981, #059669);
  top: 30%;
  right: 15%;
  animation-delay: 2s;
}

.icon-3 {
  background: linear-gradient(135deg, #f97316, #ef4444);
  bottom: 30%;
  left: 15%;
  animation-delay: 4s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Section Styles */
section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.section-description {
  font-size: 18px;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.white-text h2,
.white-text p {
  color: white;
}

/* Cards */
.card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(139, 92, 246, 0.1);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
  color: white;
}

.card-icon.blue {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.card-icon.green {
  background: linear-gradient(135deg, #10b981, #059669);
}

.card-icon.orange {
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.card-icon.purple {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

/* Mission Brief */
.mission-brief {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
}

.mission-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.mission-card h3 {
  font-size: 24px;
  margin-bottom: 16px;
  color: #1f2937;
}

.mission-card p {
  color: #6b7280;
  line-height: 1.6;
}

/* Impact Snapshot */
.impact-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}

.stat-card {
  text-align: center;
  background: white;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-8px);
}

.stat-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 32px;
  color: white;
}

.stat-number {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 8px;
}

.stat-card:nth-child(1) .stat-number {
  color: #3b82f6;
}
.stat-card:nth-child(2) .stat-number {
  color: #10b981;
}
.stat-card:nth-child(3) .stat-number {
  color: #f97316;
}
.stat-card:nth-child(4) .stat-number {
  color: #8b5cf6;
}

.stat-label {
  color: #6b7280;
  font-weight: 500;
}

/* Featured Event */
.featured-event {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6, #10b981);
  color: white;
}

.event-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px;
  color: #1f2937;
  max-width: 800px;
  margin: 0 auto;
}

.event-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.event-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
}

.event-info h3 {
  font-size: 28px;
  margin-bottom: 8px;
}

.event-info p {
  color: #6b7280;
  font-size: 18px;
}

.event-description {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 32px;
  color: #4b5563;
}

.event-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Quick Links */
.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.quick-link-card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-align: center;
  border: 1px solid rgba(139, 92, 246, 0.1);
}

.quick-link-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  color: inherit;
}

.quick-link-card h3 {
  font-size: 20px;
  margin: 16px 0 12px;
  color: #1f2937;
}

.quick-link-card p {
  color: #6b7280;
  line-height: 1.5;
}

/* Footer */
.footer {
  background: #1f2937;
  color: white;
}

.newsletter-section {
  border-bottom: 1px solid #374151;
  padding: 60px 0;
  text-align: center;
}

.newsletter-section h3 {
  font-size: 32px;
  margin-bottom: 16px;
}

.newsletter-section p {
  color: #9ca3af;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  display: flex;
  gap: 16px;
  max-width: 400px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #374151;
  border-radius: 8px;
  background: #374151;
  color: white;
  font-size: 16px;
}

.newsletter-form input::placeholder {
  color: #9ca3af;
}

.footer-main {
  padding: 60px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  text-decoration: none;
  color: white;
}

.footer-logo:hover {
  color: white;
  text-decoration: none;
}

.footer-logo i {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: white;
  padding: 8px;
  border-radius: 8px;
}

.footer-brand p {
  color: #9ca3af;
  margin-bottom: 24px;
  line-height: 1.6;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #9ca3af;
  font-size: 14px;
}

.contact-item i {
  width: 16px;
}

.footer-links h4 {
  font-size: 18px;
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
  text-decoration: none;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  transform: translateY(-2px);
  text-decoration: none;
  color: white;
}

.facebook {
  background: #1877f2;
}
.youtube {
  background: #ff0000;
}
.linkedin {
  background: #0077b5;
}
.instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.footer-social p {
  color: #9ca3af;
  font-size: 14px;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding: 24px 0;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  color: #9ca3af;
  font-size: 14px;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: white;
  text-decoration: none;
}

/* WordPress Specific Styles */
.wp-block-group {
  margin-bottom: 2rem;
}

.wp-block-image {
  margin-bottom: 1rem;
}

.wp-block-quote {
  border-left: 4px solid #3b82f6;
  padding-left: 1rem;
  margin: 2rem 0;
  font-style: italic;
}

.wp-block-button .wp-block-button__link {
  background: linear-gradient(135deg, #f97316, #ef4444);
  border-radius: 8px;
  padding: 12px 24px;
  text-decoration: none;
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
}

.wp-block-button .wp-block-button__link:hover {
  background: linear-gradient(135deg, #ea580c, #dc2626);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
}

/* Content Styles */
.content-area {
  padding: 100px 0 80px;
}

.page-header {
  text-align: center;
  margin-bottom: 60px;
}

.page-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.entry-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.entry-content h2 {
  margin: 2rem 0 1rem;
  font-size: 2rem;
}

.entry-content h3 {
  margin: 1.5rem 0 0.75rem;
  font-size: 1.5rem;
}

.entry-content p {
  margin-bottom: 1.5rem;
}

.entry-content ul,
.entry-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.entry-content li {
  margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 20px 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .mission-cards {
    grid-template-columns: 1fr;
  }

  .impact-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-links-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }

  .floating-icon {
    display: none;
  }

  .event-header {
    flex-direction: column;
    text-align: center;
  }

  .event-buttons {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  section {
    padding: 60px 0;
  }

  .hero {
    padding: 80px 15px 40px;
  }

  .impact-stats {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 24px;
  }

  .event-card {
    padding: 24px;
  }
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.6s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.6s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

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