:root {
  /* 공통 변수 */
  --blue-4: rgb(213, 239, 255);
  --blue-6: #acd8fc;
  --banner-purple: #5e5cff;
  --banner-green: #218358;
  --banner-blue: #0d74ce;
  --banner-red: #ff0000;
  --banner-yellow: #ffebb3;
  --banner-orange: #ffd700;
  --banner-brown: #8b4513;
  --green-main: #2e7d32;
  --green-light: #a5d6a7;
  --green-bg: #e8f5e9;

  --yellow-bg: #fff8dd;
  --yellow-light: #ffebb3;
  --yellow-main: #deac17;
  --brown-text: #8b4513;

  --expo-theme-shadows-xs: 0px 1px 3px 0px rgba(0, 0, 0, 0.024),
    0px 1px 2px 0px rgba(0, 0, 0, 0.05);
}

/* 모바일 스타일 */
.custom-padding-sm {
  padding: 0px !important;
}

@media (max-width: 991px) {
  .custom-padding-sm {
    padding-left: 0.6rem !important;
    padding-right: 0.6rem !important;
  }
}

.banner-color-purple {
  color: var(--banner-purple);
  background-color: #eef0ff;
  border: 1px solid #bcbdff;
}
.banner-color-green {
  color: var(--banner-green);
  background-color: #f4fbf6;
  border: 1px solid #8eceaa;
}
.banner-color-blue {
  color: var(--banner-blue);
  background-color: #e6f4fe;
  border: 1px solid #acd8fc;
}
.banner-color-red {
  color: var(--banner-red);
  background-color: #ffb3b3;
  border: 1px solid #ff8080;
}
.banner-color-yellow {
  color: var(--brown-text);
  background-color: #fff8dd;
  border: 1px solid #ffebb3;
}
.banner-color-orange {
  color: var(--banner-orange);
  background-color: #ffd700;
  border: 1px solid #ffd700;
}
.banner-color-brown {
  color: var(--banner-brown);
  background-color: #f4f4f4;
  border: 1px solid #d9d9d9;
}

.main-product {
  border-radius: 12px;
  padding: 20px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  flex-wrap: nowrap; /* 줄바꿈 방지 */
}

.main-product-left {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 1; /* 필요시 줄어들 수 있음 */
  min-width: 0; /* flexbox 내부에서 올바르게 축소되도록 함 */
}

.main-product-content {
  white-space: nowrap; /* 텍스트 줄바꿈 방지 */
  overflow: hidden; /* 내용이 넘칠 경우 숨김 */
  text-overflow: ellipsis; /* 넘치는 텍스트는 말줄임표로 표시 */
}

.main-product-right {
  display: flex;
  align-items: center;
  flex-shrink: 0; /* 버튼 영역은 축소되지 않도록 설정 */
  margin-left: 10px; /* 왼쪽 콘텐츠와의 간격 */
}

.main-product-left > .icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-purple {
  background-color: var(--banner-purple);
  color: white;
}

.icon-green {
  background-color: var(--banner-green);
  color: white;
}

.icon-blue {
  background-color: var(--banner-blue);
  color: white;
}

.icon-arrow {
  width: 16px;
  height: 16px;
}

.main-product-right {
  display: flex;
  align-items: center;
}

.btn-learn-more {
  border: none;
  padding: 6px 13px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 500;
}

.btn-learn-more-purple {
  background-color: var(--banner-purple);
  color: white;
}

.btn-learn-more-green {
  background-color: var(--banner-green);
  color: white;
}

.btn-learn-more-blue {
  background-color: var(--banner-blue);
  color: white;
}

.btn-learn-more-red {
  background-color: var(--banner-red);
  color: white;
}

.btn-learn-more-yellow {
  background-color: var(--banner-yellow);
  color: white;
}

.btn-learn-more-orange {
  background-color: var(--banner-orange);
  color: white;
}

.btn-learn-more-brown {
  background-color: var(--banner-brown);
  color: white;
}

/* 공통 배너 스타일 */
.banner-base {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  padding: 24px;
  width: 100%;
  box-shadow: var(--expo-theme-shadows-xs);
  min-height: 200px;
}

.banner-notice {
  background-color: #f8f9fa;
  background-image: url("https://docs.expo.dev/static/images/home/QuickStartPattern.svg");
  background-blend-mode: multiply;
  border: 1px solid #dee2e6;
  min-height: auto;
  z-index: 0;
}

/* 공통 버튼 스타일 */
.btn-base {
  position: absolute;
  bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 26px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
  z-index: 10;
}

.btn-base:hover {
  color: white;
}

/* 튜토리얼 배너 스타일 */
.banner-container {
  background-color: var(--blue-4);
  background-image: url("/assets/images/svg/blue_pattern.svg");
  background-blend-mode: multiply;
  border: 1px solid var(--blue-6);
  min-height: 250px;
  z-index: 0;
}

.banner-notice {
  background-color: #f0f0f3;
  background-image: url("/assets/images/svg/gray_pattern.svg");
  background-blend-mode: multiply;
  border: 1px solid #d9d9e0;
  min-height: auto;
  z-index: 0;
}

