/* ---------------------------
   GLOBAL
--------------------------- */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f5f7f5;
  color: #333;
}

h1, h2, h3 {
  margin: 0;
}

/* ---------------------------
   HEADER & CONTROLS
--------------------------- */
header {
  text-align: center;
  padding: 20px 10px 10px;
}

.month-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 10px;
}

.controls input,
.controls select,
.modes button {
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
}

/* ---------------------------
   TABS / MODES
--------------------------- */
.modes {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  flex-wrap: wrap;
}

.tab {
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid #ccc;
  cursor: pointer;
  background: white;
  transition: 0.2s;
}

.tab.active {
  background: #2e7d32 !important;
  color: white !important;
  border-color: #2e7d32 !important;
}

.clear-btn {
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid #d32f2f;
  cursor: pointer;
  background: white;
  color: #d32f2f;
  transition: 0.2s;
  font-size: 14px;
}

.clear-btn:hover {
  background: #ffebee;
}

/* ---------------------------
   GRID
--------------------------- */
#results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 15px;
  max-width: 1400px;
  margin: 0 auto;
}

/* ---------------------------
   CARD - CONSOLIDATED
--------------------------- */
.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #ddd;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform 0.15s ease;
  height: auto !important;     /* Allows card to grow */
  min-height: 580px;           /* Base uniform height */
  overflow: visible !important; /* No cropping */
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.card-img-container {
  width: 100%;
  height: 180px;
  overflow: hidden;
  position: relative;
  background: #f0f0f0; 
  flex-shrink: 0;
}

.card-img-container img {
  width: 100%;
  height: 100%;
  object-fit: contain; 
  cursor: zoom-in;
}

.save-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.card-content {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.type-tag {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(46, 125, 50, 0.9);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
}

.diff-badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.diff-badge.easy { background: #c8e6c9; color: #2e7d32; }
.diff-badge.moderate { background: #fff9c4; color: #f57f17; }

/* ---------------------------
   TIPS & COMPANIONS
--------------------------- */
.planting-tips {
  background: #f1f8e9;
  border-left: 4px solid #2e7d32;
  padding: 8px 10px;
  margin: 12px 0;
  font-size: 13px;
  line-height: 1.4;
  color: #1b5e20;
}

.planting-tips strong {
  color: #2e7d32;
  text-transform: uppercase;
  font-size: 11px;
  display: block;
}

.companions {
  margin-top: auto; /* Pushes to bottom */
  padding-top: 10px;
  border-top: 2px dashed #eee;
  font-size: 11px;
}

.comp-item { margin-bottom: 4px; }

/* ---------------------------
   MODALS (IMAGE & WELCOME)
--------------------------- */
.modal {
  display: none; 
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.modal-content {
  display: block !important;
  max-width: 90vw;
  max-height: 70vh;
  border: 4px solid white;
  border-radius: 12px;
  object-fit: contain;
}

#modalCaption {
  color: white;
  font-size: 1.5rem;
  margin-top: 15px;
  font-weight: bold;
}

.pro-blurred {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
  opacity: 0.6;
  position: relative;
  overflow: hidden; /* Keeps the blur contained */
}

/* This creates the little 'Lock' badge in the middle */
.pro-blurred::after {
  content: "🔒 PRO";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #2e7d32;
  color: white;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: bold;
  border-radius: 20px;
  filter: none !important; /* This ensures the text itself isn't blurry */
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

