.page {
  min-height: 100vh;
  background-color: #f8fafc;
  padding-top: 80px;
}

.hero {
  background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)), var(--hero-bg-url);
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 80px 20px;
}

.heroTitle {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  color: white;
}

.heroSubtitle {
  font-size: 18px;
  opacity: 0.9;
  max-width: 600px;
  color: white;
  margin: 0 auto;
}

.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 40px 40px 80px;
}

/* Category Filters */
.filterContainer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.filterBtn {
  padding: 12px 24px;
  background: white;
  border: none;
  border-radius: 40px;
  color: #111;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filterBtn:hover {
  background: #e9e9e9;
}

.filterBtn.active {
  background: #111;
  color: white;
}

/* Masonry Grid (Pinterest Style) */
.masonryContainer {
  display: flex;
  gap: 16px;
  width: 100%;
}

.masonryColumn {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
}

.masonryItem {
  display: flex;
  flex-direction: column;
}

.imageWrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: #eee;
}

.masonryImage {
  width: 100%;
  display: block;
}

/* Hover Overlay */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity 0.2s ease;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 16px;
}

.imageWrapper:hover .overlay {
  opacity: 1;
}

.saveBtn {
  background: #e60023;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 24px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transform: translateY(-10px);
  transition: transform 0.2s ease;
}

.imageWrapper:hover .saveBtn {
  transform: translateY(0);
}

.itemInfo {
  margin-top: 8px;
  padding: 0 4px;
  display: flex;
  flex-direction: column;
}

.itemTitle {
  color: #111;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 4px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.itemCategory {
  color: #555;
  font-size: 12px;
}

/* Modal / Lightbox (Pinterest Style) */
.modalOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.modalContent {
  background: white;
  border-radius: 24px;
  width: 100%;
  max-width: 1000px;
  height: 80vh;
  display: flex;
  overflow: hidden;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modalCloseBtn {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 48px;
  height: 48px;
  background: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: background 0.2s;
}

.modalCloseBtn:hover {
  background: #f1f5f9;
}

.modalLeft {
  flex: 1;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.modalImage {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.modalRight {
  flex: 1;
  max-width: 450px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  background: white;
  overflow-y: auto;
}

.modalHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.modalCategoryBadge {
  background: #f1f5f9;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}

.modalActionBtn {
  background: #e60023;
  color: white;
  padding: 10px 20px;
  border-radius: 24px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s;
}

.modalActionBtn:hover {
  background: #ad081b;
}

.modalTitle {
  font-size: 32px;
  font-weight: 700;
  color: #111;
  margin: 0 0 16px 0;
}

.modalDesc {
  font-size: 16px;
  line-height: 1.6;
  color: #475569;
  margin: 0 0 32px 0;
}

.modalProfile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.modalAvatar {
  width: 48px;
  height: 48px;
  background: #fecdd3;
  color: #be123c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
}

.modalProfileText h4 {
  margin: 0 0 4px 0;
  font-size: 15px;
  color: #111;
}

.modalProfileText p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

.modalFooter {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.fullResBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #f8fafc;
  color: #0f172a;
  padding: 12px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s;
}

.fullResBtn:hover {
  background: #e2e8f0;
}

.emptyState {
  text-align: center;
  padding: 80px 20px;
  color: #64748b;
}

/* Responsive */
@media (max-width: 1024px) {
  .container {
    padding: 40px 24px 80px;
  }
}

@media (max-width: 768px) {
  .heroTitle {
    font-size: 32px;
  }
  .hero {
    padding: 60px 20px;
  }
  .container {
    padding: 20px 12px 60px;
  }
  .filterBtn {
    padding: 8px 16px;
    font-size: 14px;
  }
  
  .masonryContainer {
    gap: 8px;
  }
  .masonryColumn {
    gap: 8px;
  }
  
  .itemTitle {
    font-size: 12px;
    margin-bottom: 2px;
  }
  .itemCategory {
    font-size: 10px;
  }
  .saveBtn {
    padding: 6px 12px;
    font-size: 12px;
  }

  .modalOverlay {
    padding: 20px;
  }
  .modalContent {
    flex-direction: column;
    height: 90vh;
    border-radius: 16px;
  }
  .modalLeft {
    flex: none;
    height: 40%;
  }
  .modalRight {
    flex: 1;
    max-width: 100%;
    padding: 20px;
  }
  .modalCloseBtn {
    top: 12px;
    left: 12px;
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  .modalTitle {
    font-size: 24px;
    margin-bottom: 12px;
  }
  .modalDesc {
    font-size: 14px;
    margin-bottom: 20px;
  }
  .modalHeader {
    margin-bottom: 20px;
  }
  .modalActionBtn {
    padding: 8px 16px;
    font-size: 12px;
  }
  .modalProfile {
    margin-bottom: 20px;
  }
}
