/*
Theme Name: PixPrompt
Theme URI: https://digiwebkit.com/
Author: Sudip Talk
Author URI: https://www.youtube.com/@SudipWebDev
Description: PixPrompt is a fast, modern WordPress theme for AI prompt galleries and free stock photo websites. It features a dark hero section with live search, category story circles, a responsive photo grid, trending prompt collections, and copy-ready AI prompt cards with one-click prompt export and import. Lightweight, SEO-friendly, fully customizable from the Customizer, and translation-ready.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pixprompt
Tags: blog, photography, entertainment, portfolio, grid-layout, one-column, two-columns, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, theme-options
*/

:root {
    --pxp-primary: #ffc000;
    --pxp-secondary: #ff5d00;
    --pxp-dark: #0b1530;
    --pxp-blue: #2563eb;
    --pxp-text: #111827;
    --pxp-muted: #6b7280;
    --pxp-border: #e5e7eb;
    --pxp-bg: #ffffff;
    --pxp-soft: #f5f6fa;
    --pxp-radius: 14px;
    --pxp-container: 1280px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--pxp-bg);
}

body {
    margin: 0;
    font-family: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--pxp-text);
    background: var(--pxp-bg);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 .5em;
    line-height: 1.2;
    font-weight: 700;
}

p {
    margin: 0 0 1em;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--pxp-container);
    margin: 0 auto;
    padding: 0 20px;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

.skip-link:focus {
    position: fixed;
    top: 10px;
    left: 10px;
    width: auto;
    height: auto;
    clip: auto;
    background: #fff;
    padding: 10px 16px;
    z-index: 9999;
}

.pxp-icon {
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: -.125em;
}

.pxp-icon.is-fill {
    fill: currentColor;
    stroke: none;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    border: none;
    font-family: inherit;
    background: linear-gradient(90deg, var(--pxp-primary), var(--pxp-secondary));
    color: #000000;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--pxp-secondary) 28%, transparent);
    transition: all .2s ease;
}

.btn:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 12px 26px color-mix(in srgb, var(--pxp-secondary) 36%, transparent);
}

.btn-wrap {
    text-align: center;
    margin-top: 34px;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--pxp-border);
    color: var(--pxp-text);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    height: 66px;
}

.site-logo a {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.5px;
    color: var(--pxp-text);
    display: flex;
    align-items: center;
}

.site-logo img {
    max-height: 38px;
    width: auto;
}

.main-nav {
    margin-left: auto;
}

/* Desktop: primary menu items sit in the exact center of the header,
   the highlighted "menu-hot" item (AI Prompts) stays pinned to the right. */
@media (min-width: 861px) {
    .header-inner {
        position: relative;
    }

    .main-nav {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 20px;   /* matches .container padding */
        right: 20px;
        margin: 0;
        display: flex;
        align-items: center;
        pointer-events: none; /* keep the logo clickable underneath */
    }

    .main-nav ul {
        width: 100%;
        justify-content: center;
    }

    .main-nav li {
        pointer-events: auto;
    }

    .main-nav > ul > .menu-hot {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    display: block;
    padding: 7px 13px;
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    border-radius: 999px;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
    background: color-mix(in srgb, var(--pxp-primary) 16%, #fff);
}

/* Dropdown chevron for items with a sub menu */
.main-nav .menu-item-has-children > a {
    padding-right: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 13px;
    background-position: right 11px center;
}

/* Highlighted pill item (class "menu-hot") */
.main-nav .menu-hot > a {
    background-color: color-mix(in srgb, var(--pxp-primary) 8%, #fff);
    border: 1px solid color-mix(in srgb, var(--pxp-primary) 45%, #fff);
    padding-top: 7px;
    padding-bottom: 7px;
}

.main-nav .menu-hot > a::after {
    content: "HOT";
    margin-left: 7px;
    padding: 2px 7px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .3px;
    border-radius: 999px;
    background: var(--pxp-primary);
    color: #fff;
    display: inline-block;
    vertical-align: 1px;
}

.main-nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    background: #fff;
    border: 1px solid var(--pxp-border);
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .12);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    z-index: 20;
}

.main-nav li:hover > .sub-menu {
    display: flex;
}

.main-nav .sub-menu a {
    border-radius: 8px;
    padding: 9px 12px;
    background-image: none;
}

.main-nav .sub-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.main-nav .sub-menu .menu-count {
    min-width: 24px;
    padding: 2px 8px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--pxp-primary) 22%, #fff);
    color: var(--pxp-dark);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
}

.main-nav .sub-menu a:hover .menu-count {
    background: linear-gradient(135deg, var(--pxp-primary), var(--pxp-secondary));
}

.nav-toggle {
    display: none;
    margin-left: auto;
    background: transparent;
    border: 0;
    color: var(--pxp-text);
    font-size: 26px;
    cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    text-align: center;
    color: #fff;
    padding: 110px 0 96px;
    background:
        radial-gradient(60% 55% at 50% 0%, color-mix(in srgb, var(--pxp-primary) 20%, transparent), transparent 70%),
        radial-gradient(45% 50% at 0% 40%, rgba(14, 116, 180, .30), transparent 70%),
        radial-gradient(45% 50% at 100% 90%, color-mix(in srgb, var(--pxp-secondary) 24%, transparent), transparent 70%),
        var(--pxp-dark);
}

/* subtle grid texture that fades out toward the edges */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 20%, transparent 75%);
}

/* soft glowing orb behind the heading */
.hero::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 90px;
    z-index: -1;
    width: 520px;
    height: 260px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: linear-gradient(90deg, var(--pxp-primary), var(--pxp-secondary));
    filter: blur(110px);
    opacity: .22;
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    margin-bottom: 26px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .16);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .02em;
}

.hero-badge .pxp-icon {
    color: var(--pxp-primary);
}

