/* ============================================
   SalePoet — Base Reset & Layout
   ============================================ */

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-normal);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--surface-page);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul, ol { list-style: none; }

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

::selection {
  background-color: var(--color-coral-soft);
  color: var(--text-primary);
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* ---------- Announcement Bar ---------- */
.announce-bar {
  background: var(--color-primary);
  color: var(--text-inverse);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: 0.03em;
  padding: 10px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.announce-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.announce-bar__highlight {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-coral);
  color: white;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-weight: var(--weight-bold);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--surface-card);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
}

.site-header .container {
  display: flex;
  align-items: center;
  height: 100%;
  gap: var(--space-lg);
}

.logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo__mark {
  width: 38px;
  height: 38px;
  background: var(--color-coral);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-display);
  font-weight: var(--weight-black);
  font-size: 1.25rem;
  line-height: 1;
}

.logo__text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

/* ---------- Search ---------- */
.search-bar {
  flex: 1;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}

.search-bar__input {
  width: 100%;
  height: 44px;
  padding: 0 var(--space-lg) 0 46px;
  background: var(--surface-inset);
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--duration-fast), background var(--duration-fast);
}

.search-bar__input::placeholder {
  color: var(--text-tertiary);
  font-weight: var(--weight-normal);
}

.search-bar__input:focus {
  border-color: var(--color-blue);
  background: var(--surface-card);
}

.search-bar__icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-tertiary);
  pointer-events: none;
}

/* ---------- Header Actions ---------- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.header-action {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  transition: background var(--duration-fast);
}

.header-action:hover {
  background: var(--surface-inset);
}

.header-action svg {
  width: 22px;
  height: 22px;
  color: var(--text-secondary);
  transition: color var(--duration-fast);
}

.header-action:hover svg {
  color: var(--text-primary);
}

.header-action__badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: var(--color-coral);
  color: white;
  font-size: 0.6875rem;
  font-weight: var(--weight-bold);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--surface-card);
}

/* ---------- Category Pills ---------- */
.category-strip {
  padding: var(--space-lg) 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.category-strip::-webkit-scrollbar { display: none; }

.category-strip__inner {
  display: flex;
  gap: var(--space-sm);
  padding: 0 var(--space-xl);
  max-width: var(--container-max);
  margin: 0 auto;
  min-width: max-content;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  background: var(--surface-inset);
  border: 1.5px solid transparent;
  white-space: nowrap;
  transition:
    background var(--duration-fast),
    color var(--duration-fast),
    border-color var(--duration-fast),
    transform var(--duration-fast) var(--ease-bounce);
  cursor: pointer;
}

.cat-pill:hover {
  color: var(--text-primary);
  background: var(--surface-card);
  border-color: var(--border-medium);
  transform: translateY(-1px);
}

.cat-pill.is-active {
  background: var(--color-primary);
  color: var(--text-inverse);
  border-color: var(--color-primary);
}

.cat-pill svg {
  width: 16px;
  height: 16px;
}

/* ---------- Main ---------- */
/*
.main-content {
  padding-bottom: var(--space-4xl);
}
*/

/* ---------- Section ---------- */
.section {
  padding: var(--space-3xl) 0;
}

.section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  gap: var(--space-md);
}

.section__title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.section__title em {
  font-style: italic;
  color: var(--color-coral);
}

.section__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.section__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-blue);
  white-space: nowrap;
}

.section__link:hover {
  color: var(--text-blue);
}

.section__link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--duration-fast);
}

.section__link:hover svg {
  transform: translateX(3px);
}

/* ---------- Scroll Arrows ---------- */
.scroll-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast);
  background: var(--surface-card);
}

.scroll-btn:hover {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--text-inverse);
}

.scroll-btn svg {
  width: 18px;
  height: 18px;
}

/* ---------- Grids ---------- */
.grid { display: grid; gap: var(--space-md); }
.grid--2col { grid-template-columns: 1fr 1fr; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface-dark);
  color: var(--text-inverse);
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.8fr repeat(3, 1fr);
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand__logo {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand__logo-mark {
  width: 32px;
  height: 32px;
  background: var(--color-coral);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--weight-black);
  font-size: 1rem;
}

.footer-brand__desc {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: rgba(255, 255, 255, 0.5);
  max-width: 300px;
  margin-bottom: var(--space-xl);
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}

.footer-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.07);
  transition: background var(--duration-fast), transform var(--duration-fast) var(--ease-bounce);
}

.footer-social__link:hover {
  background: var(--color-coral);
  color: white;
  transform: translateY(-2px);
}

.footer-social__link svg {
  width: 18px;
  height: 18px;
}

.footer-col__title {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: var(--space-lg);
}

.footer-col__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col__list a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--duration-fast);
}

.footer-col__list a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.3);
}

.footer-bottom__links {
  display: flex;
  gap: var(--space-lg);
}

.footer-bottom__links a {
  color: rgba(255, 255, 255, 0.3);
}

.footer-bottom__links a:hover {
  color: rgba(255, 255, 255, 0.7);
}
