
/* browse.css – Page-specific layout for browse.php
   Depends on: base.css, layout.css, side-menu.css
*/

.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1rem 1.5rem 0.5rem 1.5rem;
  background: var(--white);
  border-bottom: 1px solid var(--gray);
  position: sticky;
  top: 56px;
  z-index: 15;
}

/* Search box, category dropdown, and age dropdown all styled the same */
.search-box,
.category-filter,
.age-filter {
  font-size: 1rem;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #d6dbe4;
  background: #f6f6fa;
}

.search-box {
  flex: 2;
  margin-right: 8px;
}
/* Both dropdowns share the same flex behavior */
.category-filter,
.age-filter {
  flex: 1;
}

.image-credit {
  font-size: 0.75rem;
  color: #666;
  text-align: right;
  margin-top: 0;
  margin-bottom: 0.95rem;
}

.image-credit a {
  color: inherit;
  text-decoration: underline;
  font-size: 0.75rem;
}


.tile-grid {
	margin-top: 50px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.3rem;
	padding: 1.5rem;
}

@media (min-width: 600px) { .tile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .tile-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .tile-grid { grid-template-columns: repeat(5, 1fr); } }

.tile {
  background: #fff;
  border-radius: 1.1rem;
  box-shadow: 0 4px 18px rgba(36,39,46,0.09);
  padding: 1.3rem 1.2rem;
  display: flex;
  flex-direction: column;
}

.tile-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0.8rem;
}

.tile-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 0 0 0.3rem 0;
  color: var(--accent);
}

.tile-desc {
  font-size: 1rem;
  color: #444d;
  margin-bottom: 0.6rem;
}

.tile-meta {
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.5rem;
}

/* … your existing rules … */

/* new footer flex & stars */
.tile-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto; /* push to bottom */
}

.star-rating {
  display: flex;
  gap: 2px;
}

.star {
  font-size: 1.4rem;
  color: #d6dbe4;           /* empty star color */
}

.star.filled {
  color: #f5b301;           /* golden filled star */
}

/* ensure button stays aligned */
.tile-btn {
  margin: 0;
}

/* … rest of your existing rules … */


.tile-btn {
  margin-top: auto;
  align-self: flex-end;
  background: var(--btn);
  color: #fff;
  border: none;
  border-radius: 0.9em;
  padding: 0.6em 1.5em;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.16s;
}

.tile-btn:hover {
  background: #0cbcae;
}


@media (max-width: 600px) {
  .filter-bar {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
    gap: 2%;            /* two gaps of 2% = 4% total */
  }

  .filter-bar .search-box,
  .filter-bar .category-filter,
  .filter-bar .age-filter {
    width: 100%;        /* fill each grid cell */
    margin: 0;          /* remove any leftover margins */
    box-sizing: border-box;
  }
}