.hero h1 {
    max-width: 880px;
    margin: 0 auto 18px;
    font-size: clamp(40px, 6.8vw, 76px);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.04;
    text-wrap: balance;
    background: linear-gradient(180deg, #ffffff 30%, color-mix(in srgb, var(--pxp-primary) 35%, #cbd5e1));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-sub {
    max-width: 620px;
    margin: 0 auto 38px;
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 500;
    line-height: 1.5;
    color: rgba(226, 232, 240, .82);
}

.hero-search {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(255, 255, 255, .6);
    box-shadow:
        0 0 0 6px rgba(255, 255, 255, .07),
        0 24px 60px rgba(0, 0, 0, .45),
        0 0 60px color-mix(in srgb, var(--pxp-primary) 14%, transparent);
    transition: box-shadow .25s ease;
}

.hero-search:focus-within {
    box-shadow:
        0 0 0 6px color-mix(in srgb, var(--pxp-primary) 32%, transparent),
        0 24px 60px rgba(0, 0, 0, .45),
        0 0 70px color-mix(in srgb, var(--pxp-primary) 26%, transparent);
}

.hero-search .search-form {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 8px;
}

.hero-search .pxp-icon {
    margin-left: 16px;
    color: #8a9bb5;
    font-size: 21px;
    flex: 0 0 auto;
}

.hero-search .search-field {
    flex: 1;
    border: 0;
    outline: 0;
    font-size: 16px;
    font-family: inherit;
    padding: 14px 6px;
    color: var(--pxp-text);
    min-width: 0;
    background: transparent;
}

.hero-search .search-field::placeholder {
    color: #8a93a5;
}

.hero-search .search-submit {
    padding-inline: 26px;
}

.hero-search .search-submit .pxp-icon {
    margin: 0;
    color: inherit;
    font-size: 16px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 26px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, .6);
}

.hero-tags a {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .05);
    color: rgba(255, 255, 255, .9);
    font-weight: 500;
    transition: border-color .2s, color .2s, background .2s, transform .2s;
}

.hero-tags a:hover {
    border-color: var(--pxp-primary);
    background: color-mix(in srgb, var(--pxp-primary) 14%, transparent);
    color: var(--pxp-primary);
    transform: translateY(-1px);
}

/* feature cards */
.hero-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 960px;
    margin: 56px auto 0;
    padding: 0;
    border: 0;
    text-align: left;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
    border: 1px solid rgba(255, 255, 255, .1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.hero-feature:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--pxp-primary) 45%, transparent);
    background: linear-gradient(180deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .04));
}

.hero-feature-icon {
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
    display: grid;
    place-items: center;
    font-size: 19px;
}

.feat-icon-1 {
    color: #fbbf24;
    background: rgba(251, 191, 36, .14);
}

.feat-icon-2 {
    color: #2dd4bf;
    background: rgba(45, 212, 191, .14);
}

.feat-icon-3 {
    color: #38bdf8;
    background: rgba(56, 189, 248, .14);
}

.feat-icon-4 {
    color: #f43f5e;
    background: rgba(244, 63, 94, .14);
}

.hero-feature strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
}

.hero-feature small {
    font-size: 12.5px;
    color: rgba(255, 255, 255, .6);
}

/* floating prompt cards on both sides */
.hero > .container {
    position: relative;
    z-index: 1;
}

.hero-side {
    display: none;
}

@media (min-width: 1280px) {
    .hero-side {
        position: absolute;
        top: 70px;
        z-index: 0;
        display: flex;
        flex-direction: column;
        gap: 26px;
        width: clamp(105px, 8.5vw, 150px);
    }

    .hero-side-left {
        left: max(24px, 3vw);
    }

    .hero-side-right {
        right: max(24px, 3vw);
        padding-top: 54px;
    }
}

.hero-card {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    padding: 4px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 22px 48px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .5);
    transform: rotate(var(--r, -6deg)) translateX(var(--x, 0));
    animation: pxp-float 6s ease-in-out infinite;
    animation-delay: var(--d, 0s);
    transition: box-shadow .3s ease;
}

.hero-card:hover {
    animation-play-state: paused;
    box-shadow: 0 28px 60px rgba(0, 0, 0, .55), 0 0 0 2px var(--pxp-primary);
}

.hero-card img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.hero-card-1 { --r: -7deg; --x: 0px;  --d: 0s; }
.hero-card-3 { --r: 5deg;  --x: 34px; --d: -2s; }
.hero-card-2 { --r: 7deg;  --x: 0px;  --d: -1s; }
.hero-card-4 { --r: -5deg; --x: -34px; --d: -3s; }

.hero-card-chip {
    position: absolute;
    left: 50%;
    bottom: -14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 5px;
    border-radius: 999px;
    white-space: nowrap;
    background: #fff;
    color: var(--pxp-text);
    font-size: 11.5px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .3);
    transform: translateX(-50%);
}

.hero-card-chip-icon {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pxp-primary), var(--pxp-secondary));
    color: #fff;
    font-size: 13px;
}

/* side image shapes (Customizer > Homepage Hero) */
.hero-shape-circle .hero-card {
    aspect-ratio: 1 / 1;
    border-radius: 50%;
}

.hero-shape-circle .hero-card img {
    border-radius: 50%;
}

.hero-shape-circle .hero-card-1,
.hero-shape-circle .hero-card-2,
.hero-shape-circle .hero-card-3,
.hero-shape-circle .hero-card-4 {
    --r: 0deg;
}

.hero-shape-circle .hero-card-3 { --x: 22px; }
.hero-shape-circle .hero-card-4 { --x: -22px; }

.hero-shape-rounded .hero-card {
    border-radius: 28px;
}

.hero-shape-rounded .hero-card img {
    border-radius: 24px;
}

.hero-shape-rounded .hero-card-1,
.hero-shape-rounded .hero-card-2,
.hero-shape-rounded .hero-card-3,
.hero-shape-rounded .hero-card-4 {
    --r: 0deg;
}

.hero-shape-square .hero-card,
.hero-shape-square .hero-card img {
    border-radius: 0;
}

