/* Content pages under the Help menu: design styles, gift ideas, prompt guide.
   Reading pages: a short intro band, then sections with a ~70ch text column
   and image grids that use the full container width. */

:root {
    --brand-primary: #9E7FA4;
    --brand-dark: #6f4f76;
    --brand-light: #B9A8BF;
    --brand-pale: rgba(158, 127, 164, 0.1);
    --text-dark: #2d3748;
    --text-muted: #5f6b7a;
    --border-color: #e2e8f0;
    --radius-md: 12px;
    --radius-lg: 16px;
}

.content-page {
    color: var(--text-dark);
}

/* ---------- Intro band ---------- */
.content-hero {
    padding: 2.5rem 0 2rem;
    background: linear-gradient(180deg, var(--brand-pale) 0%, rgba(158, 127, 164, 0) 100%);
}

.content-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0 0 0.9rem;
    padding: 0;
    list-style: none;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.content-breadcrumb li + li::before {
    content: "/";
    margin-right: 0.4rem;
    color: var(--brand-light);
}

.content-breadcrumb a {
    color: var(--brand-dark);
}

.content-hero h1 {
    max-width: 22ch;
    margin: 0 0 0.9rem;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-dark);
    text-wrap: balance;
}

.content-lead {
    max-width: 68ch;
    margin: 0 0 1.4rem;
    font-size: 1.1rem;
    line-height: 1.65;
    color: var(--text-muted);
}

.content-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.content-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.4rem;
    border-radius: 50px;
    font-weight: 700;
}

.content-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    color: var(--brand-dark);
}

.content-link:hover,
.content-link:focus-visible {
    color: var(--brand-dark);
    text-decoration: underline;
}

/* ---------- Sections ---------- */
.content-section {
    padding: 2rem 0;
}

.content-section + .content-section {
    border-top: 1px solid var(--border-color);
}

.content-section h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.35rem, 2.6vw, 1.7rem);
    font-weight: 700;
    color: var(--text-dark);
    text-wrap: balance;
}

.content-section h3 {
    margin: 0 0 0.4rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.content-text {
    max-width: 70ch;
    font-size: 1.02rem;
    line-height: 1.7;
}

.content-text p:last-child {
    margin-bottom: 0;
}

.content-list {
    max-width: 70ch;
    margin: 0;
    padding-left: 1.2rem;
    line-height: 1.7;
}

.content-list li + li {
    margin-top: 0.5rem;
}

/* ---------- Style cards (overview, "more styles") ---------- */
.style-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
}

.style-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: white;
    color: var(--text-dark);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.style-card:hover,
.style-card:focus-visible {
    border-color: var(--brand-light);
    box-shadow: 0 8px 20px rgba(45, 55, 72, 0.08);
    color: var(--text-dark);
    text-decoration: none;
}

.style-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: var(--brand-pale);
}

.style-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.9rem 1rem 1rem;
}

.style-card-name {
    font-weight: 700;
}

.style-card-hint {
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--text-muted);
}

.style-card-more {
    margin-top: 0.35rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--brand-dark);
}

/* ---------- Example images ---------- */
.example-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.example-grid img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius-md);
    background: var(--brand-pale);
}

/* ---------- Two columns: text + aside ---------- */
.content-split {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.tip-box {
    padding: 1.1rem 1.25rem;
    border-radius: var(--radius-md);
    background: var(--brand-pale);
    line-height: 1.6;
}

.tip-box h3 {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--brand-dark);
}

/* ---------- Prompt ideas ---------- */
.prompt-ideas {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.prompt-idea {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: white;
}

.prompt-idea q {
    font-style: italic;
    line-height: 1.55;
}

.prompt-idea-label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--brand-dark);
}

.prompt-idea .content-link {
    font-size: 0.9rem;
}

/* ---------- Numbered steps (a real sequence) ---------- */
.content-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: content-step;
}

.content-steps li {
    counter-increment: content-step;
    padding: 1.1rem 1.2rem;
    border-radius: var(--radius-md);
    background: white;
    border: 1px solid var(--border-color);
    line-height: 1.6;
}

.content-steps li::before {
    content: counter(content-step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-bottom: 0.6rem;
    border-radius: 50%;
    background: var(--brand-primary);
    color: white;
    font-weight: 700;
}

/* ---------- Formula ---------- */
.prompt-formula {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}

.prompt-formula li {
    padding: 0.35rem 0.8rem;
    border-radius: 50px;
    background: var(--brand-pale);
    color: var(--brand-dark);
    font-weight: 600;
    font-size: 0.92rem;
}

.prompt-formula li + li::before {
    content: "+ ";
    color: var(--brand-light);
}

/* ---------- FAQ ---------- */
.content-faq {
    max-width: 75ch;
}

.content-faq details {
    border-bottom: 1px solid var(--border-color);
}

.content-faq summary {
    padding: 0.9rem 0;
    font-weight: 700;
    cursor: pointer;
    list-style-position: outside;
}

.content-faq details p {
    margin: 0 0 1rem;
    line-height: 1.65;
    color: var(--text-muted);
}

/* ---------- Closing call to action ---------- */
.content-cta {
    margin: 1rem 0 3rem;
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: var(--brand-pale);
    text-align: center;
}

.content-cta h2 {
    margin: 0 0 0.6rem;
}

.content-cta p {
    max-width: 60ch;
    margin: 0 auto 1.2rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.content-cta .content-actions {
    justify-content: center;
}

/* ---------- Guide images (prompt guide steps) ---------- */
.guide-step {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: center;
}

.guide-step + .guide-step {
    margin-top: 2rem;
}

.guide-step img {
    width: 100%;
    height: auto;
    max-width: 340px;
    justify-self: center;
    border-radius: var(--radius-md);
    box-shadow: 0 6px 18px rgba(45, 55, 72, 0.12);
}

.guide-step q {
    display: block;
    margin-top: 0.4rem;
    font-style: italic;
}

@media (max-width: 991.98px) {
    .content-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .content-hero {
        padding: 1.75rem 0 1.25rem;
    }

    .example-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.6rem;
    }

    .content-split,
    .guide-step {
        grid-template-columns: 1fr;
    }

    .style-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .style-card-hint {
        display: none;
    }

    .content-cta {
        padding: 1.5rem 1.1rem;
    }
}
