/* Styles for the server-rendered SEO pages: home, /onlyfans/*, /creator/*, /guides/*, /profiles. */

:root {
    --brand: #00aff0;
    --brand-dark: #0096eb;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft: #f3f4f6;
}

body { color: var(--ink); line-height: 1.5; }
a { color: var(--brand-dark); }

/* header search as a real form */
form.search-container { display: block; }
.search-input { -webkit-appearance: none; appearance: none; }

/* ------------------------------------------------ layout */
.page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    width: 100%;
}
.page--narrow { max-width: 820px; }
.page__title {
    font-size: 2rem;
    line-height: 1.2;
    margin: 8px 0 12px;
}
.page__intro { color: #374151; margin-bottom: 16px; max-width: 820px; }
.page__intro p + p { margin-top: 8px; }
.muted { color: var(--muted); font-size: 0.9rem; }
.results-meta { color: var(--muted); font-size: 0.9rem; margin: 8px 0 16px; }
.empty { padding: 24px 0; }

.section { max-width: 1200px; margin: 40px auto 0; padding: 0 24px; width: 100%; }
.section--flat { padding: 0; }
.section h2 { font-size: 1.5rem; line-height: 1.25; margin-bottom: 16px; }
.section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.section__head a { font-size: 0.95rem; text-decoration: none; white-space: nowrap; }

/* ------------------------------------------------ breadcrumbs */
.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
    font-size: 0.85rem;
    color: var(--muted);
}
.breadcrumbs li + li::before { content: "›"; margin-right: 4px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }

/* ------------------------------------------------ hero (home) */
.hero { max-width: 900px; margin: 0 auto; padding: 32px 24px 0; text-align: center; }
.hero__image { width: 100%; max-width: 800px; height: auto; }
.hero__title { font-size: 2rem; line-height: 1.2; margin: 24px 0 12px; }
.hero__lead { color: #374151; font-size: 1.1rem; margin: 0 auto 24px; max-width: 720px; }
.hero-search {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 640px;
    margin: 0 auto;
    padding: 10px 10px 10px 22px;
    border: 2px solid #e2e8f0;
    border-radius: 30px;
    background: white;
}
.hero-search input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    font-size: 18px;
    font-family: inherit;
}
.hero-search button, .inline-search button {
    border: none;
    border-radius: 22px;
    background: var(--brand);
    color: white;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 28px;
    cursor: pointer;
}
.hero-search button:hover, .inline-search button:hover { background: var(--brand-dark); }
.hero__promo { margin: 16px 0 0; font-size: 0.9rem; }
.hero__promo a { text-decoration: none; }
.hero__promo a:hover { text-decoration: underline; }
.quick-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    list-style: none;
    margin: 24px 0 0;
}
.quick-links a {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 20px;
    background: var(--brand);
    color: white;
    text-decoration: none;
    font-weight: 500;
}
.quick-links a:hover { background: var(--brand-dark); }

.inline-search { display: flex; gap: 8px; margin: 16px 0 24px; }
.inline-search input {
    flex: 1;
    min-width: 0;
    padding: 12px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    font-size: 16px;
    font-family: inherit;
}

