/* ==========================================================================
   FILE: /bonsai/public/assets/css/trees.css
   PROJECT: Bonsai Collection Tracker
   PURPOSE: Styled bonsai card grid and flip cards (container simplified)
   AUTHOR: [Your Name or Team]
   VERSION: v5.0 – Clean card layout
   ========================================================================== */

body.trees-page {
  background-color: #f7f8f4;
  font-family: "Inter", Arial, sans-serif;
  color: #2d362d;
}

.trees-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.load-status {
  text-align: center;
  color: #777;
}

/* ==========================================================================
   FILTER / SEARCH BAR
   ========================================================================== */
.trees-filters {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

#search {
  width: 60%;
  max-width: 420px;
  padding: 0.7rem 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.25s ease;
}

#search:focus {
  outline: none;
  border-color: #5a8245;
}

/* ==========================================================================
   GRID LAYOUT
   ========================================================================== */
.trees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  align-items: start;
  justify-items: center;
}

/* ==========================================================================
   CARD STYLING
   ========================================================================== */
.tree-card {
  perspective: 1000px;
  width: 100%;
  max-width: 280px;
  border-radius: 8px;
  overflow: hidden;
  background: none;
  transition: transform 0.3s ease;
  position: relative;
}

.card-inner {
  position: relative;
  width: 100%;
  min-height: 340px;
  transform-style: preserve-3d;
  transition: transform 0.6s;
}

.tree-card.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  border-radius: 8px;
  overflow: hidden;
  backface-visibility: hidden;
}

.card-front {
  z-index: 2;
}

.card-back {
  background: #fff;
  transform: rotateY(180deg);
  padding: 1rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

/* ==========================================================================
   IMAGE & STATUS PILL
   ========================================================================== */
.img-link {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}

.img-link img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  background-color: #fff;
}


.tree-status {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 0.72rem;
  padding: 0.3rem 0.6rem;
  border-radius: 12px;
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;


  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.tree-status.available { display: none; }
.tree-status.reserved  { background-color: #ffbf00; }
.tree-status.sold      { background-color: #b8453e; }

/* ==========================================================================
   INFO BAR (Directly under image, unified block)
   ========================================================================== */
.info-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: none;
  background-color: #fff;
  border-radius: 0 0 6px 6px;
  padding: 0.9rem 1rem;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.info-bar:hover {
  background-color: #f3f5f0;
}

.info-text {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  font-size: 0.9rem;
  line-height: 1.3;
}

.tree-name {
  font-weight: 600;
  color: #2d362d;
}

.tree-price {
  font-weight: 600;
  color: #000;
  text-align: right;
}

/* ==========================================================================
   CHECKLIST STYLING
   ========================================================================== */
.checklist {
  list-style: none;
  margin: 0 0 1rem 0;
  padding: 0;
}

.checklist li {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.checklist li.done {
  color: #5a8245;
  font-weight: 600;
}

.checklist li.todo {
  color: #999;
}

.check-icon {
  display: inline-block;
  width: 1.1rem;
  text-align: center;
  margin-right: 0.5rem;
  font-weight: 600;
}

.flip-back {
  background-color: #5a8245;
  color: #fff;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 4px;
  cursor: pointer;
}

.flip-back:hover {
  background-color: #436934;
}

/* ==========================================================================
   EMPTY STATE
   ========================================================================== */
.trees-empty {
  text-align: center;
  padding: 3rem;
  background: transparent;
  color: #777;
  font-size: 1rem;
  margin-top: 2rem;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .trees-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 768px) {
  #search {
    width: 90%;
  }

  .trees-container {
    padding: 1rem;
  }

  .card-inner {
    min-height: 320px;
  }

  .card-back {
    padding: 0.8rem;
  }

  .tree-card {
    max-width: 100%;
  }
}
/* trees.css | v2.0.0 | 2025-11-16 */
