/**
 * Topics Tabs CSS
 * BEM naming: .tabs__*
 */

/* Container */
.tabs {
  padding: 16px;
  background: #f5f5f5;
  position: relative;
  z-index: 100;
}

/* Navigation */
.tabs__nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid #e0e0e0;
  border-radius: 999px;
  background: #fff;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 16px;
}

.tabs__slider {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 6px;
  width: 0;
  border-radius: 999px;
  background: #333;
  transition: left 0.3s, width 0.3s;
  pointer-events: none;
  z-index: 0;
}

.tabs__btn {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  padding: 10px 16px;
  border: none;
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  color: #666;
  white-space: nowrap;
  transition: color 0.3s;
}

.tabs__btn.active {
  color: #fff;
}

/* Panels */
.tabs__panel {
  display: none;
}

.tabs__panel.active {
  display: block;
}

/* Ranking Tab Content */
.tabs__ranking {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
}

.tabs__firstview {
  position: relative;
}

.tabs__firstview > img {
  width: 100%;
  height: auto;
  display: block;
}

.tabs__mascot {
  position: absolute;
  bottom: -20px;
  right: 5%;
  width: 80px;
  transform: rotate(10deg);
  z-index: 1;
}

.tabs__mascot img {
  width: 100%;
  height: auto;
}

/* Rules Tab Content */
.tabs__rules {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
}

.tabs__rules-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: #fff;
}

.tabs__rules-logo {
  max-width: 200px;
}

.tabs__rules-logo img {
  width: 100%;
  height: auto;
}

.tabs__rules-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  border: none;
  background: #333;
  color: #fff;
  border-radius: 20px;
  cursor: pointer;
  font-size: 12px;
}

.tabs__rules-about {
  position: relative;
  padding: 40px 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.tabs__rules-title {
  font-size: 24px;
  font-weight: bold;
  text-align: right;
  color: #fff;
  margin: 0 0 8px;
}

.tabs__rules-subtitle {
  display: block;
  text-align: right;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  margin-bottom: 24px;
}

.tabs__rules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.tabs__rules-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
}

.tabs__rules-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.tabs__rules-info {
  padding: 12px;
}

.tabs__rules-card-title {
  font-size: 14px;
  font-weight: bold;
  margin: 0 0 8px;
  line-height: 1.4;
}

.tabs__rules-btn {
  display: inline-block;
  padding: 6px 16px;
  background: #333;
  color: #fff;
  border-radius: 20px;
  font-size: 12px;
}

@media (max-width: 480px) {
  .tabs__rules-grid {
    grid-template-columns: 1fr;
  }
}

/* Award Tab Overrides */
.tabs__panel--award .mod_award_2025 .background,
.tabs__panel--award .mod_award_2025 .decolation_left,
.tabs__panel--award .mod_award_2025 .decolation_right {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s, visibility 0.3s;
}

.tabs__panel--award.active .mod_award_2025 .background,
.tabs__panel--award.active .mod_award_2025 .decolation_left,
.tabs__panel--award.active .mod_award_2025 .decolation_right {
  visibility: visible;
  opacity: 1;
}

.tabs__panel--award .mod_award_2025 .background .bg-overlay-white {
  opacity: 0;
}

.tabs__panel--award .mod_award_2025 .background {
  z-index: -1;
}

.tabs__panel--award .mod_award_2025 .decolation_left,
.tabs__panel--award .mod_award_2025 .decolation_right {
  z-index: 0;
}