/* ------------------------------------------------ chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chips a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: white;
    color: var(--ink);
    text-decoration: none;
    font-size: 0.9rem;
}
.chips a:hover { border-color: var(--brand); color: var(--brand-dark); }
.chips a span { color: var(--muted); font-size: 0.8rem; }

/* ------------------------------------------------ creator grid cards */
.creator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
.creator-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.creator-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.08); }
.creator-card__media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    background: var(--soft);
}
.creator-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.creator-card__body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.creator-card__name { font-size: 1rem; line-height: 1.3; margin: 0; overflow-wrap: anywhere; }
.creator-card__name a { color: var(--ink); text-decoration: none; }
.creator-card__name a:hover { color: var(--brand-dark); }
.creator-card__location { font-size: 0.8rem; color: var(--muted); }
.creator-card__stats { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 0.8rem; color: #374151; }
.creator-card__price { font-weight: 600; font-size: 0.9rem; }
.creator-card__price s { color: var(--muted); font-weight: 400; }

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge--free { background: #d1fae5; color: #047857; }
.badge--sale { background: #fee2e2; color: #b91c1c; }
.creator-card__media .badge { position: absolute; top: 10px; left: 10px; }

/* sponsored card inside the grid */
.creator-grid .profile-card.sponsored { max-width: none; display: flex; align-items: stretch; }
.creator-grid .profile-card.sponsored .sponsored-link { display: flex; align-items: center; margin: 0; width: 100%; }
.creator-grid .sponsored-text { flex-wrap: wrap; }
.creator-grid .sponsored-text__body { flex-basis: calc(100% - 72px); }
.creator-grid .sponsored-text__cta { flex-basis: 100%; text-align: center; }

/* ------------------------------------------------ /profiles big cards */
.profile-card .profile-image { display: block; padding: 0; margin-top: 0; background: none; border-radius: 12px; }
.profile-card a.profile-name { display: inline; padding: 0; margin: 0; background: none; color: #111827; border-radius: 0; }
.profile-card a.profile-name:hover { color: var(--brand-dark); }
.profile-card .profile-footer a { margin-top: 0; }
.profile-card a.profile-details { background: white; color: var(--brand-dark); border: 1px solid var(--brand); }
#results + .pagination-container { margin-top: 8px; }
a.pagination-btn { color: inherit; text-decoration: none; }

/* ------------------------------------------------ creator page */
.creator {
    display: grid;
    grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
    gap: 32px;
    margin-top: 16px;
}
.creator__media img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 16px;
    background: var(--soft);
}
.creator__handle { color: var(--muted); margin-bottom: 16px; }
.creator__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 12px;
    margin-bottom: 16px;
}
.creator__stats div { text-align: center; }
.creator__stats dt { font-size: 0.75rem; color: var(--muted); }
.creator__stats dd { font-weight: 700; font-size: 1.1rem; }
.creator__price { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.creator__price-value { font-size: 1.5rem; font-weight: 700; }
.creator__price-value s { color: var(--muted); font-weight: 400; font-size: 1rem; }
.creator__price-value small { font-size: 0.9rem; font-weight: 400; color: var(--muted); }
.creator__cta {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 12px;
    background: var(--brand);
    color: white;
    font-weight: 600;
    text-decoration: none;
}
.creator__cta:hover { background: var(--brand-dark); }
.creator__socials { margin-top: 16px; font-size: 0.9rem; }
.creator__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.creator__tags > span { font-size: 0.9rem; color: var(--muted); }
.creator__bio {
    margin: 8px 0 12px;
    padding: 12px 16px;
    border-left: 3px solid var(--brand);
    background: #f9fafb;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

/* ------------------------------------------------ prose (guides, home text) */
.prose p, .prose ul, .prose ol { margin-bottom: 14px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose h2 { font-size: 1.5rem; margin: 28px 0 12px; line-height: 1.25; }
.prose h3 { font-size: 1.15rem; margin: 20px 0 8px; }
.prose code { background: var(--soft); padding: 1px 6px; border-radius: 4px; font-size: 0.9em; }
.prose .columns { columns: 2; column-gap: 32px; }
.guide { font-size: 1.05rem; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 16px 0 8px; }
.step { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.step h3 { margin: 8px 0 6px; font-size: 1.05rem; }
.step p { margin: 0; font-size: 0.95rem; color: #374151; }
.step__num {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--brand);
    color: white;
    font-weight: 700;
}

.guide-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.guide-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: white;
    color: var(--ink);
    text-decoration: none;
}
.guide-card:hover { border-color: var(--brand); }
.guide-card span { color: var(--muted); font-size: 0.9rem; }

.link-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }

/* ------------------------------------------------ FAQ */
.faq { margin-top: 40px; }
.faq h2 { font-size: 1.5rem; margin-bottom: 12px; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 8px; color: #374151; }

/* ------------------------------------------------ footer */
.site-footer { margin-top: 56px; padding: 32px 24px 24px; border-top: 1px solid #e2e8f0; background: #fafafa; }
.site-footer__grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}
.site-footer__grid > div { display: flex; flex-direction: column; gap: 8px; }
.site-footer__title { font-weight: 700; font-size: 0.9rem; margin-bottom: 4px; }
.site-footer a { color: #4b5563; text-decoration: none; font-size: 0.9rem; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer__note { max-width: 1200px; margin: 24px auto 0; font-size: 0.8rem; color: var(--muted); }

/* ------------------------------------------------ responsive */
/* On mobile the header wraps to 2–3 rows; a fixed header would cover the H1 and breadcrumbs. */
@media (max-width: 768px) {
    body { padding-top: 0; }
    .header { position: static; box-shadow: 0 1px 0 #e5e7eb; }
}

@media (max-width: 900px) {
    .creator { grid-template-columns: minmax(0, 1fr); }
    .creator__media img { max-width: 420px; margin: 0 auto; display: block; }
    .steps { grid-template-columns: minmax(0, 1fr); }
    .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 576px) {
    .page { padding: 16px; }
    .section { padding: 0 16px; margin-top: 32px; }
    .section--flat { padding: 0; }
    .page__title, .hero__title { font-size: 1.5rem; }
    .hero { padding: 16px 16px 0; }
    .hero__lead { font-size: 1rem; }
    .hero-search { padding: 6px 6px 6px 14px; }
    .hero-search svg { display: none; }
    .hero-search input { font-size: 16px; }
    .hero-search button { padding: 10px 18px; }
    .creator-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .creator-card__body { padding: 10px; }
    .creator__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .creator__cta { display: block; text-align: center; }
    .prose .columns { columns: 1; }
    .site-footer { padding: 24px 16px; }
}
