/* /assets/css/styles.css */
:root{
  --bg: #F2F2EF;
  --text: #111827;
  --muted: #6B7280;
  --shadow: 0 12px 30px rgba(17, 24, 39, 0.10);
  --shadow-hover: 0 20px 50px rgba(17, 24, 39, 0.16);
  --radius-xl: 26px;
  --ring: rgba(17,24,39,0.10);
  --pill: rgba(17,24,39,0.06);
  --accent: #A855F7;
  --accent2: #EC4899;
  --accent3: #F59E0B;
  --blue: #0EA5E9;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page{
  width: min(980px, calc(100% - 40px));
  margin: 26px auto 60px;
}

/* Top row */
.topbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.topbar-spacer{
  flex: 1 1 auto;
}

.bookmark-pill{
  margin-left: auto; /* ✅ push further right */
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(17,24,39,0.10);
  color: rgba(17,24,39,0.82);
  border: 1px solid rgba(17,24,39,0.12);
  font-weight: 800;
  font-size: 13px;
  user-select: none;
  white-space: nowrap;
}

.star{
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(17,24,39,0.12);
  box-shadow: 0 10px 16px rgba(17,24,39,0.06);
}

/* Headline */
.headline{
  text-align: center;
  padding: 8px 0 10px;
}

/* ✅ “POPULAR [logo] TRUSTED CREATORS” strip */
.trust-strip{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.45);
  border: 1px solid var(--ring);
  box-shadow: 0 8px 20px rgba(17,24,39,0.05);
  backdrop-filter: blur(10px);
  margin: 0 auto 14px;
  max-width: 100%;
}

.trust-pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 950;
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.25);
  box-shadow: 0 10px 24px rgba(17,24,39,0.08);
  white-space: nowrap;
}

.trust-dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent3);
  box-shadow: 0 0 0 6px rgba(245,158,11,0.18);
}

.of-logo{
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 6px 10px rgba(17,24,39,0.10));
}

.trust-text{
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: rgba(17,24,39,0.72);
  white-space: nowrap;
}

.headline h1{
  margin: 0;
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: -0.02em;
  line-height: 1.22;
  padding-bottom: 10px;
  font-weight: 900;
  overflow: visible;
}

.headline .topline{
  display: block;
  color: rgba(17,24,39,0.86);
  font-weight: 900;
}

.headline .highlight{
  display: inline-flex;
  align-items: baseline;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 950;
  line-height: 1.22;
  padding-bottom: 0.08em;
}

.headline .emojis{
  margin-left: 10px;
  font-size: 0.9em;
  vertical-align: baseline;
  filter: saturate(1.1);
}

/* Cards list (1 per row) */
.stack{
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  justify-items: center;
}

.card{
  width: min(520px, 100%);
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(17,24,39,0.10);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  position: relative;
  isolation: isolate;
  cursor: pointer;
}

.card:focus-visible{
  outline: 3px solid rgba(14,165,233,0.45);
  outline-offset: 3px;
}

.card::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 500px at 20% 0%, rgba(168,85,247,0.08), transparent 55%),
    radial-gradient(900px 420px at 80% 0%, rgba(236,72,153,0.06), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  background: rgba(255,255,255,0.82);
}

.media{
  position: relative;
  z-index: 1;
  padding: 16px 16px 10px;
}

.photo-frame{
  border-radius: 22px;
  overflow: hidden;
  background: #eaeaea;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(17,24,39,0.10);
  box-shadow: 0 14px 26px rgba(17,24,39,0.10);
}

.photo{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 40%;
  transform: scale(1.0);
  transition: transform 220ms ease, filter 220ms ease;
  filter: contrast(1.03) saturate(1.08);
}

.card:hover .photo{
  transform: scale(1.03);
  filter: contrast(1.05) saturate(1.15);
}

.label{
  position: relative;
  z-index: 1;
  padding: 10px 20px 18px;
  text-align: center;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.label small{
  display: block;
  margin-top: 6px;
  font-weight: 700;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0;
}

/* Modal */
.modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(17,24,39,0.46);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 999;
  backdrop-filter: blur(6px);
}

.modal-overlay[data-open="true"]{ display: flex; }

.modal{
  width: min(520px, 100%);
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(17,24,39,0.12);
  border-radius: 22px;
  box-shadow: 0 28px 80px rgba(17,24,39,0.28);
  overflow: hidden;
  transform: translateY(6px);
  animation: modalIn 160ms ease-out forwards;
}

@keyframes modalIn{
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 10px;
}

.modal-title{
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -0.02em;
  margin: 0;
}

.modal-close{
  border: 0;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(17,24,39,0.06);
  font-weight: 900;
  color: rgba(17,24,39,0.75);
  transition: transform 140ms ease, background 140ms ease;
}

.modal-close:hover{
  background: rgba(17,24,39,0.10);
  transform: translateY(-1px);
}

.modal-body{
  padding: 0 18px 16px;
  color: rgba(17,24,39,0.72);
  line-height: 1.5;
  font-weight: 650;
}

.modal-actions{
  padding: 0 18px 18px;
  display: grid;
  gap: 10px;
}

.btn{
  border: 0;
  cursor: pointer;
  border-radius: 14px;
  padding: 14px 14px;
  font-weight: 900;
  font-size: 15px;
  transition: transform 140ms ease, filter 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.btn:active{ transform: translateY(1px); }

.btn-primary{
  background: linear-gradient(180deg, rgba(14,165,233,1), rgba(2,132,199,1));
  color: white;
  box-shadow: 0 14px 26px rgba(2,132,199,0.28);
}

.btn-primary:hover{ filter: brightness(1.02); }

.btn-secondary{
  background: rgba(17,24,39,0.08);
  color: rgba(17,24,39,0.84);
}

.btn-secondary:hover{ background: rgba(17,24,39,0.12); }

/* ✅ Mobile */
@media (max-width: 640px){
  .page{ width: calc(100% - 26px); }

  .topbar{
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .bookmark-pill{
    margin-left: auto;
  }

  .trust-strip{
    gap: 10px;
    padding: 8px 10px;
  }

  .trust-text{
    font-size: 12px;
  }

  .trust-pill{
    font-size: 12px;
    padding: 8px 10px;
  }

  .of-logo{
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 940px){
  .bookmark-pill{ display: none; }
}