.hero-shape-square .hero-card-1,
.hero-shape-square .hero-card-2,
.hero-shape-square .hero-card-3,
.hero-shape-square .hero-card-4 {
    --r: 0deg;
}

@keyframes pxp-float {
    0%, 100% { transform: rotate(var(--r, -6deg)) translateX(var(--x, 0)) translateY(0); }
    50%      { transform: rotate(var(--r, -6deg)) translateX(var(--x, 0)) translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-card { animation: none; }
}

@media (max-width: 900px) {
    .hero-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .hero {
        padding: 56px 0 48px;
    }

    .hero-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-top: 36px;
    }

    .hero-feature {
        gap: 9px;
        padding: 12px 10px;
        border-radius: 14px;
    }

    .hero-feature:hover {
        transform: none;
    }

    .hero-feature-icon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        font-size: 16px;
    }

    .hero-feature > span:last-child {
        min-width: 0;
    }

    .hero-feature strong {
        font-size: 13.5px;
    }

    .hero-feature small {
        display: block;
        font-size: 11px;
        line-height: 1.3;
    }

    .hero-search .search-submit {
        padding-inline: 16px;
    }
}

/* ---------- Sections ---------- */
.section {
    padding: 44px 0;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.section-head.is-center {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.section-title {
    font-size: 28px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.is-center .section-title {
    justify-content: center;
}

.section-title .pxp-icon {
    color: var(--pxp-primary);
}

.section-sub {
    margin: 2px 0 0;
    color: var(--pxp-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 11px;
    font-weight: 600;
}

.section-link {
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    color: color-mix(in srgb, var(--pxp-primary) 80%, #000);
    color: var(--pxp-secondary);
}

/* ---------- Category circles ---------- */
.section-cats {
    background: var(--pxp-bg);
    padding: 34px 0 40px;
}

.section-cats .section-head {
    margin-bottom: 26px;
}

.cat-strip {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 8px 6px 14px;
    scrollbar-width: none;
    justify-content: flex-start;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
}

.cat-strip.is-dragging {
    cursor: grabbing;
    user-select: none;
}

.cat-strip::-webkit-scrollbar {
    display: none;
}

.cat-item {
    flex: 0 0 auto;
    width: 96px;
    text-align: center;
}

.cat-ring {
    display: block;
    width: 96px;
    height: 96px;
    padding: 2px;
    border: 3px solid #154c79;
    border-radius: 50%;
    background: transparent;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.cat-item:hover .cat-ring,
.cat-item:focus .cat-ring {
    border-color: #2b9cf2;
    box-shadow: 0 0 0 3px rgba(43, 156, 242, .25);
    transform: scale(1.03);
}

.cat-ring span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #e8edf3;
    overflow: hidden;
}

.cat-ring img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    -webkit-user-drag: none;
}

.cat-name {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .2s ease;
}

.cat-item:hover .cat-name,
.cat-item:focus .cat-name {
    color: #1e88e5;
}

/* ---------- Photo grid ---------- */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.photo-card {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    border-radius: var(--pxp-radius);
    overflow: hidden;
    background: var(--pxp-soft);
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Rest state uses the same scale as the (sharp) hover state, so images
       look sharp before hovering too. */
    transform: scale(1.05);
    transition: transform .5s ease;
}

.photo-card:hover img {
    transform: scale(1.1);
}

.photo-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to top, rgb(0 0 0 / 85%) 0%, rgb(0 0 0 / 30%) 25%, rgba(0, 0, 0, 0) 55%);
    opacity: 0;
    transition: opacity .25s ease;
}

.photo-card:hover .photo-card-overlay {
    opacity: 1;
}

.photo-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    max-width: calc(100% - 24px);
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(40, 44, 52, .45);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
}

.photo-card:hover .photo-card-badge,
.photo-card:focus-visible .photo-card-badge {
    opacity: 1;
    transform: none;
}

@media (hover: none) {
    .photo-card-badge {
        opacity: 1;
        transform: none;
    }
}

.no-thumb {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 32px;
    color: var(--pxp-muted);
}

/* ---------- Collection / prompt cards ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.info-card {
    display: flex;
    flex-direction: column;
    padding: 12px;
    border: 1px solid transparent;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(15, 23, 42, .07);
    transition: box-shadow .2s ease, transform .2s ease;
}

.info-card:hover {
    border-color: color-mix(in srgb, var(--pxp-primary) 40%, #fff);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .1);
}

.info-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    background: var(--pxp-soft);
    overflow: hidden;
}

.info-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .5px;
    color: #fff;
    background: #f43f5e;
    z-index: 2;
}

.badge .pxp-icon {
    font-size: 12px;
}

.badge.is-prompt {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    color: #111827;
    background: linear-gradient(90deg, var(--pxp-primary), var(--pxp-secondary));
}

.count-chip {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: rgba(15, 23, 42, .72);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.count-chip .pxp-icon {
    color: var(--pxp-primary);
    font-size: 13px;
}

.info-card-body {
    padding: 14px 4px 2px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.info-card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 14px;
    color: var(--pxp-text);
}

.info-card-foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid #eef0f4;
    font-size: 13px;
    color: var(--pxp-muted);
}

.info-card-foot .go {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-weight: 600;
    color: color-mix(in srgb, var(--pxp-primary) 80%, #000);
}

.info-card-foot .go .pxp-icon {
    font-size: 14px;
}

.info-card-foot .copy-btn .pxp-icon {
    width: 14px;
    height: 14px;
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    border: 0;
    background: transparent;
    padding: 0;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    color: color-mix(in srgb, var(--pxp-primary) 80%, #000);
    cursor: pointer;
}

.copy-btn.is-copied {
    color: #16a34a;
}

/* ---------- Archive / page / single ---------- */
.page-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 64px 0 60px;
    color: #fff;
    background:
        radial-gradient(600px 280px at 12% 0%, rgba(255, 192, 0, .22), transparent 70%),
        radial-gradient(520px 300px at 92% 100%, color-mix(in srgb, var(--pxp-secondary) 26%, transparent), transparent 70%),
        linear-gradient(135deg, #0b1530 0%, #111c3f 55%, #0b1530 100%);
}

/* Subtle grid texture */
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse at 20% 40%, #000 0%, transparent 75%);
    mask-image: radial-gradient(ellipse at 20% 40%, #000 0%, transparent 75%);
}

/* Gradient accent line along the bottom edge */
.page-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--pxp-primary), var(--pxp-secondary), transparent 85%);
}

