/* Home page enhancements built on base.css */

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 16px;
  background: var(--color-primary);
  color: #fff;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: transform var(--dur) var(--easing-standard);
}
.skip-link:focus { top: 12px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(180%) blur(8px);
  box-shadow: var(--shadow-xs);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand__link { font-weight: 700; font-size: 1.125rem; color: var(--color-text); letter-spacing: 0.2px; }

/* Nav */
.nav-toggle {
  display: inline-flex;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}
.nav-toggle__bar { width: 20px; height: 2px; background: var(--color-text); margin: 2px 0; border-radius: 2px; display: block; }

.primary-nav { position: relative; }
.nav-list { display: flex; gap: var(--space-24); align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-list a { color: var(--color-text); font-weight: 600; }

@media (max-width: 980px) {
  .nav-list { position: absolute; right: 0; top: calc(100% + 12px); background: var(--color-surface); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 12px; display: none; flex-direction: column; min-width: 220px; }
  .primary-nav.open .nav-list { display: flex; }
}
@media (min-width: 981px) {
  .nav-toggle { display: none; }
}

/* Hero */
.hero { padding: var(--space-40) 0 var(--space-56); }
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-32); align-items: center; }
.hero__content p { margin-block-end: var(--space-24); }
.hero__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.hero__cta { display: flex; gap: var(--space-12); flex-wrap: wrap; }
.hero__search { display: flex; gap: var(--space-12); margin-bottom: var(--space-16); }
.hero__search input { flex: 1; }

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

/* Sections generic */
.section { padding: var(--space-56) 0; }
.section--alt { background: var(--color-surface-alt); }
.section__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-32); align-items: center; }
.section__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.section__content .cta-row { margin-top: var(--space-12); display: flex; gap: var(--space-12); flex-wrap: wrap; }

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

/* Feature blocks */
.section--feature { background: linear-gradient(180deg, #fff, var(--gray-50)); }
.feature__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-32); align-items: center; }
.feature__grid--reverse { grid-template-columns: 0.9fr 1.1fr; }
.feature__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }

@media (max-width: 900px) {
  .feature__grid, .feature__grid--reverse { grid-template-columns: 1fr; }
}

/* Pills */
.pill-row { display: flex; gap: var(--space-8); flex-wrap: wrap; margin-top: var(--space-8); }
.pill { background: var(--color-primary-weak); color: var(--color-primary); padding: 6px 10px; border-radius: var(--radius-round); font-size: var(--fs-sm); }

/* Account */
.account { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: var(--space-32); align-items: start; }
.account__features { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-12); }
.account__features li { background: var(--color-surface); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: var(--space-16); box-shadow: var(--shadow-xs); }
.account__cta { display: flex; gap: var(--space-12); margin-top: var(--space-12); flex-wrap: wrap; }

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

/* Trending */
.trending__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-16); margin-top: var(--space-16); }
.trend-card { position: relative; min-height: 120px; display: grid; align-content: center; gap: 8px; }
.trend-card__chip { position: absolute; top: 12px; left: 12px; background: var(--color-primary-weak); color: var(--color-primary); border-radius: var(--radius-round); padding: 4px 10px; font-size: var(--fs-sm); }
.trending__media img { border-radius: var(--radius-lg); margin-top: var(--space-24); }

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

/* Palette */
.palette { display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: center; gap: var(--space-32); }
.swatches { list-style: none; display: flex; gap: var(--space-12); padding: 0; margin: var(--space-12) 0 0; }
.swatch { width: 48px; height: 48px; border-radius: var(--radius-md); border: 1px solid var(--gray-200); box-shadow: var(--shadow-xs); }
.swatch--bg { background: var(--color-background); }
.swatch--primary { background: var(--color-primary); }
.swatch--surface { background: var(--color-surface); }
.swatch--beige { background: var(--color-surface-alt); }

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

/* Favorites */
.favorites { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-32); align-items: center; }
.favorites__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.list-checked { list-style: none; padding: 0; margin: 0 0 var(--space-16); }
.list-checked li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.list-checked li::before { content: "✔"; position: absolute; left: 0; color: var(--color-success); }

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

/* Final CTA */
.cta-final { padding: var(--space-56) 0; background: linear-gradient(180deg, var(--gray-50), #fff); }
.cta-final__inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--space-32); align-items: center; }
.cta-final__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.cta-final__content .cta-row { display: flex; gap: var(--space-12); flex-wrap: wrap; margin-top: var(--space-12); }

@media (max-width: 900px) {
  .cta-final__inner { grid-template-columns: 1fr; }
}

/* Footer */
.site-footer { background: var(--color-surface); border-top: 1px solid var(--gray-200); margin-top: var(--space-56); position: relative; }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.2fr; gap: var(--space-32); padding: var(--space-40) 0; }
.footer__title { font-size: var(--fs-md); margin-bottom: var(--space-12); }
.footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.brand__link--footer { font-weight: 700; color: var(--color-text); }
.newsletter { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.newsletter__note { font-size: var(--fs-sm); color: var(--gray-600); margin: 0; grid-column: 1 / -1; }
.newsletter__feedback { margin-top: 6px; font-size: var(--fs-sm); grid-column: 1 / -1; }
.footer__bottom { border-top: 1px solid var(--gray-200); padding: 12px 0 24px; font-size: var(--fs-sm); color: var(--gray-600); }

@media (max-width: 980px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* Cookie consent */
.cookie-consent { position: sticky; bottom: 0; background: rgba(255,255,255,0.98); border-top: 1px solid var(--gray-200); box-shadow: var(--shadow-sm); padding: 12px 0; }
.cookie-consent[hidden] { display: none !important; }
.cookie-consent__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-16); }
.cookie-consent__text { margin: 0; color: var(--gray-700); }
.cookie-consent__actions { display: flex; gap: var(--space-12); flex-wrap: wrap; }

@media (max-width: 780px) {
  .cookie-consent__inner { flex-direction: column; align-items: stretch; }
  .cookie-consent__actions { justify-content: flex-end; }
}
