/* Home Specific Styles */
.hero-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  padding: 40px 0;
  min-height: 600px;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 8vw, 4.4rem);
  line-height: 1.1;
  color: var(--primary);
  margin: 16px 0;
  font-weight: 900;
}

.hero-text {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 60ch;
  margin-bottom: 32px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
}

.stat-item strong {
  display: block;
  font-size: 1.8rem;
  color: var(--primary);
}

.stat-item span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-card-featured {
  background: var(--primary);
  color: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  max-width: 400px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.hero-card-featured::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(200, 144, 48, 0.2), transparent 70%);
}

.badge-featured {
  background: var(--accent);
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 800;
  display: inline-block;
  margin-bottom: 16px;
}

.home-section {
  margin-top: 80px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
}

.immersive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.immersive-card {
  padding: 40px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  transition: var(--transition);
}

.immersive-card.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.immersive-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.icon-box {
  font-size: 2.5rem;
  margin-bottom: 24px;
}

@media (min-width: 900px) {
  .hero-section {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

@media (max-width: 900px) {
  .hero-section {
    gap: 28px;
    min-height: auto;
    padding: 18px 0 8px;
  }

  .hero-content {
    text-align: right;
  }

  .hero-text {
    font-size: 1.02rem;
    margin-bottom: 22px;
  }

  .hero-actions,
  .section-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 26px;
  }

  .stat-item {
    min-width: calc(50% - 8px);
  }

  .hero-card-featured {
    max-width: 100%;
    padding: 24px 20px;
    border-radius: 24px;
  }

  .home-section {
    margin-top: 46px;
  }

  .immersive-card {
    padding: 28px 18px;
  }
}

@media (max-width: 560px) {
  .hero-content h1 {
    font-size: clamp(1.85rem, 10vw, 2.8rem);
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .stat-item {
    min-width: 0;
  }
}

.home-reels-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 420px);
  gap: 28px;
  align-items: center;
  padding: 24px 0 8px;
}

body.theme-reels .home-reels-shell {
  gap: 36px;
  align-items: stretch;
}

body.theme-reels .home-reels-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 0;
}

body.theme-reels .home-reels-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #aaf8ef;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.home-reels-copy h1 {
  font-size: clamp(2.2rem, 6vw, 4.3rem);
  line-height: 1.04;
  margin: 10px 0 18px;
}

body.theme-reels .home-reels-copy h1 {
  margin: 18px 0 16px;
  color: #ffffff;
  text-shadow: 0 10px 36px rgba(0, 0, 0, 0.34);
}

body.theme-reels .home-reels-copy .hero-text {
  max-width: 62ch;
  color: #e6f0f1;
  font-size: 1.05rem;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.24);
}

.home-reels-stats {
  gap: 18px;
  margin-top: 26px;
}

body.theme-reels .home-reels-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.theme-reels .home-reels-stats .stat-item {
  min-width: 0;
  padding: 16px 16px 14px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(18, 26, 36, 0.9), rgba(10, 15, 22, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

body.theme-reels .home-reels-stats .stat-item strong {
  display: block;
  color: #ffffff;
  font-size: 1.02rem;
  margin-bottom: 6px;
}

body.theme-reels .home-reels-stats .stat-item span {
  color: #dce6e7;
  font-size: 0.9rem;
}

.home-reels-stage {
  display: flex;
  justify-content: center;
}

.home-reels-phone {
  width: min(100%, 390px);
  padding: 14px;
  border-radius: 32px;
  background: rgba(14, 17, 24, 0.96);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.theme-reels .home-reels-phone {
  position: relative;
  background:
    linear-gradient(180deg, rgba(9, 12, 18, 0.98), rgba(16, 21, 30, 0.96));
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 36px 100px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.theme-reels .home-reels-header,
body.theme-reels .home-reels-header strong,
body.theme-reels .home-reels-header span,
body.theme-reels .home-reels-header small,
body.theme-reels .home-reels-card-title,
body.theme-reels .home-reels-card p,
body.theme-reels .home-reels-copy strong,
body.theme-reels .home-reels-copy p,
body.theme-reels .reels-empty-card strong,
body.theme-reels .reels-empty-card p {
  color: #f3f8f8;
}

body.theme-reels .home-reels-card p,
body.theme-reels .reels-empty-card p {
  color: #dbe5e6;
}

body.theme-reels .home-reel-copy,
body.theme-reels .home-reel-copy p,
body.theme-reels .home-reel-copy small,
body.theme-reels .home-reel-copy .meta-chip {
  color: #f1f8f9 !important;
}

body.theme-reels .home-reel-copy .meta-chip {
  background: rgba(0, 0, 0, 0.42);
  border-color: rgba(255, 255, 255, 0.18);
}

body.theme-reels .home-reel-actions .button,
body.theme-reels .home-reel-actions button {
  text-shadow: none;
  font-weight: 800;
}

body.theme-reels .home-reels-phone::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 108px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  z-index: 2;
}

.home-reels-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #eef4f3;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 4px 6px 14px;
}

body.theme-reels .home-reels-header {
  padding: 16px 10px 16px;
  color: #ffffff;
}

body.theme-reels .home-reels-header span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #d8e4e7;
  font-size: 0.8rem;
}

.home-reels-feed {
  height: min(76vh, 780px);
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  border-radius: 26px;
}

.home-reels-feed::-webkit-scrollbar {
  width: 0;
}

.home-reel-card {
  position: relative;
  min-height: min(76vh, 780px);
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(7, 8, 11, 0.2), rgba(7, 8, 11, 0.84)), #111318;
  scroll-snap-align: start;
  margin-bottom: 14px;
}