.page-hero .container {
    position: relative;
}

/* Short gradient bar above the title */
.page-hero .container::before {
    content: "";
    display: block;
    width: 56px;
    height: 5px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--pxp-primary), var(--pxp-secondary));
    box-shadow: 0 4px 16px color-mix(in srgb, var(--pxp-secondary) 45%, transparent);
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.12;
    letter-spacing: -.02em;
    text-wrap: balance;
}

.page-hero p {
    max-width: 640px;
    margin: 14px 0 0;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .72);
}

@media (max-width: 560px) {
    .page-hero {
        padding: 44px 0 42px;
    }

    .page-hero p {
        font-size: 15px;
    }
}

.content-area {
    padding: 40px 0 60px;
}

.layout-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 34px;
}

/* Static pages: no sidebar, readable single column */
.layout-single .primary {
    max-width: 900px;
    margin-inline: auto;
}

.entry-title {
    font-size: 32px;
}

.entry-meta {
    font-size: 13px;
    color: var(--pxp-muted);
    margin-bottom: 18px;
}

.entry-content > * + * {
    margin-top: 1em;
}

.entry-content img {
    border-radius: 10px;
}

.entry-content a {
    color: var(--pxp-blue);
    text-decoration: underline;
}

/* Card-style content: static pages + blog posts (shared) */
.page-content-area {
    background: color-mix(in srgb, var(--pxp-dark) 4%, #fff);
    padding: 40px 0 70px;
}

.post-wrap {
    background: color-mix(in srgb, var(--pxp-dark) 4%, #fff);
}

.page-card,
.post-article {
    padding: 44px 48px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .05);
    box-shadow: 0 10px 40px rgba(15, 23, 42, .07);
}

.page-card .single-media {
    margin: -8px 0 28px;
}

.post-article .post-cover {
    margin: 0 0 32px;
    border-radius: 16px;
    box-shadow: none;
}

.post-article .post-body {
    max-width: none;
}

:is(.page-card, .post-article) .entry-content {
    font-size: 15px;
    line-height: 1.75;
    color: #4b5563;
    overflow-wrap: anywhere;
}

:is(.page-card, .post-article) .entry-content > * + * {
    margin-top: 1.1em;
}

:is(.page-card, .post-article) .entry-content h1,
:is(.page-card, .post-article) .entry-content h2,
:is(.page-card, .post-article) .entry-content h3,
:is(.page-card, .post-article) .entry-content h4 {
    color: var(--pxp-text);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.01em;
}

:is(.page-card, .post-article) .entry-content h2 {
    margin-top: 1.9em;
    padding-bottom: .4em;
    padding-left: 0;
    font-size: 24px;
    border-left: 0;
    border-bottom: 1px solid var(--pxp-border);
}

:is(.page-card, .post-article) .entry-content h3 {
    margin-top: 1.6em;
    font-size: 19px;
}

:is(.page-card, .post-article) .entry-content > :first-child {
    margin-top: 0;
}

:is(.page-card, .post-article) .entry-content ul,
:is(.page-card, .post-article) .entry-content ol {
    padding-left: 1.4em;
}

:is(.page-card, .post-article) .entry-content ul {
    list-style: none;
    padding-left: 1.2em;
}

:is(.page-card, .post-article) .entry-content ul li {
    position: relative;
    margin-bottom: .45em;
}

:is(.page-card, .post-article) .entry-content ul li::before {
    content: "";
    position: absolute;
    left: -1.1em;
    top: .72em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--pxp-primary) 70%, #fff);
}

:is(.page-card, .post-article) .entry-content li::marker {
    color: var(--pxp-primary);
}

:is(.page-card, .post-article) .entry-content strong {
    color: var(--pxp-text);
}

@media (max-width: 700px) {
    .page-content-area {
        padding: 24px 0 48px;
    }

    .post-article .post-cover {
        margin-bottom: 22px;
        border-radius: 12px;
    }

    .page-card,
    .post-article {
        padding: 26px 20px;
        border-radius: 18px;
    }

    :is(.page-card, .post-article) .entry-content h2 {
        font-size: 21px;
    }
}

.single-media {
    border-radius: var(--pxp-radius);
    overflow: hidden;
    background: var(--pxp-soft);
    margin-bottom: 20px;
}

.single-media img {
    width: 100%;
    max-height: 760px;
    object-fit: contain;
}

.single-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 26px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.tag-list a {
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 999px;
    background: var(--pxp-soft);
}

.tag-list a:hover {
    background: var(--pxp-dark);
    color: #fff;
}

.prompt-box {
    position: relative;
    padding: 18px;
    border: 1px dashed var(--pxp-primary);
    background: color-mix(in srgb, var(--pxp-primary) 8%, #fff);
    border-radius: var(--pxp-radius);
    white-space: pre-wrap;
    font-size: 15px;
}

.related {
    margin-top: 50px;
}

/* ---------- Prompt single page ---------- */
.prompt-single {
    padding-top: 22px;
    background:
        radial-gradient(ellipse 55% 340px at 90% 0%, color-mix(in srgb, var(--pxp-primary) 20%, transparent), transparent 70%),
        radial-gradient(ellipse 45% 300px at 0% 0%, color-mix(in srgb, var(--pxp-secondary) 10%, transparent), transparent 70%),
        var(--pxp-bg);
}

.ps-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 24px;
    font-size: 13px;
    color: var(--pxp-muted);
}

.ps-crumbs a:hover {
    color: var(--pxp-dark);
}

.ps-crumbs .pxp-icon {
    font-size: 12px;
    opacity: .7;
}

