/* ===== Icon Grid ===== */

/* ===== Background Effect ===== */
#app {
  position: relative;
  min-height: 100vh;
}

/* Background blur + dark overlay (visible on sides) */
#app::before {
  content: '';
  position: fixed;
  inset: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.35);
  z-index: 0;
  pointer-events: none;
}

/* Desktop: fixed background for parallax effect */
@media (min-width: 768px) {
  #app {
    background-attachment: fixed;
  }
}

/* White center - full height */
#app > .container {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.9) !important;
  min-height: 100vh !important;
}

.header {
  position: relative;
  z-index: 2;
}
.ad-grid__list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px 8px;
  padding: 12px 0;
  list-style: none;
  margin: 0;
}
@media (max-width: 767px) {
  .ad-grid__list {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px 6px;
  }
}

/* Direct link as grid item - match original template */
.ad-grid__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: transform 0.2s;
  width: 100%;
}
.ad-grid__link:hover {
  transform: translateY(-2px);
}

/* Hover: title turns red */
.ad-grid__link:hover .ad-grid__title {
  color: #e8192c !important;
}

/* Image fills full cell width - matches original ad-grid__img */
.ad-grid__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 24px;
  object-fit: cover;
  display: block;
}

/* Placeholder div when no icon - same size as image */
.ad-grid__placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary-100);
  font-size: clamp(18px, 4vw, 28px);
  font-weight: 700;
  color: var(--color-primary-600);
  line-height: 1;
}

/* Title below icon */
.ad-grid__title {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--color-gray-600);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}
@media (max-width: 767px) {
  .ad-grid__title {
    font-size: 12px;
  }
}

/* ===== Text List ===== */
.text-ad__list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  padding: 12px 0 20px;
}
@media (max-width: 767px) {
  .text-ad__list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.text-ad__link {
  display: block;
  padding: 8px 4px;
  border-radius: 12px 4px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--color-gray-500);
  background-color: var(--color-primary-100);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.text-ad__link:hover {
  background-color: var(--color-primary-200);
  color: #e8192c !important;
  border-color: #e8192c;
}

/* ===== Section Header ===== */
.home__section {
  margin-bottom: 4px;
}

.nav-section-header {
  padding: 12px 4px 0;
}

.nav-section-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a !important;
  margin: 0;
  line-height: 1.5;
}

.nav-section-line {
  height: 3px;
  margin-top: 8px;
  border-radius: 2px;
  width: 100%;
}

.nav-section-line--feature {
  background: linear-gradient(90deg, #ff7a00 0%, #ff9a44 40%, rgba(255, 154, 68, 0.1) 100%);
}

.nav-section-line--game {
  background: linear-gradient(90deg, #00b96b 0%, #52e0a0 40%, rgba(82, 224, 160, 0.1) 100%);
}

/* ===== Recommended Section ===== */
.home__pinned {
  padding-bottom: 8px;
}