.gradient-overlay {
  position: absolute;
  inset: 0; /* top, right, bottom, left */
  background-image: linear-gradient(
    rgb(230, 244, 254) 15%,
    rgba(32, 29, 82, 0)
  );
  border-radius: 10px;
  z-index: 1;
  pointer-events: none; /* 마우스 이벤트가 투과되도록 설정 */
}

.banner-notice-gradient-overlay {
  position: absolute;
  inset: 0; /* top, right, bottom, left */
  background-image: linear-gradient(
    rgb(248, 249, 250) 15%,
    rgba(248, 249, 250, 0)
  );
  border-radius: 10px;
  z-index: 1;
  pointer-events: none; /* 마우스 이벤트가 투과되도록 설정 */
}

/* 공지사항 카드 스타일 */
.banner-notice .card {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
}

.banner-notice .list-group-item {
  border-left: none;
  border-right: none;
  padding-left: 1rem;
  padding-right: 1rem;
  transition: background-color 0.2s;
}

.banner-notice .list-group-item:first-child {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.banner-notice .list-group-item:last-child {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  border-bottom: none;
}

.banner-notice .list-group-item:hover {
  background-color: rgba(248, 249, 250, 0.8);
}

.banner-notice .list-group-item-action {
  color: #495057;
}

.content-wrapper {
  position: relative;
  z-index: 10;
}

.banner-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  color: rgb(9, 49, 89);
  margin-bottom: 14px;
}

.start-btn {
  position: absolute;
  bottom: 28px;
  background-color: var(--banner-blue);
  color: white;
  border: 1px solid var(--banner-blue);
  box-shadow: var(--expo-theme-shadows-xs);
  white-space: nowrap;
  z-index: 10;
}

.start-btn:hover {
  opacity: 0.8;
}

.device-images {
  position: absolute;
  bottom: 0;
  right: 0;
  max-width: 60%;
  z-index: 1;
}

/* FAQ 배너 스타일 */
.faq-banner {
  background-color: var(--green-bg);
  display: flex;
  max-width: 800px;
}

.faq-content {
  width: 100%;
  position: relative;
  z-index: 2;
}

.faq-title {
  color: var(--green-main);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.faq-desc {
  color: #4d4d4d;
  font-size: 16px;
  margin-bottom: 16px;
}

.faq-btn {
  background-color: var(--green-main);
  color: white;
  border: none;
}

.faq-btn:hover {
  background-color: #1b5e20;
}

.faq-icons {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  z-index: 1;
}

/* 공통 아이콘 스타일 */
.icon-circle {
  width: 70px;
  height: 70px;
  background-color: var(--green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-main);
}

.question-icon {
  font-size: 36px;
  margin-right: -15px;
}

.check-icon {
  font-size: 28px;
}

/* 반응형 스타일 */
@media (max-width: 768px) {
  .banner-title {
    font-size: 22px;
  }

  .banner-container {
    min-height: 200px;
  }

  .banner-content {
    width: 70%;
  }

  .banner-subtitle {
    font-size: 16px;
    margin-bottom: 15px;
  }
}

@media (max-width: 576px) {
  .banner-title {
    font-size: 18px;
    line-height: 1.5263;
  }

  .banner-content {
    width: 100%;
  }

  .banner-subtitle {
    font-size: 14px;
  }

  .banner-image {
    opacity: 0.3;
    right: 0;
    max-width: 60%;
  }

  .device-images {
    bottom: -8px;
  }

  .faq-title {
    font-size: 18px;
    margin-bottom: 6px;
  }

  .faq-desc {
    font-size: 14px;
    margin-bottom: 12px;
  }

  .icon-circle {
    width: 70px;
    height: 70px;
  }

  .question-icon {
    font-size: 30px;
    margin-right: -10px;
  }

  .check-icon {
    font-size: 24px;
  }

  .btn-base {
    bottom: 25px;
    left: 16px;
  }

  .faq-icons {
    bottom: 20px;
    right: 16px;
  }

  .banner-notice .list-group-item {
    padding: 0.5rem 0.75rem;
  }
}

/* 기본 배너 구조 */
.banner {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  padding: 24px;
  width: 100%;
  max-width: 800px;
  box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.024),
    0px 1px 2px 0px rgba(0, 0, 0, 0.05);
  margin: 20px auto;
  min-height: 160px;
}

/* 콘텐츠 영역 */
.banner-content {
  width: 100%;
  min-height: 114px;
  position: relative;
  z-index: 2;
}

/* 제목 */
.banner-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

/* 설명 */
.banner-desc {
  font-size: 16px;
  margin-bottom: 16px;
}

/* 버튼 */
.banner-btn {
  position: absolute;
  bottom: 23px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  padding: 3px 16px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
  z-index: 10;
  white-space: nowrap;
}

/* 아이콘 영역 */
.banner-icon {
  position: absolute;
  bottom: 4px;
  right: 10px;
  z-index: 1;
  display: flex;
  align-items: center;
}

/* 이미지 아이콘 */
.banner-icon img {
  max-width: 100%;
  max-height: 100%;
}