.ps-crumbs [aria-current] {
    max-width: 40ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--pxp-text);
    font-weight: 600;
}

.ps-layout {
    display: grid;
    grid-template-columns: minmax(0, 470px) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

/* Image */
.ps-frame {
    position: relative;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--pxp-border);
    border-radius: 26px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .12), 0 4px 12px rgba(15, 23, 42, .05);
}

.ps-frame img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
}

.ps-badge {
    position: absolute;
    top: 22px;
    left: 22px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    border-radius: 999px;
    background: rgba(11, 21, 48, .55);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.ps-badge .pxp-icon {
    color: var(--pxp-primary);
}

/* Info column */
.ps-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ps-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--pxp-primary) 45%, #fff);
    background: color-mix(in srgb, var(--pxp-primary) 16%, #fff);
    color: var(--pxp-dark);
    font-size: 12px;
    font-weight: 700;
    transition: background .2s ease;
}

.ps-chip:hover {
    background: color-mix(in srgb, var(--pxp-primary) 30%, #fff);
}

.ps-title {
    margin: 14px 0 10px;
    font-size: clamp(24px, 3.2vw, 38px);
    line-height: 1.2;
    letter-spacing: -.01em;
}

.ps-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--pxp-muted);
}

.ps-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    opacity: .6;
}

/* Prompt card */
.ps-prompt {
    margin-top: 22px;
    overflow: hidden;
    border: 1.5px solid transparent;
    border-radius: 20px;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(135deg, var(--pxp-primary), var(--pxp-secondary)) border-box;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .07);
}

.ps-prompt-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 14px 11px 18px;
    background: color-mix(in srgb, var(--pxp-primary) 12%, #fff);
    border-bottom: 1px solid color-mix(in srgb, var(--pxp-primary) 28%, #fff);
}

.ps-prompt-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--pxp-dark);
}

.ps-prompt-label .pxp-icon {
    font-size: 16px;
    color: var(--pxp-secondary);
}

