/* Collection Modal Styles */

/* Modal Overlay */
.collection-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 10000;
  padding: var(--Space-5, 20px);
}

.collection-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Modal Container */
.collection-modal {
  display: flex;
  width: 508px;
  padding: var(--space-spacer-1-rem, 16px);
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  border-radius: var(--Radius-sm, 4px);
  border: 1px solid var(--On-background-Brand-Default, #231f20);
  background: var(--Elevated-High, rgba(254, 253, 249, 0.95));

  /* backdrop-blur/md */
  backdrop-filter: blur(calc(var(--blur-md, 12px) / 2));

  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.collection-modal-overlay.active .collection-modal {
  transform: translateY(0);
}

/* Modal Header */
.collection-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.collection-modal-title h3 {
  /* Heading/Serif/Medium */
  font-family: var(--Type-Font-Serif, "Plus Jakarta Sans");
  font-size: var(--Heading-Size-Medium, 24px);
  font-style: normal;
  font-weight: var(--Heading-Font-Weight, 700);
  line-height: 140%; /* 33.6px */
  color: #231f20;
  margin: 0;
}

.collection-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--On-background-Global-Default, #8f888a);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.collection-modal-close:hover {
  background: var(--Background-Global-Secondary, #faf5f0);
}

.collection-modal-close:focus {
  outline: 2px solid var(--Background-Brand-Primary, #520f09);
  outline-offset: 2px;
}

/* Modal Content */
.collection-modal-content {
  width: 100%;
}

.collection-modal-content p {
  /* Single_Line/BASE/Regular */
  font-family: var(--Type-Font-Serif, "Plus Jakarta Sans");
  font-size: var(--Body-Size-Medium, 18px);
  font-style: normal;
  font-weight: var(--Body-Font-Weight-Regular, 400);
  line-height: 150%; /* 27px */
  letter-spacing: -0.18px;
  color: #231f20;
  margin: 0;
}

/* Mobile Responsive */
@media (max-width: 575px) {
  .collection-modal-overlay {
    padding: var(--Space-3, 12px);
  }

  .collection-modal {
    width: calc(100% - 24px);
    max-width: 508px;
    max-height: 90vh;
  }

  .collection-modal-title h3 {
    font-size: var(--Heading-Size-Medium, 20px);
  }

  .collection-modal-content p {
    font-size: var(--Body-Size-Medium, 16px);
  }
}

/* Tablet Responsive */
@media (min-width: 576px) and (max-width: 991px) {
  .collection-modal {
    width: 508px;
    max-width: calc(100% - 32px);
  }

  .collection-modal-title h3 {
    font-size: var(--Heading-Size-Medium, 20px);
  }

  .collection-modal-content p {
    font-size: var(--Body-Size-Medium, 16px);
  }
}

/* Desktop Responsive */
@media (min-width: 992px) {
  .collection-modal {
    width: 508px;
  }
}
