/* ===================================
   Forest Calculator - Landscape Design
   =================================== */

/* Reset & Base */
* {
  box-sizing: border-box;
}

body {
  margin: 0 !important;
  padding: 0 !important;
  background-color: #a3a3a3 !important;
  font-family: 'Roboto', sans-serif !important;
  overflow-x: hidden !important;
}

/* ===================================
   Landscape Container
   =================================== */

.landscape-container {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  background-image: url('../../gallery/bg-forest.png');
  background-size: cover;
  background-position: center;
}

/* Sky Layer */
.sky-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../../gallery/bg-forest.png');
  background-size: cover;
  background-position: center;
  z-index: 1;
}

/* Grass Layer */
.grass-layer {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to bottom, #6fa83c 0%, #5d8b2f 50%, #4a7322 100%);
  z-index: 3;
  box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Soil Layer */
.soil-layer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(to bottom, #6d4c41 0%, #5d4037 40%, #4e342e 80%, #3e2723 100%);
  z-index: 3;
  box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Category Buttons Overlay on Soil */
.category-buttons-overlay {
  display: flex;
  gap: 10px;
  z-index: 4;
}

/* ===================================
   Tree Display & Carousel
   =================================== */

.tree-display {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.tree-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 20px;
}

.tree-item {
  position: relative;
  transition: all 0.5s ease;
  opacity: 1;
  margin: 0 20px;
}

.tree-item.active {
  opacity: 1;
  z-index: 10;
}

/* Tree Positions */
.tree-item[data-position='0'] {
  transform: scale(0.7);
  opacity: 1;
}

.tree-item[data-position='1'] {
  transform: scale(0.85);
  opacity: 1;
}

.tree-item[data-position='2'] {
  transform: scale(1.2);
  opacity: 1;
}

.tree-item[data-position='3'] {
  transform: scale(0.85);
  opacity: 1;
}

.tree-item[data-position='4'] {
  transform: scale(0.7);
  opacity: 1;
}

.tree-img {
  max-height: 200px;
  width: auto;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.tree-item.active .tree-img {
  max-height: 280px;
}

.tree-label {
  display: none;
  /* Hide tree labels for cleaner look */
}

/* ===================================
   Navigation Arrows
   =================================== */

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(91, 155, 213, 0.3);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-arrow:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(91, 155, 213, 0.6);
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-arrow-left {
  left: 20px;
}

.nav-arrow-right {
  right: 20px;
}

.nav-arrow .glyphicon {
  font-size: 22px;
  color: #4a7fb8;
  font-weight: bold;
}

/* ===================================
   Calculator Section
   =================================== */

/* Category Buttons */
.category-buttons {
  text-align: center;
  margin-bottom: 30px;
}

.category-btn {
  background: rgba(139, 115, 85, 0.95);
  color: white;
  border: none;
  padding: 10px 30px;
  margin: 0 6px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
  text-transform: capitalize;
}

.category-btn:hover {
  background: rgba(122, 99, 73, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.45);
}

.category-btn.active {
  background: rgba(109, 86, 67, 0.95);
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.5);
  transform: translateY(0);
}

/* Calculate Button */
.calculate-section {
  text-align: center;
  margin-bottom: 40px;
}

/* ===================================
   Species Grid Section
   =================================== */

.species-grid-section {
  margin-top: 40px;
}

.section-title {
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  color: #666;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.species-grid {
  margin-bottom: 20px;
}

.species-card {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.species-card:hover {
  border-color: #4caf50;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.species-image {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  background: #f9f9f9;
  border-radius: 5px;
}

.species-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.species-name {
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

.info-text {
  text-align: center;
  font-size: 12px;
  color: #999;
  margin-top: 20px;
  padding: 0 20px;
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 768px) {
  .landscape-container {
    height: 300px;
  }

  .tree-display {
    height: 180px;
  }

  .tree-img {
    max-height: 150px;
  }

  .tree-item.active .tree-img {
    max-height: 180px;
  }

  .nav-arrow {
    width: 40px;
    height: 40px;
  }

  .nav-arrow-left {
    left: 10px;
  }

  .nav-arrow-right {
    right: 10px;
  }

  .category-btn {
    padding: 10px 20px;
    font-size: 14px;
    margin: 5px 3px;
  }

  .btn-calculate {
    padding: 12px 40px;
    font-size: 18px;
  }

  .species-image {
    height: 100px;
  }
}

@media (max-width: 480px) {
  .landscape-container {
    height: 250px;
  }

  .category-btn {
    display: block;
    width: 80%;
    margin: 10px auto;
  }
}
