/*!
 * PostSpark Style 1.0.0
 * Front-end styles for PostSpark articles. Classes are all prefixed psk-.
 * Without this plugin the content still reads fine (plain headings, images and dividers).
 */

:root { --psk-accent: #8f8478; --psk-tint: #f3f1ee; --psk-line: #e1ddd8; }

/* ════════════════════════════════════════════════════════════════════
   Gallery lists (heading + image items)   — base look = "Soft"
   ════════════════════════════════════════════════════════════════════ */

h2.psk-gallery-item-title {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin: 0 0 .85rem;
    font-size: 1.35rem;
    line-height: 1.3;
}

.psk-num {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.1rem;
    height: 2.1rem;
    padding: 0 .4rem;
    box-sizing: border-box;
    border-radius: 999px;
    background: var(--psk-tint);
    color: var(--psk-accent);
    box-shadow: inset 0 0 0 1px var(--psk-line);
    font-size: .8em;
    font-weight: 700;
    line-height: 1;
}

.psk-gallery-figure { margin: 0 0 .6rem; }
.psk-gallery-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .10);
}

/* Divider between items: hairline with a small dot in the middle */
hr.psk-gallery-separator {
    border: 0;
    height: 14px;
    margin: 2.6rem 0;
    background-image:
        radial-gradient(circle at 50% 50%, var(--psk-accent) 3px, transparent 3.5px),
        linear-gradient(90deg, transparent, var(--psk-line) 30%, var(--psk-line) 70%, transparent);
    background-repeat: no-repeat;
    background-size: 14px 14px, 100% 1px;
    background-position: center, center;
}

/* Progress break ("10 of 40") that replaces the divider every N items */
.psk-gallery-break {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2.8rem 0;
}
.psk-gallery-break::before,
.psk-gallery-break::after { content: ""; flex: 1; border-top: 1px solid var(--psk-line); }
.psk-gallery-break span {
    font-size: .78rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--psk-accent);
    white-space: nowrap;
}

/* ── Clean: thin lines, no shadows ───────────────────────────────── */
.psk-style-clean .psk-num {
    background: transparent;
    box-shadow: inset 0 0 0 1px var(--psk-accent);
}
.psk-style-clean .psk-gallery-figure img {
    border-radius: 8px;
    box-shadow: none;
    outline: 1px solid var(--psk-line);
    outline-offset: -1px;
}
.psk-style-clean hr.psk-gallery-separator {
    height: 0;
    margin: 2.2rem 0;
    background: none;
    border-top: 1px solid var(--psk-line);
}

/* ── Bold: accent bars and offset frames ─────────────────────────── */
.psk-style-bold h2.psk-gallery-item-title {
    padding-left: .85rem;
    border-left: 5px solid var(--psk-accent);
}
.psk-style-bold .psk-num {
    border-radius: 6px;
    background: var(--psk-accent);
    color: #fff;
    box-shadow: none;
}
.psk-style-bold .psk-gallery-figure img {
    border-radius: 4px;
    box-shadow: 10px 10px 0 var(--psk-tint);
}
.psk-style-bold hr.psk-gallery-separator {
    height: 0;
    margin: 2.8rem 0;
    background: none;
    border-top: 3px solid var(--psk-tint);
}
.psk-style-bold .psk-gallery-break::before,
.psk-style-bold .psk-gallery-break::after { border-top-width: 3px; border-color: var(--psk-tint); }


/* ════════════════════════════════════════════════════════════════════
   Hairstyle articles
   ════════════════════════════════════════════════════════════════════ */
/* No wrapping div around hairstyle entries — each entry is a sequence of
   top-level h2/p/figure/p siblings separated by hr.psk-hairstyle-separator
   so every element converts to its own native block in the Gutenberg editor. */
hr.psk-hairstyle-separator {
    border: none;
    border-top: 1px solid #eee;
    margin: 2em 0;
}

