/* [Client] /theme/Weblease-Simple/css/betpromo_layout.css */
/* Version: v2.0.0 (Major) */
/* Date: 2024-12-19 */
/* Author: Web-lease_AI_Assistant */
/* [변경 이력] */
/* - v2.0.0 : 가이드라인 v1.0 완전 준수, 검색 UI 추가, 성능 최적화 */
/* [기능 요약] */
/* 1. 베팅 프로모션 전문 UI/UX 스타일 */
/* 2. 모바일 우선 반응형 디자인 */
/* 3. 리소스 최소화 및 성능 최적화 */

/* === 1. Hero Section & Search === */
.betpromo-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 15px;
  padding: 3rem 2rem;
  margin-bottom: 2rem;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.betpromo-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
}

.betpromo-hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}

.betpromo-hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.brand-highlight {
  color: #ffd700;
  font-size: 2.8rem;
}

.betpromo-hero-desc {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  line-height: 1.6;
}

.betpromo-search-form {
  margin-bottom: 1.5rem;
}

.search-input-group {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-radius: 50px;
  overflow: hidden;
}

.search-input-group input {
  flex: 1;
  border: none;
  padding: 15px 20px;
  font-size: 1rem;
  outline: none;
  background: rgba(255, 255, 255, 0.95);
}

.search-input-group button {
  background: #ff6b6b;
  color: white;
  border: none;
  padding: 15px 25px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.search-input-group button:hover {
  background: #ff5252;
}

.hero-tags {
  font-size: 0.9rem;
  opacity: 0.9;
}

.hero-tags a {
  color: #ffd700;
  margin: 0 5px;
  text-decoration: none;
  font-weight: 500;
}

/* === 2. Live Ticker === */
.betpromo-ticker {
  background: linear-gradient(90deg, #f8f9fa 0%, #e9ecef 100%);
  border: 1px solid #dee2e6;
  border-radius: 50px;
  display: flex;
  align-items: center;
  padding: 8px 20px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.ticker-badge {
  background: #28a745;
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  margin-right: 15px;
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

.ticker-content {
  white-space: nowrap;
  animation: ticker-scroll 40s linear infinite;
}

.ticker-item {
  margin-right: 30px;
  font-size: 14px;
  color: #495057;
}

.ticker-item .highlight {
  color: #dc3545;
  font-weight: 700;
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* === 3. Category Grid === */
.betpromo-categories {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
  margin-bottom: 2.5rem;
  padding: 0 5px;
}

.category-item {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  text-align: center;
  padding: 15px 8px;
  text-decoration: none;
  color: #495057;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.category-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  color: #212529;
  text-decoration: none;
}

.cat-icon {
  font-size: 2rem;
  margin-bottom: 8px;
  transition: transform 0.3s;
}

.category-item:hover .cat-icon {
  transform: scale(1.1);
}

.cat-name {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.cat-count {
  position: absolute;
  top: 5px;
  right: 5px;
  background: #dc3545;
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 8px;
  min-width: 18px;
}

.cat-today {
  position: absolute;
  top: 5px;
  left: 5px;
  background: #28a745;
  color: white;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 6px;
}

/* === 4. Section Styles === */
.betpromo-section {
  margin-bottom: 2.5rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 8px;
  border-bottom: 2px solid #f1f3f4;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
  color: #212529;
}

.section-more {
  font-size: 13px;
  color: #6c757d;
  text-decoration: none;
  font-weight: 500;
}

.section-more:hover {
  color: #495057;
  text-decoration: none;
}

.section-content {
  background: white;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* === 5. Mobile Responsive === */
@media (max-width: 991px) {
  .betpromo-categories {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }

  .betpromo-hero-title {
    font-size: 1.8rem;
  }

  .brand-highlight {
    font-size: 2.2rem;
  }
}

@media (max-width: 767px) {
  .betpromo-hero {
    padding: 2rem 1rem;
  }

  .betpromo-hero-title {
    font-size: 1.6rem;
  }

  .brand-highlight {
    font-size: 2rem;
  }

  .betpromo-categories {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .cat-icon {
    font-size: 1.5rem;
  }

  .cat-name {
    font-size: 0.75rem;
  }

  .search-input-group input {
    font-size: 14px;
    padding: 12px 15px;
  }

  .search-input-group button {
    padding: 12px 20px;
  }
}

@media (max-width: 575px) {
  .betpromo-hero {
    border-radius: 8px;
    padding: 1.5rem 1rem;
  }

  .betpromo-hero-title {
    font-size: 1.4rem;
  }

  .brand-highlight {
    font-size: 1.8rem;
  }

  .ticker-content {
    font-size: 13px;
  }
}

/* === 6. Widget Compatibility === */
.betpromo-section .na-list,
.betpromo-section .na-widget {
  /* 나리야 위젯 기본 스타일 유지 */
}
