/**
 * 모바일 전용 간단 배너 스타일
 */

.mobile-banner-section {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.mobile-banner-container {
  position: relative;
  width: 100%;
  height: 150px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.mobile-banner-slider {
  display: flex;
  /* 너비는 JavaScript에서 동적으로 설정됨 */
  width: 300%; /* 기본값: 3개 배너 */
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.mobile-banner-item {
  /* 너비는 JavaScript에서 동적으로 설정됨 */
  width: 33.333%; /* 기본값: 100% / 3 */
  height: 100%;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 기본 배너 색상 (DB에 이미지가 없을 때만 적용) */
.mobile-banner-item:not([style*='background-image']) {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.mobile-banner-item:not([style*='background-image']):nth-child(2) {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.mobile-banner-item:not([style*='background-image']):nth-child(3) {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.mobile-banner-item:not([style*='background-image']):nth-child(4) {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.mobile-banner-item:not([style*='background-image']):nth-child(5) {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.mobile-banner-item:nth-child(3) {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.mobile-banner-item a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: white;
}

.mobile-banner-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 80%;
  color: inherit; /* 부모에서 설정된 color 상속 */
}

.mobile-banner-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  color: inherit; /* 부모에서 설정된 color 상속 */
}

.mobile-banner-content p {
  font-size: 0.9rem;
  opacity: 0.9;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  color: inherit; /* 부모에서 설정된 color 상속 */
}

.mobile-banner-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.mobile-banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-banner-dot.active {
  background-color: white;
  transform: scale(1.2);
}

/* 터치 제스처 지원을 위한 스타일 */
.mobile-banner-slider {
  touch-action: pan-y;
}

/* 애니메이션 상태 */
.mobile-banner-slider.sliding {
  transition: transform 0.5s ease-in-out;
}

/* 모바일 전용 빠른 구매 CTA 섹션 */
.mobile-cta-section {
  padding: 1rem 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.mobile-cta-section .card {
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mobile-cta-section .card.bg-primary {
  background: linear-gradient(
    135deg,
    var(--theme-primary) 0%,
    var(--theme-primary-hover) 100%
  ) !important;
}

.mobile-cta-section .btn-light {
  border-radius: 8px;
  font-size: 1.1rem;
  padding: 12px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.mobile-cta-section .btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.mobile-cta-section .btn-outline-primary,
.mobile-cta-section .btn-outline-success {
  border-radius: 6px;
  font-size: 0.85rem;
  padding: 8px 12px;
  font-weight: 600;
}

.mobile-cta-section h6 {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.mobile-cta-section .card-body {
  padding: 1rem;
}

@media (max-width: 480px) {
  .mobile-cta-section .btn-light {
    font-size: 1rem;
    padding: 10px 16px;
  }

  .mobile-cta-section h4 {
    font-size: 1.2rem;
  }

  .mobile-cta-section h6 {
    font-size: 0.8rem;
  }
}
