/* SEO content pages (/roleplay-ideas/, /ai-boyfriend/): layered on base.css + discovery.css. */

.hero > .shell { position: relative; margin-top: clamp(32px, 5vw, 56px); }
.with { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.with img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; object-position: center 20%; }

/* Idea facts: setup / tension / first line */
.idea dl, .shuffler dl { margin: 0; display: grid; gap: 12px; }
.idea dt, .shuffler dt { font-size: 12.5px; line-height: 1.3; color: var(--muted); }
.idea dd, .shuffler dd { margin: 3px 0 0; color: #d9cfc5; font-size: 14.5px; line-height: 1.55; }
.first-line dd { padding: 1px 0 1px 14px; border-left: 2px solid rgba(201, 162, 75, 0.5); }
.first-line q { display: block; font: italic 17px/1.45 var(--serif); color: var(--text); quotes: "\201C" "\201D"; }
.copy {
  cursor: pointer; border: 0; padding: 0; margin-top: 6px; background: none; font-size: 12.5px; color: var(--muted);
  text-decoration: underline 1px rgba(236, 227, 217, 0.25); text-underline-offset: 3px; transition: color 0.2s ease;
}
.copy:hover { color: var(--text); }
.copy[data-done] { color: var(--gold-bright); text-decoration: none; }

/* Hero shuffler: one featured idea, swapped at random */
.shuffler { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); border-radius: 16px; overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), 0 30px 80px rgba(0, 0, 0, 0.45); scroll-margin-top: 24px; }
.shuffler-art { position: relative; min-height: 380px; }
.shuffler-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shuffler-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 65%, var(--surface)); }
.shuffler-copy { padding: clamp(24px, 3.4vw, 40px); display: flex; flex-direction: column; gap: 12px; }
.shuffler-copy h2 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; }
.shuffler-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.shuffler.swap .shuffler-art img, .shuffler.swap .shuffler-copy > * { animation: fade-in 0.35s ease both; }
@keyframes fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .shuffler.swap .shuffler-art img, .shuffler.swap .shuffler-copy > * { animation: none; } }
@media (max-width: 860px) {
  .shuffler { grid-template-columns: 1fr; }
  .shuffler-art { min-height: 0; aspect-ratio: 720 / 424; }
  .shuffler-art::after { background: linear-gradient(180deg, transparent 60%, var(--surface)); }
}

/* Idea cards: three across; a trailing pair (5 ideas) or a 4-idea group goes two across so no row is left with a hole */
.ideas-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.ideas-grid > .idea { grid-column: span 2; }
.ideas-grid > .idea:nth-child(3n+1):nth-last-child(2), .ideas-grid > .idea:nth-child(3n+1):nth-last-child(2) ~ .idea,
.ideas-grid > .idea:first-child:nth-last-child(4), .ideas-grid > .idea:first-child:nth-last-child(4) ~ .idea { grid-column: span 3; }
.idea { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); scroll-margin-top: 80px; }
.idea:target, .idea.flash { box-shadow: inset 0 0 0 1.5px var(--gold), 0 18px 40px rgba(0, 0, 0, 0.45); }
.idea-art { position: relative; display: block; aspect-ratio: 720 / 424; overflow: hidden; }
.idea-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.idea:hover .idea-art img { transform: scale(1.04); }
.idea-body { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px 18px; flex: 1; }
.idea-body h3 { font-size: 20px; line-height: 1.2; margin-top: -4px; }
.idea-body .text-link { margin-top: auto; padding-top: 2px; align-self: flex-start; }
@media (max-width: 1100px) { .ideas-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ideas-grid > .idea { grid-column: auto !important; } }
@media (max-width: 640px) { .ideas-grid { grid-template-columns: 1fr; } }

/* Boyfriend type picker */
.types { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.type { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.type img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform 0.5s ease; }
.type::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(8, 6, 8, 0.94)); }
.type span { position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 10px; line-height: 1.25; }
.type strong { display: block; font: 400 16px/1.2 var(--serif); }
.type small { display: block; margin-top: 3px; font-size: 11.5px; color: var(--gold-bright); }
.type:hover img { transform: scale(1.05); }
@media (max-width: 1100px) { .types { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .types { grid-template-columns: repeat(2, minmax(0, 1fr)); } .type:nth-child(7) { display: none; } }

/* Cross-link between SEO pages */
.crosslink { margin-top: clamp(48px, 7vw, 80px); display: flex; align-items: baseline; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; padding-block: 22px; border-block: 1px solid var(--line); }
.crosslink p { color: var(--muted); }
.crosslink strong { color: var(--text); font-weight: 600; }
