/* MAX 플랜 모달 전용 CSS */

/* MAX 플랜 모달 스타일 */
#max-modal, #max-plan-modal {
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#max-modal.show, #max-plan-modal.show {
  display: block;
  opacity: 1;
  visibility: visible;
}

#max-modal .modal-content, #max-plan-modal .modal-content {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 30px;
  border: none;
  border-radius: 20px;
  width: 90%;
  max-width: 850px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  color: white;
  border: 2px solid rgba(52, 152, 219, 0.5);
  max-height: 80vh;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#max-modal.show .modal-content, #max-plan-modal.show .modal-content {
  opacity: 1;
}

#max-plan-modal .close-modal {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 28px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1;
}

#max-plan-modal .close-modal:hover {
  color: #e74c3c;
  transform: rotate(90deg);
}

#max-plan-modal .max-header {
  text-align: center;
  margin-bottom: 25px;
  position: relative;
}

#max-plan-modal .enterprise-shield {
  font-size: 2rem;
  color: #3498db;
  margin-bottom: 10px;
  animation: shield-glow 4s ease-in-out infinite;
}

#max-plan-modal h2 {
  margin: 0 0 10px 0;
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(45deg, #3498db, #74b9ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 40px rgba(52, 152, 219, 0.6);
}

#max-plan-modal .enterprise-price {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 10px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  background: linear-gradient(45deg, #fff, #3498db);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#max-plan-modal .enterprise-badge {
  background: linear-gradient(45deg, #3498db, #2980b9);
  color: white;
  padding: 8px 20px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  animation: enterprise-glow 4s ease infinite;
  margin-bottom: 20px;
  box-shadow: 0 6px 25px rgba(52, 152, 219, 0.5);
}

#max-plan-modal .enterprise-content {
  margin: 25px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  align-items: start;
}

#max-plan-modal .enterprise-unlimited,
#max-plan-modal .enterprise-services-row,
#max-plan-modal .enterprise-highlight,
#max-plan-modal .max-actions,
#max-plan-modal .enterprise-note {
  grid-column: 1 / -1; /* 전체 너비 사용 */
}

#max-plan-modal .enterprise-services-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 25px 0;
}

#max-plan-modal .enterprise-custom,
#max-plan-modal .enterprise-support {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

#max-plan-modal .enterprise-custom h3,
#max-plan-modal .enterprise-support h3 {
  margin: 0 0 15px 0;
  font-size: 1.3rem;
  color: #74b9ff;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#max-plan-modal .enterprise-custom ul,
#max-plan-modal .enterprise-support ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#max-plan-modal .enterprise-custom li,
#max-plan-modal .enterprise-support li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  padding-left: 25px;
  font-size: 0.95rem;
  line-height: 1.5;
}

#max-plan-modal .enterprise-custom li:before,
#max-plan-modal .enterprise-support li:before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 10px;
  color: #3498db;
  font-weight: bold;
  font-size: 1.1rem;
}

#max-plan-modal .enterprise-custom li:last-child,
#max-plan-modal .enterprise-support li:last-child {
  border-bottom: none;
}

#max-plan-modal .enterprise-features,
#max-plan-modal .enterprise-channels {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  height: fit-content;
}

#max-plan-modal .enterprise-features h3,
#max-plan-modal .enterprise-channels h3 {
  margin: 0 0 15px 0;
  font-size: 1.3rem;
  color: #74b9ff;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#max-plan-modal .enterprise-features ul,
#max-plan-modal .enterprise-channels ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#max-plan-modal .enterprise-features li,
#max-plan-modal .enterprise-channels li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  padding-left: 25px;
  font-size: 0.95rem;
  line-height: 1.5;
}

#max-plan-modal .enterprise-features li:before,
#max-plan-modal .enterprise-channels li:before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 10px;
  color: #3498db;
  font-weight: bold;
  font-size: 1.1rem;
}

#max-plan-modal .enterprise-features li:last-child,
#max-plan-modal .enterprise-channels li:last-child {
  border-bottom: none;
}