body.theme-reels .home-reel-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.24);
}

body.theme-reels .home-reel-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(180deg, rgba(4, 7, 10, 0), rgba(4, 7, 10, 0.78));
  pointer-events: none;
}

.home-reel-card:last-child {
  margin-bottom: 0;
}

.home-reel-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0a0c11;
}

.home-reel-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 18px;
  background: linear-gradient(180deg, rgba(10, 12, 17, 0.06), rgba(10, 12, 17, 0.64) 52%, rgba(10, 12, 17, 0.94));
}

body.theme-reels .home-reel-overlay {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(6, 8, 12, 0.04), rgba(6, 8, 12, 0.58) 50%, rgba(6, 8, 12, 0.94)),
    linear-gradient(90deg, rgba(6, 8, 12, 0.12), rgba(6, 8, 12, 0) 42%, rgba(6, 8, 12, 0.34));
}

.home-reel-copy {
  align-self: flex-end;
  color: #f5f9f9;
  max-width: min(72%, 250px);
}

.home-reel-copy h3 {
  margin: 0 0 6px;
  font-size: 1.14rem;
}

body.theme-reels .home-reel-copy h3 {
  font-size: 1.24rem;
  color: #ffffff;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.36);
}

.home-reel-copy p,
.home-reel-copy small {
  margin: 0;
  color: rgba(245, 249, 249, 0.82);
}

body.theme-reels .home-reel-copy p {
  color: rgba(246, 252, 252, 0.92);
  line-height: 1.7;
}

body.theme-reels .home-reel-copy small {
  display: inline-block;
  margin-bottom: 10px;
  color: #9cf2e8;
  font-weight: 800;
}

.home-reel-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.home-reel-pill {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

body.theme-reels .home-reel-pill {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.home-reel-actions {
  align-self: flex-end;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 132px;
}

.home-reel-actions .button {
  width: 100%;
}

body.theme-reels .home-reel-actions .button {
  min-height: 46px;
  border-radius: 16px;
  font-weight: 800;
}

body.theme-reels .home-reel-actions .button.button-ghost {
  background: rgba(255, 255, 255, 0.08);
}

body.theme-reels .home-classic-strip .catalog-card-new {
  background: rgba(19, 24, 31, 0.88);
}

@media (max-width: 980px) {
  .home-reels-shell {
    grid-template-columns: 1fr;
  }

  .home-reels-stage {
    order: -1;
  }

  body.theme-reels .home-reels-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .home-reels-phone {
    width: 100%;
    padding: 10px;
    border-radius: 24px;
  }

  .home-reels-feed,
  .home-reel-card {
    height: 70vh;
    min-height: 70vh;
    border-radius: 20px;
  }

  .home-reel-overlay {
    padding: 16px 14px;
    gap: 10px;
  }

  .home-reel-copy {
    max-width: 68%;
  }

  .home-reel-actions {
    min-width: 112px;
  }

  body.theme-reels .home-reels-copy .hero-text {
    font-size: 0.98rem;
  }

  body.theme-reels .home-reel-copy {
    max-width: 70%;
  }

  body.theme-reels .home-reel-actions .button {
    min-height: 42px;
    font-size: 0.88rem;
  }
}