.ps-quick-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border: 1.5px solid color-mix(in srgb, var(--pxp-secondary) 35%, #fff);
    border-radius: 999px;
    background: color-mix(in srgb, var(--pxp-secondary) 6%, #fff);
    color: color-mix(in srgb, var(--pxp-secondary) 78%, #000);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
    transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.ps-quick-copy .qc-idle,
.ps-quick-copy .qc-done {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.ps-quick-copy .qc-done {
    display: none;
}

.ps-quick-copy .pxp-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.ps-quick-copy:hover {
    background: var(--pxp-secondary);
    border-color: var(--pxp-secondary);
    color: #fff;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--pxp-secondary) 35%, transparent);
}

.ps-quick-copy.is-copied,
.ps-quick-copy.is-copied:hover {
    background: color-mix(in srgb, var(--pxp-secondary) 6%, #fff);
    border-color: color-mix(in srgb, var(--pxp-secondary) 35%, #fff);
    color: color-mix(in srgb, var(--pxp-secondary) 78%, #000);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
}

.ps-quick-copy.is-copied .qc-idle {
    display: none;
}

.ps-quick-copy.is-copied .qc-done {
    display: inline-flex;
}

.ps-share-copy.is-copied {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}

.ps-actions .btn.is-copied {
    background: linear-gradient(90deg, #5ae18c, #16a34a);
    color: #ffffff;
    box-shadow: 0 8px 20px rgb(0 255 91 / 28%);
}

.ps-prompt-text {
    padding: 18px 20px 22px;
    white-space: pre-wrap;
    font-size: 15.5px;
    line-height: 1.75;
    color: #1f2937;
}

/* Actions */
.ps-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.ps-actions .btn {
    justify-content: center;
}

.ps-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    border: 1.5px solid var(--pxp-border);
    border-radius: 999px;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    transition: all .2s ease;
}

.ps-btn-ghost:hover {
    border-color: var(--pxp-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, .1);
}

/* How to use */
.ps-steps {
    margin-top: 26px;
    padding: 20px 22px;
    border: 1px solid var(--pxp-border);
    border-radius: 18px;
    background: var(--pxp-soft);
}

.ps-steps-title {
    margin: 0 0 14px;
    font-size: 15px;
}

.ps-steps ol {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ps-steps li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    line-height: 1.45;
    color: #374151;
}

.ps-steps .n {
    flex: none;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--pxp-dark);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

/* Share */
.ps-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
}

.ps-share-label {
    margin-right: 4px;
    font-size: 13px;
    font-weight: 700;
    color: var(--pxp-muted);
}

.ps-share a,
.ps-share-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--pxp-border);
    border-radius: 999px;
    background: #fff;
    color: var(--pxp-dark);
    font-family: inherit;
    font-size: 17px;
    cursor: pointer;
    transition: all .2s ease;
}

.ps-share-copy {
    padding: 0 16px;
    font-size: 13px;
    font-weight: 600;
}

.ps-share a .pxp-icon {
    width: 18px;
    height: 18px;
}

.ps-share a:hover,
.ps-share-copy:hover {
    background: var(--pxp-dark);
    border-color: var(--pxp-dark);
    color: #fff;
}

.ps-about {
    margin-top: 26px;
}

.ps-comments {
    max-width: 900px;
    margin: 50px auto 0;
}

.ps-related {
    margin-top: 64px;
}

@media (max-width: 900px) {
    .ps-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .ps-media {
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
    }

    .ps-steps ol {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .ps-frame {
        padding: 6px;
        border-radius: 20px;
    }

    .ps-frame img {
        border-radius: 15px;
    }

    .ps-badge {
        top: 14px;
        left: 14px;
    }

    .ps-actions .btn,
    .ps-actions .ps-btn-ghost {
        flex: 1 1 100%;
        justify-content: center;
    }

    .ps-works {
        flex: 1 1 100%;
        margin-left: 0;
    }

    .ps-works-note {
        position: static;
        flex-basis: 100%;
        margin-top: 0;
    }

    .ps-prompt-text {
        font-size: 15px;
    }
}

.pagination {
    margin-top: 36px;
}

.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.pagination .page-numbers {
    min-width: 40px;
    padding: 8px 12px;
    text-align: center;
    border: 1px solid var(--pxp-border);
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
}

.pagination .page-numbers {
    transition: all .2s ease;
}

.pagination a.page-numbers:hover {
    background: color-mix(in srgb, var(--pxp-secondary) 8%, #fff);
    border-color: var(--pxp-secondary);
    color: var(--pxp-secondary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--pxp-secondary) 12%, transparent);
}

.pagination .page-numbers.current {
    background: linear-gradient(135deg, var(--pxp-primary), var(--pxp-secondary));
    border-color: #ffffff;
    color: #fff;
}

.no-results,
.error-404 {
    text-align: center;
    padding: 60px 0;
}

.error-404 h1 {
    font-size: 96px;
    margin: 0;
    color: var(--pxp-primary);
}

.page-search {
    max-width: 480px;
    margin: 24px auto 0;
}

.content-area .search-form {
    display: flex;
    gap: 8px;
}

.content-area .search-field {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--pxp-border);
    border-radius: 999px;
    font-family: inherit;
    font-size: 14px;
}

.content-area .search-submit {
    padding: 12px 22px;
    border: 0;
    border-radius: 999px;
    background: var(--pxp-dark);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

/* ---------- Sidebar ---------- */
.widget {
    padding: 20px;
    border: 1px solid var(--pxp-border);
    border-radius: var(--pxp-radius);
    margin-bottom: 20px;
}

.widget-title {
    font-size: 16px;
    margin-bottom: 12px;
}

.widget li {
    padding: 6px 0;
    border-bottom: 1px solid var(--pxp-border);
    font-size: 14px;
}

.widget li:last-child {
    border-bottom: 0;
}

.widget li a:hover {
    color: var(--pxp-blue);
}

/* ---------- Comments ---------- */
.comments-area {
    margin-top: 50px;
}

.comments-title {
    font-size: 22px;
}

.comment-list {
    margin: 20px 0;
}

.comment-list .children {
    margin-left: 34px;
    padding-left: 0;
    list-style: none;
}

.comment-body {
    padding: 16px;
    margin-bottom: 14px;
    border: 1px solid var(--pxp-border);
    border-radius: 12px;
}

.comment-author .avatar {
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
    border-radius: 50%;
}

.comment-metadata {
    font-size: 12px;
    color: var(--pxp-muted);
}

.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--pxp-border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    margin-top: 4px;
}

.comment-respond .submit {
    padding: 12px 26px;
    border: 0;
    border-radius: 999px;
    background: var(--pxp-dark);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

/* ---------- Footer ---------- */
.site-footer {
    margin-top: 50px;
    background: var(--pxp-dark);
    color: rgba(255, 255, 255, .75);
    padding-top: 50px;
    font-size: 13px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 34px;
}

.footer-brand .site-logo a {
    margin-bottom: 12px;
    color: #fff;
}

.footer-brand .site-logo img,
.footer-brand .footer-logo-img {
    max-height: 48px;
    width: auto;
    height: auto;
    max-width: 100%;
}

.footer-brand p {
    font-size: 12px;
    line-height: 1.7;
}

.footer-follow {
    margin-top: 18px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, .5);
}

.social-links {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.social-links a {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .08);
    color: #94a3b8;
    font-size: 15px;
    border: 1px solid #1e293b;
    transition: background-color .2s ease, color .2s ease;
}

.social-links a:hover {
    color: #fff;
}

.social-links a.is-x:hover {
    background: #0ea5e9;
}

.social-links a.is-facebook:hover {
    background: #2563eb;
}

.social-links a.is-instagram:hover {
    background: #db2777;
}

.social-links a.is-youtube:hover {
    background: #ff0000;
}

.social-links a.is-pinterest:hover {
    background: #dc2626;
}

.social-links a.is-telegram:hover {
    background: #229ed9;
}

.footer-title {
    font-size: 12px;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 14px;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a:hover {
    color: var(--pxp-primary);
}

.footer-bottom {
    margin-top: 40px;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    color: #64748b;
}

.footer-bottom strong {
    color: #e2e8f0;
    font-weight: 700;
}

.footer-copy {
    justify-self: start;
}

.footer-credit {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border: 1px solid #1e293b;
    border-radius: 999px;
    background: rgba(255, 255, 255, .04);
    color: #94a3b8;
}

.footer-credit a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
}

.footer-credit strong {
    color: #fff;
    transition: color .2s ease;
}

.footer-credit a:hover strong,
.footer-credit a:hover .footer-arrow {
    color: var(--pxp-primary);
}

.footer-arrow {
    transition: transform .2s ease, color .2s ease;
}

.footer-credit a:hover .footer-arrow {
    transform: translate(2px, -2px);
}

.footer-arrow {
    color: var(--pxp-primary);
    font-size: 14px;
    line-height: 1;
}

.footer-meta {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #94a3b8;
}

.footer-meta a {
    color: #64748b;
}

.footer-meta a:hover {
    color: #fff;
}

.footer-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #475569;
}

.footer-bottom .heart {
    color: #ef4444;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .footer-bottom {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .footer-copy,
    .footer-credit,
    .footer-meta {
        justify-self: center;
    }
}

@media (max-width: 1024px) {
    .photo-grid,
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .layout-split {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .nav-toggle {
        display: block;
    }

    /* Menu panel: slides / fades in instead of popping */
    .main-nav {
        display: block;
        position: absolute;
        top: 66px;
        left: 0;
        right: 0;
        margin: 0;
        background: #fff;
        padding: 12px 20px 20px;
        border-top: 1px solid var(--pxp-border);
        box-shadow: 0 12px 24px rgba(15, 23, 42, .08);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        pointer-events: none;
        transition: opacity .28s ease, transform .28s ease, visibility 0s linear .28s;
    }

    .site-header.nav-open .main-nav {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
        transition: opacity .28s ease, transform .28s ease, visibility 0s;
    }

    .site-header.nav-open .main-nav ul {
        flex-direction: column;
        align-items: stretch;
    }

    /* Sub menus stay closed until the parent item is tapped, then slide open */
    .main-nav .sub-menu,
    .site-header.nav-open .main-nav .sub-menu {
        display: flex;
        position: static;
        border: 0;
        box-shadow: none;
        padding: 0 0 0 12px;
        min-width: 0;
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px);
        transition: max-height .35s ease, opacity .25s ease, transform .3s ease, visibility 0s linear .35s;
    }

    .main-nav li.is-open > .sub-menu,
    .site-header.nav-open .main-nav li.is-open > .sub-menu {
        max-height: 700px;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        transition: max-height .4s ease, opacity .3s ease .05s, transform .3s ease .05s, visibility 0s;
    }

    @media (prefers-reduced-motion: reduce) {
        .main-nav,
        .main-nav .sub-menu {
            transition: none !important;
        }
    }

    .site-header.nav-open .main-nav .menu-item-has-children > a {
        cursor: pointer;
    }

    /* Chevron flips up while the sub menu is open */
    .site-header.nav-open .main-nav .menu-item-has-children.is-open > a {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m18 15-6-6-6 6'/%3E%3C/svg%3E");
    }
}

@media (max-width: 640px) {
    .photo-grid,
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title {
        font-size: 22px;
    }
}

/* ---------- Mobile overflow guard (no sideways blank space) ---------- */
html,
body {
    max-width: 100%;
    overflow-x: clip;
}

.ps-layout > *,
.ps-info,
.ps-media {
    min-width: 0;
}

.ps-crumbs [aria-current] {
    max-width: 100%;
}

.ps-prompt-text,
.ps-title,
.ps-about {
    overflow-wrap: anywhere;
}

.ps-about img,
.ps-about iframe,
.ps-about video,
.ps-about table,
.ps-about pre {
    max-width: 100%;
}

.ps-about pre,
.ps-about table {
    display: block;
    overflow-x: auto;
}

@media (max-width: 1024px) {
    .photo-grid,
    .card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .photo-grid,
    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Similar Prompts heading icon */
.ps-related .section-title {
    gap: 12px;
}

.ps-related .section-title .pxp-icon {
    flex: none;
    box-sizing: content-box;
    width: 20px;
    height: 20px;
    padding: 8px;
    border-radius: 12px;
    background: linear-gradient(90deg, var(--pxp-primary), var(--pxp-secondary));
    box-shadow: 0 6px 14px color-mix(in srgb, var(--pxp-secondary) 30%, transparent);
    color: #fff;
}

/* Prompt text: show 6 lines with a fade, then a centered "Show full prompt" button */
.ps-prompt-text.is-clamped {
    position: relative;
    box-sizing: content-box;
    max-height: calc(6 * 1.75em);
    overflow: hidden;
}

.ps-prompt-text.is-clamped::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4em;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, .88) 55%, #fff 100%);
    pointer-events: none;
}

.ps-prompt-body .ps-prompt-text {
    padding-bottom: 0;
}

.ps-prompt-body {
    padding-bottom: 20px;
}

.ps-prompt-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    margin: 14px auto 0;
    padding: 7px 15px;
    border: 1px solid color-mix(in srgb, var(--pxp-secondary) 35%, transparent);
    border-radius: 999px;
    background: #fff;
    color: var(--pxp-secondary);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .08);
    transition: background .2s ease;
}

