﻿/* app-cards.css - App Cards, Featured Banner, Sections & Horizontal Scroll */

/* =======================================================================
   12. APP CARDS
   ======================================================================= */
.app-card {
  display: flex;
  gap: 0.75rem;
  padding: 0.875rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.25s var(--spring);
}

.app-card:hover {
  background: hsl(var(--accent));
  transform: translateY(-1px);
}

.app-card-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  background: hsl(var(--muted));
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.app-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-card-info {
  flex: 1;
  min-width: 0;
}

.app-card-info h3 {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.app-card-info .meta {
  font-size: 0.75rem;
  color: hsl(var(--muted-fg));
  margin-top: 0.125rem;
}

.app-card-info .desc {
  font-size: 0.75rem;
  color: hsl(var(--muted-fg));
  margin-top: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =======================================================================
   13. FEATURED BANNER & DOTS
   ======================================================================= */
.featured-banner {
  background: linear-gradient(135deg, hsl(var(--primary) / 0.12), hsl(var(--primary) / 0.04), hsl(var(--accent)));
  border: 1px solid hsl(var(--primary) / 0.15);
  border-radius: 1.25rem;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: center;
  cursor: pointer;
  transition: all 0.4s var(--spring);
  position: relative;
  overflow: hidden;
}

.featured-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 200%;
  background: radial-gradient(circle, hsl(var(--primary) / 0.08), transparent 60%);
  pointer-events: none;
}

.featured-banner:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px hsl(var(--primary) / 0.15);
  border-color: hsl(var(--primary) / 0.25);
}

.featured-banner .app-icon {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 1.5rem;
  background: hsl(var(--muted));
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 16px rgb(0 0 0 / 0.1);
}

.featured-banner .app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-banner .info {
  flex: 1;
}

.featured-banner .info h2 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.featured-banner .info p {
  font-size: 0.875rem;
  color: hsl(var(--muted-fg));
}

/* ---- Play Store Carousel Cards ---- */
.app-carousel-wrapper {
  width: 100%;
  overflow: hidden;
}

.app-carousel {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding: 0.25rem 0.125rem 0.5rem;
  -webkit-overflow-scrolling: touch;
}

.app-carousel::-webkit-scrollbar {
  display: none;
}

.play-card {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  flex-shrink: 0;
  width: 130px;
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s var(--spring);
}

.play-card:hover {
  transform: translateY(-2px);
}

.play-card-icon {
  width: 130px;
  height: 130px;
  border-radius: 1rem;
  background: hsl(var(--muted));
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  border: 1px solid hsl(var(--border) / 0.5);
  flex-shrink: 0;
  transition: box-shadow 0.2s;
}

.play-card:hover .play-card-icon {
  box-shadow: var(--shadow-md);
}

.play-card-icon img,
.play-card-icon svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.play-card-name {
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: hsl(var(--fg));
}

.play-card-meta {
  font-size: 0.75rem;
  color: hsl(var(--muted-fg));
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

/* ---- Featured Section Dots ---- */
.featured-section {
  margin-bottom: 1.5rem;
}

.featured-dots {
  display: flex;
  justify-content: center;
  gap: 0.375rem;
  margin-top: 0.75rem;
}

.featured-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: hsl(var(--border));
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s var(--spring);
}

.featured-dot.active {
  width: 18px;
  border-radius: 3px;
  background: hsl(var(--primary));
}

/* =======================================================================
   14. SECTIONS & HORIZONTAL SCROLL
   ======================================================================= */
.section {
  margin-bottom: 2rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding: 0 0.125rem;
}

.section-header h2 {
  font-size: 1.0625rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.01em;
  position: relative;
  padding-left: 0.75rem;
}

.section-header h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 1em;
  background: linear-gradient(to bottom, hsl(var(--primary)), hsl(152 76% 55%));
  border-radius: 9999px;
}

.section-header .see-all {
  font-size: 0.8125rem;
  font-weight: 600;
  color: hsl(var(--primary));
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.section-header .see-all:hover {
  text-decoration: underline;
}

/* ---- Horizontal Scroll ---- */
.scroll-row {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding: 0.25rem 0;
}

.scroll-row::-webkit-scrollbar {
  display: none;
}

.scroll-row>* {
  scroll-snap-align: start;
  flex-shrink: 0;
}

