/* Membership Card Modal Styles */
/* Colors: #825d07 (primary), #ffd25d (accent) */

.membership-card-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
  overflow-y: auto;
}

.membership-card-modal-container {
  position: relative;
  background: #fff;
  border-radius: 16px;
  max-width: 650px;
  width: 100%;
  max-height: 95vh;
  overflow-y: auto;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  animation: slideUp 0.25s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.membership-card-close-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f5f5f5;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.membership-card-close-btn:hover {
  background: #ffd25d;
}

.membership-card-close-btn i {
  font-size: 14px;
  color: #333;
}

.membership-card-content {
  padding: 1rem;
}

/* ==========================================
   MEMBERSHIP INFO SECTION (TOP)
   ========================================== */

.modal-membership-section {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem;
  background: #fafafa;
  border-radius: 10px;
  margin-bottom: 0.75rem;
  border: 1px solid #eee;
}

.modal-membership-image {
  flex-shrink: 0;
}

.modal-membership-image img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
}

.modal-membership-details {
  flex: 1;
  min-width: 0;
}

.modal-membership-name {
  font-size: 20px !important;
  font-weight: 600;
  color: #333;
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.modal-org-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.modal-org-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
}

.modal-org-name {
  font-size: 16px;
  color: #666;
}

.modal-price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.modal-price-amount {
  font-size: 20px;
  font-weight: 600;
  color: #825d07;
}

.modal-price-term {
  font-size: 12px;
  color: #825d07;
  opacity: 0.8;
}

/* ==========================================
   PARTICIPANT SECTION
   ========================================== */

.modal-participant-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  margin-bottom: 0.5rem;
}

.modal-participant-name {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0 0 0px 0;
  line-height: 1.2;
}

.modal-member-id-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: #825d07;
  padding: 3px 10px;
  border-radius: 4px;
}

/* ==========================================
   VALIDITY SECTION
   ========================================== */

.modal-validity-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 0.6rem 0;
  margin-bottom: 0.75rem;
  background: #fafafa;
  border-radius: 8px;
  border: 1px solid #eee;
}

.modal-validity-item {
  text-align: center;
}

.modal-validity-label {
  display: block;
  font-size: 10px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.modal-validity-date {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.modal-validity-divider {
  width: 1px;
  height: 30px;
  background: #ddd;
}

/* ==========================================
   QR CODE SECTION (BOTTOM)
   ========================================== */

.modal-qr-section {
  display: flex;
  justify-content: center;
  padding: 1rem 0 0.5rem;
}

.modal-qr-image {
  width: 200px;
  height: 200px;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  border: 2px solid #e9e9e9;
  box-shadow: 0 4px 12px rgb(98 98 98 / 15%);
}

/* ==========================================
   MOBILE RESPONSIVE
   ========================================== */

@media (max-width: 767px) {
  .membership-card-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .membership-card-modal-container {
    max-width: 100%;
    width: 100%;
    border-radius: 16px 16px 0 0;
    max-height: 85vh;
  }

  .membership-card-content {
    padding: 0.75rem;
  }

  .modal-membership-section {
    padding: 0.6rem;
    gap: 0.6rem;
  }

  .modal-membership-image img {
    width: 70px;
    height: 70px;
  }

  .modal-membership-name {
    font-size: 14px;
  }

  .modal-org-name {
    font-size: 11px;
  }

  .modal-price-amount {
    font-size: 15px;
  }

  .modal-price-term {
    font-size: 11px;
  }

  .modal-participant-name {
    font-size: 16px;
  }

  .modal-member-id-badge {
    font-size: 10px;
    padding: 2px 8px;
  }

  .modal-validity-section {
    gap: 1rem;
    padding: 0.5rem 0;
  }

  .modal-validity-label {
    font-size: 9px;
  }

  .modal-validity-date {
    font-size: 13px;
  }

  .modal-qr-image {
    width: 180px;
    height: 180px;
    padding: 8px;
  }
}

/* ==========================================
   TABLET RESPONSIVE
   ========================================== */

@media (min-width: 768px) and (max-width: 991px) {
  .modal-qr-image {
    width: 180px;
    height: 180px;
  }

  .modal-membership-image img {
    width: 55px;
    height: 55px;
  }
}
