/* ==============================================
   화성산업진흥원 팝업 스타일
   ============================================== */

/* 화성산업진흥원 팝업 오버레이 */
.hipa-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  font-family: "Noto Sans KR", sans-serif;
}

/* 상단 로고 - 컨테이너 위 */
.hipa-popup-logo-top {
  display: none;
  justify-content: center;
  margin-bottom: 20px;
  order: 1;
}

/* 상단 헤더 */
.hipa-popup-header {
  width: 100%;
  background: rgba(0, 0, 0, 0.8);
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(10px);
}

/* 데스크톱에서만 표시 */
.desktop-only {
  display: flex;
}

.hipa-popup-logo {
  display: flex;
  align-items: center;
}

.hipa-logo-image {
  height: 50px;
  width: auto;
  max-width: 200px;
}

.hipa-popup-controls {
  display: flex;
  align-items: center;
  gap: 30px;
}

.hipa-checkboxes {
  display: flex;
  gap: 20px;
}

.hipa-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.hipa-checkbox:hover {
  color: #0778b6;
}

.hipa-checkbox input[type="checkbox"] {
  margin: 0;
  width: 16px;
  height: 16px;
  accent-color: #0778b6;
}

.hipa-close-btn {
  background: #0778b6;
  color: white;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.hipa-close-btn:hover {
  background: #065a8a;
  transform: scale(1.1);
}

/* 모바일용 컨트롤 */
.hipa-popup-mobile-controls {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  padding: 20px;
  order: 3;
}

/* 팝업 컨테이너 */
.hipa-popup-container {
  background: rgba(42, 42, 42, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 1024px;
  width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 10001;
  order: 2;
}

/* 메인 컨텐츠 영역 */
.hipa-popup-main {
  flex: 1;
  display: flex;
  padding: 20px;
  gap: 20px;
  align-items: stretch;
  justify-content: center;
}

/* 왼쪽 캐러셀 영역 */
.hipa-carousel-section {
  flex: 2;
  display: flex;
  flex-direction: column;
}

.hipa-carousel-container {
  flex: 1;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.hipa-carousel-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  min-height: 350px;
}

.hipa-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 이미지 오버레이 */
.hipa-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.1) 50%,
    rgba(0, 0, 0, 0.3) 100%
  );
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hipa-overlay-top {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

.hipa-overlay-left .hipa-leaf-text {
  color: white;
  font-size: 18px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.4);
  padding: 12px 20px;
  border-radius: 25px;
  backdrop-filter: blur(10px);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* 캐러셀 네비게이션 */
.hipa-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.hipa-carousel-arrow:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hipa-arrow-icon {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hipa-arrow-left {
  left: 30px;
}

.hipa-arrow-right {
  right: 30px;
}

/* 캐러셀 하단 컨트롤 */
.hipa-carousel-controls {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(0, 0, 0, 0.6);
  padding: 15px 25px;
  border-radius: 30px;
  backdrop-filter: blur(10px);
}

.hipa-dots {
  display: flex;
  gap: 10px;
}

.hipa-dot {
  width: 14px;
  height: 14px;
  border-radius: 0;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hipa-dot.active {
  background: #0778b6;
  transform: scale(1.3);
}

.hipa-play-pause {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.hipa-play-pause:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* 오른쪽 패널 영역 */
.hipa-panels-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hipa-panel-link {
  text-decoration: none;
  color: inherit;
  flex: 1;
  display: flex;
  width: 100%;
}

.hipa-panel {
  flex: 1;
  border-radius: 15px;
  padding: 20px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.hipa-panel:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.hipa-panel-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.1;
  transition: opacity 0.3s ease;
}

.hipa-panel:hover .hipa-panel-bg {
  opacity: 0.2;
}

.hipa-panel-platform {
  background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
  color: #e2e8f0;
}

.hipa-panel-platform .hipa-panel-bg {
  background: radial-gradient(
      circle at 20% 80%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(74, 85, 104, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 40%,
      rgba(45, 55, 72, 0.2) 0%,
      transparent 50%
    );
}

.hipa-panel-support {
  background: linear-gradient(135deg, #553c9a 0%, #44337a 100%);
  color: #e9d8fd;
}

.hipa-panel-support .hipa-panel-bg {
  background: radial-gradient(
      circle at 30% 70%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 30%,
      rgba(85, 60, 154, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(68, 51, 122, 0.2) 0%,
      transparent 50%
    );
}

.hipa-panel-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.hipa-panel-title {
  color: white;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.3;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hipa-panel-description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.6;
  flex: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hipa-panel-arrow {
  position: absolute;
  bottom: 20px;
  right: 20px;
  font-size: 24px;
  font-weight: bold;
  color: white;
  opacity: 0.8;
  transition: all 0.3s ease;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hipa-panel:hover .hipa-panel-arrow {
  opacity: 1;
  transform: translateX(5px);
}

/* 하단 팝업 존 */
.hipa-popup-zone {
  width: 100%;
  background: rgba(0, 0, 0, 0.9);
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(10px);
}

.hipa-zone-text {
  color: white;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 2px;
}

.hipa-zone-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hipa-zone-dots {
  display: flex;
  gap: 8px;
}

.hipa-zone-dot {
  width: 10px;
  height: 10px;
  border-radius: 0;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hipa-zone-dot.active {
  background: #0778b6;
  transform: scale(1.2);
}

.hipa-zone-play-pause {
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.hipa-zone-play-pause:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* 반응형 디자인 */
@media (max-width: 1200px) {
  .hipa-popup-overlay {
    justify-content: center;
    align-items: center;
  }

  .hipa-popup-container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
  }

  .hipa-popup-main {
    flex-direction: column;
    padding: 15px;
    gap: 15px;
    width: 100%;
  }

  .hipa-carousel-section {
    flex: none;
    width: 100%;
  }

  .hipa-carousel-image {
    min-height: 250px;
  }

  .hipa-panels-section {
    flex: none;
    flex-direction: row;
    width: 100%;
    justify-content: center;
    gap: 15px;
  }

  .hipa-panel {
    flex: 1;
    min-width: 0;
  }
}

@media (max-width: 768px) {
  /* 모바일에서 로고를 컨테이너 위에 표시 */
  .hipa-popup-logo-top {
    display: flex;
  }

  /* 데스크톱 헤더 숨기기 */
  .desktop-only {
    display: none;
  }

  /* 모바일 컨트롤 표시 */
  .hipa-popup-mobile-controls {
    display: flex;
  }

  .hipa-popup-container {
    max-width: 90%;
    margin: 0 auto;
  }

  .hipa-popup-main {
    padding: 10px;
    justify-content: center;
    align-items: center;
  }

  .hipa-carousel-section {
    width: 100%;
    max-width: 100%;
  }

  .hipa-panels-section {
    flex-direction: column;
    width: 100%;
    align-items: center;
    gap: 15px;
  }

  .hipa-panel {
    flex: 1;
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
  }

  .hipa-image-overlay {
    padding: 15px;
  }

  .hipa-overlay-left .hipa-leaf-text {
    font-size: 16px;
    padding: 10px 16px;
  }

  .hipa-panel-title {
    font-size: 18px;
  }

  .hipa-carousel-arrow {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }

  .hipa-arrow-left {
    left: 15px;
  }

  .hipa-arrow-right {
    right: 15px;
  }

  .hipa-popup-zone {
    padding: 15px 20px;
  }

  .hipa-zone-text {
    font-size: 14px;
  }
}
