/* ============================================
   COMPONENT-SPECIFIC STYLES
   ============================================ */

/* THEME TOGGLE SWITCH */
.theme-toggle {
  position: relative;
  width: 60px;
  height: 30px;
  background-color: #374151;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background-color: #4b5563;
}

.theme-toggle.dark {
  background-color: var(--organic);
}

.theme-toggle.dark:hover {
  background-color: #059669;
}

.theme-toggle-slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.theme-toggle.dark .theme-toggle-slider {
  transform: translateX(28px);
}

/* SERVICE CARDS */
.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Waste-type specific service cards */
.service-card-organic {
  border-top: 4px solid var(--organic);
  background: var(--organic-bg);
}

.service-card-plastic {
  border-top: 4px solid var(--plastic);
  background: var(--plastic-bg);
}

.service-card-paper {
  border-top: 4px solid var(--paper);
  background: var(--paper-bg);
}

.service-card-general {
  border-top: 4px solid var(--general);
  background: var(--general-bg);
}

.service-card-glass {
  border-top: 4px solid var(--glass);
  background: var(--glass-bg);
}

/* ICON CONTAINERS */
.icon-organic {
  background: var(--organic-bg);
  color: var(--organic);
}

.icon-plastic {
  background: var(--plastic-bg);
  color: var(--plastic);
}

.icon-paper {
  background: var(--paper-bg);
  color: var(--paper);
}

.icon-general {
  background: var(--general-bg);
  color: var(--general);
}

.icon-glass {
  background: var(--glass-bg);
  color: var(--glass);
}

/* STATS CARDS */
.stats-card {
  transition: transform 0.3s ease;
}

.stats-card:hover {
  transform: translateY(-3px);
}

/* APPROACH CARDS */
.approach-card {
  transition: transform 0.3s ease;
}

.approach-card:hover {
  transform: translateY(-5px);
}

/* TEAM CARDS */
.team-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* NAVIGATION STYLES */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--organic);
}

.nav-link.active {
  color: var(--organic);
  font-weight: 600;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--organic);
  border-radius: 1px;
}

/* BUTTONS */
.btn-primary {
  background: var(--organic);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--organic);
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid var(--organic);
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--organic);
  color: white;
  transform: translateY(-2px);
}

.btn-danger {
  background: var(--action-red) !important;
  color: white !important;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-danger:hover {
  background: #b91c1c !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(217, 34, 42, 0.3);
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .theme-toggle {
    width: 50px;
    height: 25px;
  }

  .theme-toggle-slider {
    width: 19px;
    height: 19px;
    top: 2px;
    left: 2px;
    font-size: 10px;
  }

  .theme-toggle.dark .theme-toggle-slider {
    transform: translateX(23px);
  }

  .service-card,
  .stats-card,
  .approach-card {
    margin-bottom: 1rem;
  }
}

/* ============================================
   TEAM SECTION TABS & MODAL
   ============================================ */

/* Tab Navigation Styling */
.team-tab {
  padding: 0.5rem 1rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  opacity: 0.6;
}

.team-tab:hover {
  opacity: 1;
}

.team-tab.active {
  opacity: 1;
  border-bottom-color: var(--organic); /* Default active color */
}

/* Tab-specific active colors */
.team-tab.active.theme-plastic {
  border-bottom-color: var(--plastic);
}
.team-tab.active.theme-paper {
  border-bottom-color: var(--paper);
}
.team-tab.active.theme-gold {
  border-bottom-color: var(--highlight-gold);
}
.team-tab.active.theme-red {
  border-bottom-color: var(--action-red);
}
.team-tab.active.theme-glass {
  border-bottom-color: var(--glass);
}

/* Team content panels */
.team-panel {
  display: none; /* Hide all panels by default */
}

.team-panel.active {
  display: grid; /* Show the active one */
  animation: fadeIn 0.5s ease-in;
}

/* Team Member Bio Modal */
.modal-overlay {
  transition: opacity 0.3s ease;
}

.modal-content {
  transition: transform 0.3s ease, opacity 0.3s ease;
}
