/* Studio Page Styles - Minimalist Editorial */

.studio-intro {
  font-size: 17px;
  color: #666;
  margin-bottom: 2rem;
  margin-top: 0 !important;
  line-height: 1.6;
}

/* Filter Container */
.filter-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e8e8e8;
}

.filter-tag {
  padding: 0.4rem 0.9rem;
  background: white;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  font-size: 13px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  transition: none;
  font-family: inherit;
}

.filter-tag:hover {
  color: #333;
}

.filter-tag.active {
  background: white;
  border-bottom: 2px solid #333;
  color: #333;
}

/* Masonry Grid */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  grid-auto-rows: auto;
}

/* Masonry Items - Compact */
.masonry-item {
  background: white;
  border: none;
  border-radius: 0;
  overflow: hidden;
  transition: none;
  display: flex;
  flex-direction: column;
  opacity: 1;
}

.masonry-item.hidden {
  display: none;
}

.masonry-item:hover {
  opacity: 0.8;
}

/* Item Image - Smaller */
.item-image {
  width: 100%;
  height: 140px;
  background: #f9f9f9;
  overflow: hidden;
  position: relative;
}

.item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Item Content - Tighter */
.item-content {
  padding: 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* Text-only cards (no image) get more padding */
.masonry-item:not(:has(.item-image)) .item-content {
  padding: 1.5rem 1rem;
}

.small .item-content {
  padding: 0.9rem;
}

/* Make emoji badges bigger and more prominent for text-only cards */
.masonry-item:not(:has(.item-image)) .award-badge {
  font-size: 40px;
  margin-bottom: 1rem;
  display: block;
}

/* Item Tags - Minimal */
.item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.item-tags .tag {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.2rem 0.5rem;
  background: #f5f5f5;
  color: #888;
  border-radius: 2px;
}

/* Item Title - Smaller */
.item-content h3 {
  margin: 0 0 0.5rem 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  line-height: 1.3;
}

.small .item-content h3 {
  font-size: 15px;
}

/* Item Description - Compact */
.item-content p {
  margin: 0 0 0.75rem 0 !important;
  font-size: 14px;
  line-height: 1.5;
  color: #666;
  flex-grow: 1;
}

.small .item-content p {
  font-size: 13px;
}

/* Item Meta */
.item-meta {
  font-size: 12px;
  color: #999;
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

/* Item Link */
.item-link {
  color: #333 !important;
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  display: inline-block;
  transition: none;
  margin-top: auto;
  background: none !important;
  padding: 0.1rem 0.3rem !important;
  border-bottom: 1px solid #e0e0e0;
}

.item-link:hover {
  color: #000 !important;
  border-bottom-color: #333;
}

/* Award Badge - Smaller */
.award-badge {
  font-size: 32px;
  margin-bottom: 0.75rem;
  text-align: center;
}

.small .award-badge {
  font-size: 28px;
  margin-bottom: 0.5rem;
}

/* Add Item */
.add-item {
  border: none;
  background: #fafafa;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.add-item:hover {
  background: #f0f0f0;
  opacity: 1;
}

.add-item .item-content {
  text-align: center;
  padding: 1.5rem 1rem;
  justify-content: center;
}

.add-icon {
  font-size: 28px;
  color: #ccc;
  display: block;
  margin-bottom: 0.5rem;
}

.add-item p {
  color: #999;
  font-size: 13px;
  margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .masonry-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    grid-auto-rows: auto;
  }

  .masonry-item:not(.small),
  .masonry-item.small {
    grid-row-end: auto;
  }

  .filter-container {
    gap: 0.4rem;
    margin-bottom: 2rem;
  }

  .filter-tag {
    padding: 0.4rem 0.8rem;
    font-size: 12px;
  }

  .item-image {
    height: 150px;
  }

  .item-content {
    padding: 1rem;
  }

  .item-content h3 {
    font-size: 15px;
  }

  .item-content p {
    font-size: 13px;
  }
}

@media (min-width: 901px) and (max-width: 1200px) {
  .masonry-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}