/* =================================================================
   EFFECT TYPES MODAL
   Grid of texture-effect previews used on the Enceladus sample.
   Trigger card opens a modal with a 2-up grid of effect samples
   (raised, debossed, etc.).
   ================================================================= */

/* =================================================================
   TRIGGER CARD
   ================================================================= */

.effect-card {
  float: right;
  clear: right;
  max-width: 280px;
  margin: 0 0 15px 20px;
}

@media (max-width: 600px) {
  .effect-card {
    float: none;
    max-width: 100%;
    margin: 20px auto;
  }
}

.effect-card__trigger {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  font-family: inherit;
  text-align: left;
  background: #f0f2f5;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.effect-card__trigger:hover {
  background: #e8eaed;
  border-color: #ccc;
  box-shadow: 0 4px 12px rgb(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.effect-card__thumbnail {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, #1a3a5c, #0a1929);
  aspect-ratio: 16 / 9;
}

.effect-card__preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  height: 100%;
  padding: 15px;
}

.effect-preview {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgb(255, 255, 255, 0.7);
  background: rgb(255, 255, 255, 0.1);
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.effect-preview--raised {
  box-shadow: 2px 2px 4px rgb(0, 0, 0, 0.3);
}

.effect-preview--debossed {
  box-shadow: inset 2px 2px 4px rgb(0, 0, 0, 0.3);
}

.effect-card__trigger:hover .effect-preview {
  transform: scale(1.05);
}

.effect-card__overlay {
  position: absolute;
  background: rgb(0, 0, 0, 0.3);
  transition: background 0.3s ease;
  inset: 0;
}

.effect-card__trigger:hover .effect-card__overlay {
  background: rgb(2, 38, 98, 0.6);
}

.effect-card__icon {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: rgb(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 2px 10px rgb(0, 0, 0, 0.2);
  transform: translate(-50%, -50%) scale(1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.effect-card__icon svg {
  width: 20px;
  height: 20px;
  color: #022662;
}

.effect-card__trigger:hover .effect-card__icon {
  box-shadow: 0 4px 15px rgb(0, 0, 0, 0.3);
  transform: translate(-50%, -50%) scale(1.1);
}

.effect-card__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
}

.effect-card__label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #888;
}

.effect-card__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #022662;
}

/* =================================================================
   MODAL CONTAINER
   ================================================================= */

.effect-modal {
  position: fixed;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  inset: 0;
}

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

.effect-modal__backdrop {
  position: absolute;
  background: rgb(2, 38, 98, 0.95);
  inset: 0;
}

.effect-modal__content {
  position: relative;
  width: 90%;
  max-width: 700px;
  padding: 30px;
  font-family: var(--font-body);
  opacity: 0;
  transform: scale(0.8) translateY(30px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.effect-modal.active .effect-modal__content {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.effect-modal__close {
  position: absolute;
  top: -10px;
  right: 0;
  width: 36px;
  height: 36px;
  font-size: 32px;
  color: #fff;
  background: transparent;
  border: none;
  opacity: 0.7;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.effect-modal__close:hover {
  opacity: 1;
}

.effect-modal__title {
  margin: 0 0 8px 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  color: #fff;
}

.effect-modal__subtitle {
  margin: 0 0 25px 0;
  font-size: 14px;
  text-align: center;
  color: rgb(255, 255, 255, 0.7);
}

.effect-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

@media (max-width: 500px) {
  .effect-grid {
    grid-template-columns: 1fr;
  }
}

.effect-item {
  padding: 15px;
  text-align: center;
  background: rgb(255, 255, 255, 0.05);
  border: 1px solid rgb(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.effect-item:hover {
  background: rgb(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.effect-item__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 80px;
  margin-bottom: 12px;
  overflow: hidden;
  background: #1a3a5c;
  border-radius: 6px;
}

.effect-item__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.effect-item__visual--placeholder {
  font-size: 12px;
  color: rgb(255, 255, 255, 0.3);
  background: linear-gradient(135deg, #1a3a5c 0%, #0a1929 100%);
}

.effect-item__name {
  margin-bottom: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.effect-item__desc {
  font-size: 12px;
  line-height: 1.4;
  color: rgb(255, 255, 255, 0.6);
}