/* 클릭 가능한 상품 카드 스타일 */
.clickable-product {
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.clickable-product:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

.clickable-product:before {
  content: '클릭하여 상세보기';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(52, 152, 219, 0.9);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  opacity: 0;
  transition: all 0.3s ease;
  border-radius: 10px;
}

.clickable-product:hover:before {
  opacity: 1;
}

/* 무제한 서비스 그리드 스타일 */
#max-plan-modal .unlimited-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

#max-plan-modal .unlimited-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

#max-plan-modal .unlimited-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

#max-plan-modal .unlimited-item .icon {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
}

#max-plan-modal .unlimited-item h4 {
  margin: 10px 0;
  color: #74b9ff;
  font-size: 1.1rem;
  font-weight: 600;
}

#max-plan-modal .unlimited-item p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
}

#max-plan-modal .enterprise-highlight {
  background: linear-gradient(45deg, rgba(52, 152, 219, 0.2), rgba(155, 89, 182, 0.2));
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  text-align: center;
  border: 2px solid rgba(52, 152, 219, 0.5);
}

#max-plan-modal .enterprise-highlight h4 {
  margin: 0 0 10px 0;
  color: #74b9ff;
  font-size: 1.2rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#max-plan-modal .enterprise-highlight p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

#max-plan-modal .max-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 25px;
  flex-wrap: wrap;
}

#max-plan-modal .btn {
  padding: 14px 28px;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 150px;
  justify-content: center;
}

#max-plan-modal .btn-primary {
  background: linear-gradient(45deg, #3498db, #2980b9);
  color: white;
  box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

#max-plan-modal .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(52, 152, 219, 0.6);
}

#max-plan-modal .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(52, 152, 219, 0.4);
}

#max-plan-modal .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

#max-plan-modal .enterprise-note {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 20px;
  text-align: center;
  font-style: italic;
  line-height: 1.5;
}

/* 애니메이션 */
@keyframes enterprise-glow {
  0%, 100% {
    box-shadow: 0 6px 25px rgba(52, 152, 219, 0.5);
  }
  50% {
    box-shadow: 0 8px 35px rgba(52, 152, 219, 0.7);
  }
}

@keyframes shield-glow {
  0%, 100% {
    text-shadow: 0 0 20px rgba(52, 152, 219, 0.8);
    transform: scale(1);
  }
  50% {
    text-shadow: 0 0 30px rgba(52, 152, 219, 1);
    transform: scale(1.1);
  }
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  #max-plan-modal .modal-content {
    padding: 20px;
    width: 95%;
  }

  #max-plan-modal .enterprise-content {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  #max-plan-modal .enterprise-services-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  #max-plan-modal .unlimited-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  #max-plan-modal h2 {
    font-size: 1.9rem;
  }

  #max-plan-modal .enterprise-price {
    font-size: 1.6rem;
  }

  #max-plan-modal .max-actions {
    flex-direction: column;
    align-items: center;
  }

  #max-plan-modal .btn {
    width: 100%;
    max-width: 250px;
  }
}

@media (max-width: 480px) {
  #max-plan-modal .modal-content {
    padding: 15px;
    max-height: 85vh;
  }

  #max-plan-modal h2 {
    font-size: 1.7rem;
  }

  #max-plan-modal .enterprise-price {
    font-size: 1.5rem;
  }

  #max-plan-modal .enterprise-badge {
    font-size: 0.9rem;
    padding: 6px 16px;
  }

  #max-plan-modal .enterprise-shield {
    font-size: 1.8rem;
  }

  #max-plan-modal .enterprise-features {
    padding: 15px;
  }

  #max-plan-modal .enterprise-features li {
    font-size: 0.9rem;
    padding: 8px 0;
    padding-left: 20px;
  }

  #max-plan-modal .btn {
    padding: 12px 20px;
    font-size: 0.95rem;
  }

  #max-plan-modal .unlimited-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  #max-plan-modal .unlimited-item {
    padding: 15px;
  }

  #max-plan-modal .unlimited-item .icon {
    font-size: 1.5rem;
  }
}