/* Forest Conservation Theme */

/* Forest theme variables */
:root.forest-theme {
  --forest-deep: #0B3D0B;
  --forest-dark: #1B4D1B;
  --forest-primary: #2D5A2D;
  --forest-medium: #3D6A3D;
  --forest-accent: #DC2626;
  --forest-yellow: #e9c043;
  --forest-beige: #f0e6dc;
  --forest-light: #E8F5E8;
  --forest-white: #FFFFFF;
  --forest-gray: #6B7280;
  --forest-border: rgba(45, 90, 45, 0.2);
  --forest-shadow: rgba(11, 61, 11, 0.15);
  --forest-overlay: rgba(11, 61, 11, 0.9);
}

/* Clean, geometric animations */
@keyframes forestSlideIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Forest body styles */
.forest-theme body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: 
    linear-gradient(135deg, rgba(11, 61, 11, 0.8) 0%, rgba(27, 77, 27, 0.9) 100%),
    url('foggy-forest.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--forest-white);
  line-height: 1.6;
  position: relative;
}

.forest-theme body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 30% 20%, rgba(45, 90, 45, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(27, 77, 27, 0.08) 0%, transparent 40%);
  pointer-events: none;
  z-index: 1;
}

/* Theme selector overrides */
.forest-theme .theme-label {
  color: var(--forest-light);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.forest-theme .theme-dropdown {
  background: rgba(11, 61, 11, 0.95);
  color: var(--forest-light);
  border: 2px solid var(--forest-primary);
  border-radius: 0;
  font-weight: 500;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px var(--forest-shadow);
  backdrop-filter: blur(10px);
  background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23E8F5E8" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>') !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  background-size: 10px !important;
}

.forest-theme .theme-dropdown:hover {
  border-color: var(--forest-accent);
  box-shadow: 0 6px 20px var(--forest-shadow);
  transform: translateY(-1px);
}

.forest-theme .back-link a {
  background: rgba(11, 61, 11, 0.95);
  color: var(--forest-light);
  border: 2px solid var(--forest-primary);
  border-radius: 0;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px var(--forest-shadow);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.forest-theme .back-link a:hover {
  background: rgba(220, 38, 38, 0.1);
  border-color: var(--forest-accent);
  box-shadow: 0 8px 25px var(--forest-shadow);
  transform: translateY(-2px);
}

/* Header styles */
.forest-theme .header-section {
  margin-bottom: 60px;
  position: relative;
}

.forest-theme h1 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 800;
  color: var(--forest-white);
  letter-spacing: -1px;
  text-shadow: 2px 2px 4px rgba(11, 61, 11, 0.8);
  position: relative;
}

.forest-theme h1::after {
  display: block;
  width: 80px;
  height: 4px;
  background: var(--forest-accent);
  margin: 20px auto;
  border-radius: 0;
}

.forest-theme .subtitle {
  color: var(--forest-light);
  font-size: 1.1em;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-top: 20px;
  opacity: 0.9;
}

/* Archive grid styles */
.forest-theme .archive-grid {
  gap: 24px;
}

.forest-theme .archive-item {
  background: rgb(15 40 15 / 80%);
  border: 2px solid var(--forest-primary);
  border-radius: 0;
  overflow: hidden;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px var(--forest-shadow);
  backdrop-filter: blur(10px);
  animation: forestSlideIn 0.6s ease-out;
  animation-fill-mode: both;
}

.forest-theme .archive-item:nth-child(1) { animation-delay: 0.1s; }
.forest-theme .archive-item:nth-child(2) { animation-delay: 0.15s; }
.forest-theme .archive-item:nth-child(3) { animation-delay: 0.2s; }
.forest-theme .archive-item:nth-child(4) { animation-delay: 0.25s; }
.forest-theme .archive-item:nth-child(5) { animation-delay: 0.3s; }
.forest-theme .archive-item:nth-child(6) { animation-delay: 0.35s; }

.forest-theme .archive-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--forest-accent), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.forest-theme .archive-item:hover::before {
  opacity: 1;
}

.forest-theme .archive-item:hover {
  border-color: var(--forest-yellow);
  box-shadow: 
    0 4px 12px var(--forest-shadow),
    0 0 0 2px var(--forest-yellow);
}

.forest-theme .image-container {
  background: var(--forest-deep);
  border-radius: 0;
  position: relative;
}

.forest-theme .screenshot-thumbnail {
  border-radius: 0;
  filter: saturate(0.8) contrast(1.1) brightness(0.9);
  transition: all 0.3s ease;
}

.forest-theme .archive-item:hover .screenshot-thumbnail {
  filter: saturate(1.0) contrast(1.2) brightness(1.0);
}

.forest-theme .image-overlay {
  background: linear-gradient(
    135deg,
    rgba(45, 90, 45, 0.2) 0%,
    transparent 50%,
    rgba(220, 38, 38, 0.1) 100%
  );
  border-radius: 0;
}

.forest-theme .year-badge {
  background: var(--forest-beige);
  color: var(--forest-deep);
  border: none;
  border-radius: 0;
  font-weight: 700;
  font-size: 0.75em;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(240, 230, 220, 0.3);
  padding: 4px 10px;
}

.forest-theme .item-content {
  padding: 24px;
  background: transparent;
}

.forest-theme .item-title {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.3em;
  font-weight: 700;
  color: var(--forest-white);
  line-height: 1.3;
  letter-spacing: -0.25px;
}

.forest-theme .archive-item:hover .item-title {
  color: var(--forest-light);
}

.forest-theme .item-description {
  color: var(--forest-light);
  font-size: 0.9em;
  line-height: 1.6;
  font-weight: 400;
  margin-bottom: 20px;
  opacity: 0.9;
}

.forest-theme .access-indicator {
  color: var(--forest-yellow);
  font-size: 0.8em;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0;
  border-radius: 0;
  border: none;
  display: inline-block;
  transition: all 0.3s ease;
  width: auto;
  margin-top: auto;
}

.forest-theme .access-indicator::after {
  content: '›';
  color: var(--forest-yellow);
  font-size: 1.2em;
  font-weight: bold;
  transition: transform 0.3s ease;
  margin-left: 6px;
  display: inline-block;
}

.forest-theme .access-indicator::before {
  display: none;
}

.forest-theme .archive-item:hover .access-indicator::after {
  transform: translateX(4px);
}


/* Responsive overrides */
@media (max-width: 680px) {
  .forest-theme .archive-grid {
    gap: 20px;
  }
  
  .forest-theme .item-content {
    padding: 20px;
  }
  
  .forest-theme h1 {
    font-size: 2.8rem;
  }
}