/* collapsed: button sits in the middle of the faded area */
.ps-prompt-text.is-clamped + .ps-prompt-toggle {
    position: relative;
    z-index: 2;
    margin-top: -48px;
}

.ps-prompt-toggle[hidden] {
    display: none;
}

.ps-prompt-toggle:hover {
    background: color-mix(in srgb, var(--pxp-secondary) 8%, #fff);
}

.ps-prompt-toggle .pxp-icon {
    transition: transform .2s ease;
}

.ps-prompt-toggle[aria-expanded="true"] .pxp-icon {
    transform: rotate(180deg);
}

/* Works with: Gemini AI / ChatGPT */
.ps-works {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-left: auto; /* sits on the right of Copy Prompt / Download Image */
    justify-content: center;
}

.ps-works-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--pxp-muted);
}

.ps-works-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}

.ps-works-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(15, 23, 42, .1);
}

.ps-works-chip.is-gemini {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.ps-works-chip.is-chatgpt {
    background: #ecfdf5;
    border-color: #6ee7b7;
    color: #047857;
}

.ps-works-note {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
    color: #16a34a;
}

/* ---------- Blog page (/blog) ---------- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.info-card-media .no-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--pxp-muted);
}
.info-card-meta {
    margin: 0 0 6px;
    font-size: 12px;
    color: var(--pxp-muted);
}
.info-card-title a { color: var(--pxp-text); }
.info-card-title a:hover { color: var(--pxp-secondary); }
.blog-grid .info-card-title { margin-bottom: 8px; }
.info-card-excerpt {
    margin: 0 0 14px;
    color: var(--pxp-muted);
    font-size: 14px;
    line-height: 1.55;
}
@media (max-width: 1024px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .blog-grid { grid-template-columns: 1fr; } }

/* ---------- Single blog post ---------- */
.read-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 9999;
    pointer-events: none;
}
.read-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--pxp-primary), var(--pxp-secondary));
}
.post-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 64px 0 120px;
    color: #fff;
    text-align: center;
    background:
        radial-gradient(600px 280px at 12% 0%, rgba(255, 192, 0, .22), transparent 70%),
        radial-gradient(520px 300px at 92% 100%, color-mix(in srgb, var(--pxp-secondary) 26%, transparent), transparent 70%),
        linear-gradient(135deg, #0b1530 0%, #111c3f 55%, #0b1530 100%);
}
.post-hero-inner {
    max-width: 820px;
    margin-inline: auto;
}
.post-cat {
    display: inline-block;
    padding: 6px 16px;
    margin-bottom: 20px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #ffffff;
    background: linear-gradient(90deg, var(--pxp-primary), var(--pxp-secondary));
}
.post-title {
    margin: 0 0 24px;
    font-size: clamp(28px, 4.6vw, 48px);
    line-height: 1.15;
    letter-spacing: -.02em;
    text-wrap: balance;
}
.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, .75);
}
.post-meta .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .45);
}
.post-author {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #fff;
}
.post-author img,
.author-box img {
    border-radius: 50%;
}
.post-wrap {
    padding-bottom: 70px;
}
.post-article {
    position: relative;
    z-index: 2;
    max-width: 860px;
    margin: -80px auto 0;
}
.post-cover {
    margin: 0 0 40px;
    border-radius: 20px;
    overflow: hidden;
    background: var(--pxp-soft);
    box-shadow: 0 20px 50px rgba(15, 23, 42, .18);
}
.post-cover img {
    display: block;
    width: 100%;
    height: auto;
}
.post-body {
    max-width: 740px;
    margin-inline: auto;
}
.post-content {
    font-size: 18px;
    line-height: 1.8;
    color: #1f2937;
}
.post-content > * + * { margin-top: 1.2em; }
.post-content h2,
.post-content h3,
.post-content h4 {
    margin-top: 1.9em;
    line-height: 1.25;
    letter-spacing: -.01em;
    color: var(--pxp-text);
}
.post-content h2 { font-size: 28px; padding-left: 14px; border-left: 4px solid var(--pxp-secondary); }
.post-content h3 { font-size: 22px; }
.post-content ul,
.post-content ol { padding-left: 1.4em; }
.post-content li + li { margin-top: .4em; }
.post-content li::marker { color: var(--pxp-secondary); font-weight: 700; }
.post-content a {
    color: color-mix(in srgb, var(--pxp-secondary) 90%, #000);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.post-content img { border-radius: 14px; }
.post-content blockquote {
    margin-inline: 0;
    padding: 18px 22px;
    border-left: 4px solid var(--pxp-primary);
    border-radius: 0 14px 14px 0;
    background: color-mix(in srgb, var(--pxp-primary) 8%, #fff);
    font-style: italic;
}
.post-content pre {
    padding: 18px;
    overflow-x: auto;
    border-radius: 14px;
    background: var(--pxp-dark);
    color: #e5e7eb;
    font-size: 15px;
}
.post-content :not(pre) > code {
    padding: 2px 6px;
    border-radius: 6px;
    background: var(--pxp-soft);
    font-size: .9em;
}
.post-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}
.post-content th,
.post-content td {
    padding: 10px 14px;
    border: 1px solid var(--pxp-border);
    text-align: left;
}
.post-content th { background: var(--pxp-soft); }
.post-body .tag-list { margin-top: 36px; }
.post-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 32px;
    padding: 18px 20px;
    border: 1px solid var(--pxp-border);
    border-radius: 16px;
    background: var(--pxp-soft);
}
.post-share div { display: flex; flex-wrap: wrap; gap: 8px; }
.post-share a {
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    background: #fff;
    border: 1px solid var(--pxp-border);
    transition: background .2s, color .2s, border-color .2s;
}
.post-share a:hover {
    background: var(--pxp-dark);
    border-color: var(--pxp-dark);
    color: #fff;
}
.author-box {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-top: 28px;
    padding: 22px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 2px 14px rgba(15, 23, 42, .08);
}
.author-box img { flex: none; }
.author-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--pxp-muted);
}
.author-box p { margin: 4px 0 0; font-size: 14px; color: var(--pxp-muted); }
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 28px;
}
.post-nav a {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px;
    border: 1px solid var(--pxp-border);
    border-radius: 16px;
    transition: border-color .2s, box-shadow .2s;
}
.post-nav a:hover {
    border-color: color-mix(in srgb, var(--pxp-primary) 40%, #fff);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
}
.post-nav .is-next { grid-column: 2; text-align: right; }
.post-nav .is-prev:only-child { grid-column: 1; }
.post-nav small { font-size: 12px; font-weight: 700; color: var(--pxp-secondary); }
.post-nav span { font-weight: 700; line-height: 1.35; }
.post-related { max-width: var(--pxp-container); margin-top: 64px; }
@media (max-width: 640px) {
    .post-hero { padding: 44px 0 100px; }
    .post-content { font-size: 17px; }
    .post-content h2 { font-size: 24px; }
    .post-cover { border-radius: 14px; margin-bottom: 28px; }
    .post-nav { grid-template-columns: 1fr; }
    .post-nav .is-next { grid-column: 1; }
    .author-box { flex-direction: column; text-align: center; }
}

/* Scroll to top */
.scroll-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 900;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(135deg, color-mix(in srgb, var(--pxp-secondary) 80%, #fff), var(--pxp-secondary));
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--pxp-secondary) 14%, transparent), 0 10px 26px color-mix(in srgb, var(--pxp-secondary) 45%, transparent);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(.85);
    transition: opacity .3s ease, transform .3s ease, visibility .3s, box-shadow .25s ease;
}
.scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}
.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 0 8px color-mix(in srgb, var(--pxp-secondary) 20%, transparent), 0 14px 32px color-mix(in srgb, var(--pxp-secondary) 55%, transparent);
}
.scroll-top:focus-visible { outline: 2px solid #ffffff; outline-offset: 3px; }
.scroll-top-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.scroll-top-ring circle {
    fill: none;
    stroke-width: 2.5;
}
.st-track { stroke: rgba(255, 255, 255, .28); }
.st-bar {
    stroke: #ffffff;
    stroke-linecap: round;
    stroke-dasharray: 131.95;
    stroke-dashoffset: 131.95;
}
.scroll-top-icon {
    position: relative;
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
@media (max-width: 600px) {
    .scroll-top { right: 16px; bottom: 16px; width: 46px; height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
    .scroll-top { transition: none; }
}