/* 원형 아이콘 */
.icon-circle {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 이미지 */
.banner-img {
  position: absolute;
  bottom: 0;
  right: 0;
  max-width: 60%;
  z-index: 1;
}

/* 그라데이션 오버레이 */
.banner-overlay {
  position: absolute;
  inset: 0; /* top, right, bottom, left */
  border-radius: 10px;
  z-index: 1;
  pointer-events: none;
}

/* 아이콘 크기 */
.icon-lg {
  width: 80px;
  height: 80px;
}

.icon-md {
  width: 60px;
  height: 60px;
}

.icon-sm {
  width: 50px;
  height: 50px;
}

/* 배경색 */
.bg-blue-light {
  background-color: rgb(213, 239, 255);
}

.bg-green-light {
  background-color: #e8f5e9;
}

.bg-yellow-light {
  background-color: #fff8dd;
}

.bg-blue-gradient {
  background-image: linear-gradient(
    rgb(230, 244, 254) 15%,
    rgba(32, 29, 82, 0)
  );
}

.bg-tutorial-pattern {
  background-image: url("https://docs.expo.dev/static/images/home/TutorialPattern.svg");
  background-blend-mode: multiply;
}

/* 테두리 색상 */
.border-blue {
  border: 1px solid #acd8fc;
}

.border-green {
  border: 1px solid #c8e6c9;
}

.border-yellow {
  border: 1px solid #ffebb3;
}

/* 텍스트 색상 */
.text-blue-dark {
  color: rgb(9, 49, 89);
}

.text-green-dark {
  color: #2e7d32;
}

.text-brown {
  color: #8b4513;
}

.text-gray {
  color: #4d4d4d;
}

/* 버튼 배경색 */
.btn-blue {
  background-color: #0d6efd;
  border: 1px solid #0d6efd;
  color: white;
}

.btn-blue:hover {
  background-color: #0b5ed7;
  color: white;
}

.btn-green {
  background-color: #2e7d32;
  border: 1px solid #2e7d32;
  color: white;
}

.btn-green:hover {
  background-color: #1b5e20;
  color: white;
}

.btn-gold {
  background-color: #b8860b;
  border: 1px solid #b8860b;
  color: white;
}

.btn-gold:hover {
  background-color: #8b6914;
  color: white;
}

/* 아이콘 배경색 */
.icon-bg-green {
  background-color: #a5d6a7;
}

.icon-bg-yellow {
  background-color: #ffebb3;
}

/* 아이콘 색상 */
.icon-color-green {
  color: #2e7d32;
}

.icon-color-gold {
  color: #b8860b;
}

/* 기타 유틸리티 */
.overlap-right {
  margin-right: -15px;
}

/* 반응형 */
@media (max-width: 576px) {
  .banner {
    padding: 16px;
    min-height: 140px;
  }

  .banner-title {
    font-size: 18px;
    margin-bottom: 6px;
  }

  .banner-desc {
    font-size: 15px;
    margin-bottom: 12px;
  }

  .banner-btn {
    bottom: 25px;
    left: 16px;
    font-size: 13px;
  }

  .icon-lg {
    width: 60px;
    height: 60px;
  }

  .icon-md {
    width: 50px;
    height: 50px;
  }

  .icon-sm {
    width: 40px;
    height: 40px;
  }
}

/* 토글 배너 스타일 */
.toggle-banner {
  border-radius: 12px;
  padding: 20px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  margin-bottom: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-wrap: nowrap;
}

.toggle-banner:hover {
  filter: brightness(0.98);
}

.toggle-banner-left {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 1;
  min-width: 0;
}

.toggle-banner-content {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toggle-banner-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: 10px;
}

/* 버튼 스타일 */
.btn-learn-more {
  border: none;
  padding: 6px 13px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
}

/* 상세 정보 패널 */
.detail-panel {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 0 0 12px 12px;
  padding: 15px 20px;
  margin-top: -5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  display: none;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-top: none;
}

.detail-panel.active {
  display: block;
}

.status-link {
  display: flex;
  justify-content: space-between;
  width: 100%;
  text-decoration: none;
  color: inherit;
  padding: 8px 0;
}

.status-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.status-item:last-child {
  border-bottom: none;
}

.status-item:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.status-label {
  font-weight: 500;
  color: #555;
}

.status-value {
  font-weight: 600;
}

/* 모바일 반응형 스타일 */
@media (max-width: 768px) {
  .toggle-banner {
    padding: 12px 15px;
  }

  .toggle-banner-content {
    font-size: 14px;
  }

  .btn-learn-more {
    padding: 4px 10px;
    font-size: 12px;
  }

  .detail-panel {
    padding: 12px 15px;
  }

  .main-product {
    flex-direction: row; /* 가로 방향 유지 (column에서 row로 변경) */
    padding: 15px;
    align-items: center; /* 중앙 정렬 유지 */
  }

  .main-product-left > .icon {
    width: 36px; /* 아이콘 크기 축소 */
    height: 36px;
  }

  .main-product-content {
    font-size: 14px; /* 폰트 크기 축소 */
  }

  .status-label {
    font-size: 14px;
  }

  .status-value {
    font-size: 14px;
  }
}