/* ── Difficulty badge ──────────────────────────────────────── */
.psk-hairstyle-diff {
    display: inline-block;
    font-size: 0.72em;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 0.9em;
    letter-spacing: 0.01em;
}
.psk-hairstyle-diff-easy             { background: #EAF3DE; color: #3B6D11; }
.psk-hairstyle-diff-moderate         { background: #FAEEDA; color: #854F0B; }
.psk-hairstyle-diff-salon-recommended { background: #FBEAF0; color: #993556; }

/* ── Section image ─────────────────────────────────────────── */
.psk-item-figure {
    margin: 0.75em 0 1em;
}
.psk-item-figure img {
    width: 100%;
    border-radius: 6px;
    display: block;
}

/* ── Styling tip ───────────────────────────────────────────── */
p.psk-hairstyle-tip {
    border-left: 3px solid #e0c8d8;
    background: #fdf7fa;
    padding: 0.6em 0.9em;
    margin-top: 0.75em;
    border-radius: 0 6px 6px 0;
    font-size: 0.94em;
    line-height: 1.6;
    color: #444;
}
.psk-hairstyle-tip-label {
    display: inline-block;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #993556;
    margin-right: 0.35em;
}

/* ════════════════════════════════════════════════════════════════════
   Nail articles (classic format)
   ════════════════════════════════════════════════════════════════════ */
/* No wrapping div around nail entries — each entry is a sequence of top-level
   h2/figure/p siblings separated by hr.psk-nail-separator so every element
   converts to its own native block in the Gutenberg editor. */
hr.psk-nail-separator {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 2rem 0;
}
.psk-item-figure {
    margin: 0 0 1.25rem;
}
.psk-item-figure img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}
p.psk-nail-tip {
    background: #fdf4ff;
    border-left: 4px solid #d946ef;
    border-radius: 0 8px 8px 0;
    padding: 0.85rem 1rem;
    margin: 1.25rem 0;
    font-size: 0.95rem;
    color: #4b5563;
}
.psk-nail-tip-label {
    display: inline-block;
    font-weight: 700;
    font-size: 0.85rem;
    color: #a21caf;
    margin-right: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ════════════════════════════════════════════════════════════════════
   Crochet articles
   ════════════════════════════════════════════════════════════════════ */
/* ── Crochet entry wrapper ──────────────────────────── */
/* No wrapping div around entries — each entry is a sequence of top-level
   p/figure/h2 siblings, separated by hr.psk-crochet-separator. This keeps
   each element editable as its own native block in the Gutenberg editor. */
hr.psk-crochet-separator {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 2em 0;
}

/* ── Supplies block ─────────────────────────────────── */
.psk-crochet-supplies {
    background: #f9f5ff;
    border-left: 4px solid #7c3aed;
    border-radius: 6px;
    padding: 1em 1.2em;
    margin-bottom: 2em;
}
.psk-crochet-supplies-heading {
    margin: 0 0 0.4em;
    font-size: 1em;
    color: #5b21b6;
}

/* ── At-a-glance meta bar ───────────────────────────── */
p.psk-crochet-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0.6em 0 0.8em;
}
.psk-crochet-badge {
    display: inline-block;
    font-size: 0.75em;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.psk-skill-beginner     { background: #d1fae5; color: #065f46; }
.psk-skill-intermediate { background: #fef3c7; color: #92400e; }
.psk-skill-advanced     { background: #fee2e2; color: #991b1b; }
.psk-crochet-meta-item {
    font-size: 0.85em;
    color: #4b5563;
    background: #f3f4f6;
    padding: 3px 9px;
    border-radius: 4px;
}

/* ── Materials ──────────────────────────────────────── */
p.psk-crochet-materials {
    font-size: 0.9em;
    color: #374151;
    margin: 0.5em 0 0.8em;
    padding: 0.5em 0.8em;
    background: #f9fafb;
    border-radius: 4px;
}

/* ── Stitches used ──────────────────────────────────── */
p.psk-crochet-stitches {
    font-size: 0.9em;
    color: #374151;
    margin: 0.5em 0;
}

/* ── Description ────────────────────────────────────── */
p.psk-crochet-desc {
    margin: 0.8em 0;
    line-height: 1.7;
}

/* ── Construction method ────────────────────────────── */
p.psk-crochet-construction {
    font-size: 0.92em;
    color: #1f2937;
    margin: 0.8em 0;
    padding: 0.7em 1em;
    border-left: 3px solid #a78bfa;
    background: #faf5ff;
    border-radius: 0 4px 4px 0;
}

/* ── Key technique ──────────────────────────────────── */
p.psk-crochet-technique {
    font-size: 0.92em;
    color: #1f2937;
    margin: 0.8em 0;
    padding: 0.7em 1em;
    border-left: 3px solid #60a5fa;
    background: #eff6ff;
    border-radius: 0 4px 4px 0;
}

/* ── Common mistakes ────────────────────────────────── */
p.psk-crochet-mistakes {
    font-size: 0.9em;
    color: #92400e;
    margin: 0.8em 0;
    padding: 0.7em 1em;
    background: #fffbeb;
    border-left: 3px solid #f59e0b;
    border-radius: 0 4px 4px 0;
}

/* ── Finishing ──────────────────────────────────────── */
p.psk-crochet-finishing {
    font-size: 0.9em;
    color: #374151;
    margin: 0.8em 0;
    padding: 0.7em 1em;
    background: #f0fdf4;
    border-left: 3px solid #34d399;
    border-radius: 0 4px 4px 0;
}

/* ── Tips / pattern notes ───────────────────────────── */
p.psk-crochet-notes {
    font-size: 0.9em;
    color: #374151;
    margin: 0.6em 0;
    font-style: italic;
}

/* ── Section image ──────────────────────────────────── */
figure.psk-crochet-image {
    margin: 1em 0;
}
figure.psk-crochet-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* ── Pin hero image ─────────────────────────────────── */
figure.psk-crochet-pin {
    margin: 1.5em auto;
    text-align: center;
}
figure.psk-crochet-pin img {
    max-width: 600px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: inline-block;
}
