/*
Theme Name: PromptSnap Theme
Theme URI:  https://promptsnap.in
Author:     PromptSnap
Description: Premium Pinterest-style WordPress theme for PromptSnap.in
Version:    9.0
License:    GPL-2.0+
Text Domain: promptsnap-theme
Tags: custom-logo, custom-menu, featured-images, responsive-layout, full-width-template
*/

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
    --ps-primary:      #2563eb;
    --ps-primary-dark: #1d4ed8;
    --ps-accent:       #06b6d4;
    --ps-text:         #0f172a;
    --ps-muted:        #64748b;
    --ps-bg:           #f8fafc;
    --ps-card:         #ffffff;
    --ps-border:       #e2e8f0;
    --ps-radius:       14px;
    --ps-shadow:       0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.06);
    --ps-shadow-lg:    0 4px 6px -1px rgba(0,0,0,.07), 0 12px 32px -4px rgba(0,0,0,.12);
    --ps-ease:         cubic-bezier(.4,0,.2,1);
    --ps-font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ps-container:    1280px;
    --ps-green:        #22c55e;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--ps-font);
    background: var(--ps-bg);
    color: var(--ps-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--ps-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

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

/* ============================================================
   HEADER
   ============================================================ */
.ps-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--ps-card);
    border-bottom: 1px solid var(--ps-border);
    box-shadow: 0 1px 8px rgba(0,0,0,.06);
    height: 64px;
    display: flex;
    align-items: center;
}
.ps-header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    width: 100%;
    height: 100%;
}
.ps-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
    margin-right: 32px;
}
.ps-logo-img { height: auto; }
.ps-logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--ps-text);
    letter-spacing: -.03em;
}
.ps-logo-text span { color: var(--ps-primary); }

/* Nav */
.ps-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: auto;
    flex-wrap: nowrap;
}
.ps-nav a {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: .88rem;
    font-weight: 600;
    color: var(--ps-muted);
    text-decoration: none;
    transition: all .15s var(--ps-ease);
    white-space: nowrap;
}
.ps-nav a:hover, .ps-nav a.current-menu-item {
    background: rgba(37,99,235,.08);
    color: var(--ps-primary);
}
.ps-nav ul { display: flex; align-items: center; gap: 4px; }
.ps-nav li { list-style: none; }
.ps-nav li a { display: block; }

/* Header search */
.ps-hdr-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--ps-bg);
    border: 1.5px solid var(--ps-border);
    border-radius: 50px;
    padding: 6px 14px;
    transition: border-color .2s;
    min-width: 200px;
}
.ps-hdr-search:focus-within { border-color: var(--ps-primary); }
.ps-hdr-search .hsi { width: 15px; height: 15px; color: var(--ps-muted); flex-shrink: 0; }
.ps-hdr-search input {
    border: none;
    background: none;
    outline: none;
    font-size: .85rem;
    color: var(--ps-text);
    width: 100%;
    font-family: var(--ps-font);
}
.ps-hdr-search input::placeholder { color: var(--ps-muted); }

/* Mobile toggle */
.ps-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: 1.5px solid var(--ps-border);
    border-radius: 10px;
    cursor: pointer;
    color: var(--ps-text);
    margin-left: auto;
}

/* Topbar */
.ps-topbar { padding: 8px 0; background: var(--ps-primary); text-align: center; }
.ps-topbar-text { font-size: .8rem; color: #fff; font-weight: 500; margin: 0; }

/* ============================================================
   HERO SECTION (Homepage)
   ============================================================ */
.ps-hero {
    position: relative;
    padding: 64px 20px 56px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 50%, #f8fafc 100%);
    border-bottom: 1px solid var(--ps-border);
}
.ps-hero-blobs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ps-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .5;
}
.ps-blob-1 { width: 400px; height: 400px; background: rgba(37,99,235,.12); top: -100px; left: -80px; }
.ps-blob-2 { width: 300px; height: 300px; background: rgba(6,182,212,.10); top: -60px; right: -60px; }
.ps-blob-3 { width: 250px; height: 250px; background: rgba(37,99,235,.08); bottom: -80px; left: 50%; transform: translateX(-50%); }

.ps-hero-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.ps-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(37,99,235,.1);
    color: var(--ps-primary);
    border: 1px solid rgba(37,99,235,.2);
    border-radius: 50px;
    padding: 5px 16px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.ps-hero-badge .dot {
    width: 6px; height: 6px;
    background: var(--ps-primary);
    border-radius: 50%;
    animation: ps-pulse 2s infinite;
}
@keyframes ps-pulse {
    0%,100% { opacity: 1; transform: scale(1); }
    50%      { opacity: .5; transform: scale(.8); }
}
.ps-hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -.04em;
    color: var(--ps-text);
    margin-bottom: 16px;
}
.ps-hero-typed { color: var(--ps-primary); }
.ps-hero p {
    font-size: 1.05rem;
    color: var(--ps-muted);
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}
.ps-hero-search-wrap {
    position: relative;
    max-width: 560px;
    margin: 0 auto 28px;
}
.ps-hero-search-wrap input {
    width: 100%;
    padding: 16px 130px 16px 20px;
    border: 2px solid var(--ps-border);
    border-radius: 50px;
    font-size: 1rem;
    font-family: var(--ps-font);
    background: #fff;
    outline: none;
    box-shadow: var(--ps-shadow);
    transition: border-color .2s, box-shadow .2s;
    color: var(--ps-text);
}
.ps-hero-search-wrap input:focus {
    border-color: var(--ps-primary);
    box-shadow: 0 0 0 4px rgba(37,99,235,.1), var(--ps-shadow);
}
.ps-hero-search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px 24px;
    background: var(--ps-primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
    font-family: var(--ps-font);
}
.ps-hero-search-btn:hover { background: var(--ps-primary-dark); }

/* Search dropdown */
.ps-search-drop {
    position: absolute;
    top: calc(100% + 8px);
    left: 0; right: 0;
    background: #fff;
    border: 1.5px solid var(--ps-border);
    border-radius: 16px;
    box-shadow: var(--ps-shadow-lg);
    z-index: 100;
    overflow: hidden;
    display: none;
}
.ps-search-drop.active { display: block; }
.ps-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    text-decoration: none;
    color: var(--ps-text);
    transition: background .15s;
    border-bottom: 1px solid var(--ps-border);
}
.ps-search-item:last-child { border-bottom: none; }
.ps-search-item:hover { background: var(--ps-bg); }
.ps-search-item img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.ps-search-item-text strong { font-size: .88rem; display: block; }
.ps-search-item-text span { font-size: .76rem; color: var(--ps-muted); }

/* Stats */
.ps-hero-stats { display: flex; justify-content: center; gap: 32px; }
.ps-hero-stat strong { display: block; font-size: 1.4rem; font-weight: 900; color: var(--ps-text); letter-spacing: -.02em; }
.ps-hero-stat span { font-size: .78rem; color: var(--ps-muted); font-weight: 600; }

/* ============================================================
   SECTIONS
   ============================================================ */
.ps-section { padding: 48px 0; }
.ps-sec-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.ps-sec-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--ps-text);
    letter-spacing: -.02em;
}
.ps-view-all {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .82rem;
    font-weight: 700;
    color: var(--ps-primary);
    text-decoration: none;
    padding: 6px 14px;
    border: 1.5px solid rgba(37,99,235,.2);
    border-radius: 50px;
    transition: all .2s;
}
.ps-view-all:hover {
    background: var(--ps-primary);
    color: #fff;
    border-color: var(--ps-primary);
    text-decoration: none;
}

/* Category chips */
.ps-cat-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.ps-cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--ps-muted);
    background: var(--ps-card);
    border: 1.5px solid var(--ps-border);
    transition: all .2s;
    text-decoration: none;
    white-space: nowrap;
}
.ps-cat-chip:hover, .ps-cat-chip.active {
    background: var(--ps-primary);
    color: #fff;
    border-color: var(--ps-primary);
    text-decoration: none;
}
.ps-cat-chip-count {
    font-size: .68rem;
    background: rgba(0,0,0,.08);
    border-radius: 50px;
    padding: 1px 6px;
    min-width: 18px;
    text-align: center;
}
.ps-cat-chip.active .ps-cat-chip-count,
.ps-cat-chip:hover .ps-cat-chip-count { background: rgba(255,255,255,.25); }

/* ============================================================
   MASONRY CARD GRID
   ============================================================ */
.ps-grid {
    columns: 4;
    column-gap: 16px;
}
@media (max-width: 1200px) { .ps-grid { columns: 3; } }
@media (max-width: 768px)  { .ps-grid { columns: 2; } }
@media (max-width: 480px)  { .ps-grid { columns: 2; column-gap: 10px; } }

.ps-card {
    display: block;
    break-inside: avoid;
    margin-bottom: 16px;
    background: var(--ps-card);
    border-radius: var(--ps-radius);
    border: 1.5px solid var(--ps-border);
    overflow: hidden;
    text-decoration: none;
    color: var(--ps-text);
    box-shadow: var(--ps-shadow);
    transition: transform .25s var(--ps-ease), box-shadow .25s var(--ps-ease);
    position: relative;
}
.ps-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ps-shadow-lg);
    text-decoration: none;
}
.ps-card-img {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f4ff, #e8f0fe);
}
.ps-card-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .4s var(--ps-ease);
}
.ps-card:hover .ps-card-img img { transform: scale(1.04); }
.ps-no-thumb {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--ps-border);
    background: linear-gradient(135deg, #f0f4ff, #e8f0fe);
}
.ps-card-body { padding: 12px 14px 14px; }
.ps-card-cat {
    display: inline-block;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ps-primary);
    margin-bottom: 5px;
}
.ps-card-title {
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--ps-text);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ps-card-excerpt {
    font-size: .78rem;
    color: var(--ps-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}
.ps-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    border-top: 1px solid var(--ps-border);
    background: var(--ps-bg);
}
.ps-card-date { font-size: .72rem; color: var(--ps-muted); }
.ps-card-feat-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--ps-primary);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 50px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* Featured card accent */
.ps-card-featured {
    border-color: rgba(37,99,235,.3);
    box-shadow: 0 0 0 2px rgba(37,99,235,.08), var(--ps-shadow);
}

/* ============================================================
   LOAD MORE
   ============================================================ */
.ps-load-more-wrap { text-align: center; padding: 32px 0 16px; }
.ps-load-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: var(--ps-card);
    color: var(--ps-text);
    border: 2px solid var(--ps-border);
    border-radius: 50px;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--ps-font);
    transition: all .2s var(--ps-ease);
}
.ps-load-more:hover {
    background: var(--ps-primary);
    color: #fff;
    border-color: var(--ps-primary);
}
.ps-load-more .spin {
    display: none;
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ps-spin .7s linear infinite;
}
.ps-load-more.loading .spin { display: block; }
.ps-load-more.loading .lm-txt { opacity: .6; }
@keyframes ps-spin { to { transform: rotate(360deg); } }

/* ============================================================
   ALL PROMPTS PAGE
   ============================================================ */
.ps-ap-wrap { padding: 48px 0; }

/* Big search bar */
.ps-ap-search-wrap {
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    border-radius: 24px;
    padding: 40px 32px;
    margin-bottom: 32px;
    border: 1px solid rgba(37,99,235,.1);
    text-align: center;
}
.ps-ap-search-wrap h1 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 900;
    letter-spacing: -.03em;
    color: var(--ps-text);
    margin-bottom: 8px;
}
.ps-ap-search-wrap p {
    color: var(--ps-muted);
    font-size: .95rem;
    margin-bottom: 24px;
}
.ps-ap-search-bar {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    gap: 0;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: var(--ps-shadow-lg);
}
.ps-ap-search-bar input {
    flex: 1;
    padding: 16px 22px;
    border: none;
    font-size: 1rem;
    font-family: var(--ps-font);
    background: #fff;
    outline: none;
    color: var(--ps-text);
}
.ps-ap-search-bar button {
    padding: 16px 28px;
    background: var(--ps-primary);
    color: #fff;
    border: none;
    font-size: .9rem;
    font-weight: 700;
    font-family: var(--ps-font);
    cursor: pointer;
    transition: background .2s;
    white-space: nowrap;
}
.ps-ap-search-bar button:hover { background: var(--ps-primary-dark); }

/* Filters */
.ps-ap-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    padding: 16px 20px;
    background: var(--ps-card);
    border: 1.5px solid var(--ps-border);
    border-radius: 14px;
}
.ps-ap-filters label {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ps-muted);
}
.ps-ap-filters select {
    padding: 7px 30px 7px 12px;
    border: 1.5px solid var(--ps-border);
    border-radius: 8px;
    font-size: .85rem;
    font-family: var(--ps-font);
    color: var(--ps-text);
    background: var(--ps-bg);
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: border-color .2s;
}
.ps-ap-filters select:focus { border-color: var(--ps-primary); }
.ps-ap-filter-reset {
    margin-left: auto;
    padding: 7px 16px;
    background: none;
    border: 1.5px solid var(--ps-border);
    border-radius: 8px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--ps-muted);
    cursor: pointer;
    font-family: var(--ps-font);
    transition: all .2s;
}
.ps-ap-filter-reset:hover { border-color: var(--ps-primary); color: var(--ps-primary); }
.ps-ap-results-count {
    font-size: .82rem;
    color: var(--ps-muted);
    font-weight: 600;
    margin-bottom: 16px;
}
.ps-ap-results-count strong { color: var(--ps-primary); }

/* Infinite scroll sentinel */
.ps-scroll-sentinel { height: 40px; }
.ps-ap-end-msg { text-align: center; color: var(--ps-muted); font-size: .85rem; padding: 24px 0; }

/* ============================================================
   SINGLE POST — With Sidebar
   ============================================================ */
.ps-single-wrap { padding: 40px 0 60px; }
.ps-single-inner {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}
.ps-single-main { min-width: 0; }
.ps-single-sidebar { position: sticky; top: 80px; }

/* Post header */
.ps-post-header { margin-bottom: 28px; }
.ps-post-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.ps-post-cat {
    display: inline-block;
    padding: 3px 12px;
    background: rgba(37,99,235,.08);
    color: var(--ps-primary);
    border-radius: 50px;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    text-decoration: none;
}
.ps-post-cat:hover { background: var(--ps-primary); color: #fff; text-decoration: none; }
.ps-post-title {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -.03em;
    color: var(--ps-text);
    margin-bottom: 14px;
}
.ps-post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: .8rem;
    color: var(--ps-muted);
}
.ps-post-meta span { display: flex; align-items: center; gap: 4px; }

/* Post featured image */
.ps-post-feat-img {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 32px;
    background: var(--ps-bg);
    box-shadow: var(--ps-shadow-lg);
}
.ps-post-feat-img img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 480px;
    object-fit: cover;
}

/* Post content */
.ps-post-content {
    font-size: .97rem;
    line-height: 1.8;
    color: var(--ps-text);
}
.ps-post-content p { margin-bottom: 1.2em; }
.ps-post-content h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 36px 0 14px;
    letter-spacing: -.02em;
    color: var(--ps-text);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ps-border);
}
.ps-post-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 28px 0 10px;
    color: var(--ps-text);
}
.ps-post-content img {
    border-radius: 12px;
    margin: 16px 0;
    box-shadow: var(--ps-shadow);
}
.ps-post-content ul, .ps-post-content ol {
    padding-left: 1.4em;
    margin-bottom: 1em;
}
.ps-post-content li { margin-bottom: .4em; }

/* Post tags */
.ps-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--ps-border);
}
.ps-post-tag {
    padding: 4px 12px;
    background: var(--ps-bg);
    border: 1.5px solid var(--ps-border);
    border-radius: 50px;
    font-size: .76rem;
    font-weight: 600;
    color: var(--ps-muted);
    text-decoration: none;
    transition: all .2s;
}
.ps-post-tag:hover { border-color: var(--ps-primary); color: var(--ps-primary); text-decoration: none; }

/* Share row */
.ps-post-share {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 24px;
    padding: 16px 20px;
    background: var(--ps-card);
    border: 1.5px solid var(--ps-border);
    border-radius: 14px;
}
.ps-post-share-label {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--ps-muted);
}
.ps-sbtn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: .78rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all .2s;
    font-family: var(--ps-font);
}
.ps-sbtn-wa  { background:#dcfce7; color:#15803d; border-color:#bbf7d0; }
.ps-sbtn-wa:hover  { background:#16a34a; color:#fff; text-decoration:none; }
.ps-sbtn-tg  { background:#e0f2fe; color:#0369a1; border-color:#bae6fd; }
.ps-sbtn-tg:hover  { background:#0284c7; color:#fff; text-decoration:none; }
.ps-sbtn-cl  { background:var(--ps-bg); color:var(--ps-text); border-color:var(--ps-border); }
.ps-sbtn-cl:hover  { border-color:var(--ps-primary); color:var(--ps-primary); text-decoration:none; }

/* ============================================================
   PROMPT BLOCKS (from plugin shortcode)
   ============================================================ */
.ps-prompt-block {
    margin: 36px 0;
    padding: 28px;
    background: var(--ps-card);
    border: 1.5px solid var(--ps-border);
    border-radius: 20px;
    box-shadow: var(--ps-shadow);
    transition: box-shadow .25s;
}
.ps-prompt-block:hover { box-shadow: 0 8px 32px rgba(37,99,235,.1); }

/* Prompt block with image: 2 columns */
.ps-prompt-block .ps-pb-img-wrap {
    margin-bottom: 20px;
}
.ps-pb-frame {
    border-radius: 16px;
    overflow: hidden;
    background: var(--ps-bg);
    box-shadow:
        0 0 0 5px #fff,
        0 4px 6px -1px rgba(0,0,0,.06),
        0 12px 28px -4px rgba(0,0,0,.12);
    aspect-ratio: 16 / 9;
}
.ps-pb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: translateY(-6px) scale(1.02);
    transition: transform .4s;
}
.ps-prompt-block:hover .ps-pb-img { transform: translateY(-10px) scale(1.03); }

/* Title */
.ps-pb-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 800;
    color: var(--ps-text);
    margin-bottom: 16px;
    letter-spacing: -.01em;
}
.ps-pb-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    background: var(--ps-primary);
    color: #fff;
    border-radius: 50%;
    font-size: .78rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(37,99,235,.3);
}

/* View prompt button */
.ps-sp-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    background: var(--ps-primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: .85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
    font-family: var(--ps-font);
    margin-bottom: 14px;
}
.ps-sp-view-btn:hover {
    background: var(--ps-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(37,99,235,.3);
}
.ps-sp-view-btn svg { transition: transform .25s; }
.ps-sp-view-btn.open svg { transform: rotate(180deg); }

/* Prompt box */
.ps-sp-prompt-box {
    display: none;
    border: 1.5px solid var(--ps-border);
    border-radius: 14px;
    overflow: hidden;
    background: #fafbff;
    margin-bottom: 16px;
}
.ps-sp-prompt-box.open { display: block; }
.ps-sp-prompt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #fff;
    border-bottom: 1px solid var(--ps-border);
}
.ps-v5dots { display: flex; gap: 5px; }
.ps-v5dots i { display: block; width: 10px; height: 10px; border-radius: 50%; }
.ps-v5dots i:nth-child(1) { background: #ff6058; }
.ps-v5dots i:nth-child(2) { background: #ffbd2e; }
.ps-v5dots i:nth-child(3) { background: #28c940; }
.ps-sp-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: var(--ps-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: .76rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--ps-font);
    transition: all .2s;
}
.ps-sp-copy-btn:hover { background: var(--ps-primary-dark); }
.ps-sp-copy-btn.copied { background: #16a34a; }
.ps-sp-prompt-scroll {
    max-height: 320px;
    overflow-y: auto;
    padding: 18px 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--ps-border) transparent;
}
.ps-sp-prompt-scroll::-webkit-scrollbar { width: 4px; }
.ps-sp-prompt-scroll::-webkit-scrollbar-thumb { background: var(--ps-border); border-radius: 4px; }
.ps-sp-prompt-text {
    font-family: var(--ps-font);
    font-size: .875rem;
    line-height: 1.8;
    color: var(--ps-text);
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
}

/* Try this prompt */
.ps-sp-try { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--ps-border); }
.ps-sp-try-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--ps-muted);
    margin-bottom: 10px;
}
.ps-sp-ai-row { display: flex; gap: 8px; flex-wrap: wrap; }
.ps-sp-ai-card {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    background: var(--ps-bg);
    border: 1.5px solid var(--ps-border);
    border-radius: 10px;
    text-decoration: none;
    color: var(--ps-text);
    font-size: .8rem;
    font-weight: 600;
    transition: all .2s;
}
.ps-sp-ai-card:hover {
    border-color: var(--ps-primary);
    background: rgba(37,99,235,.04);
    transform: translateY(-1px);
    text-decoration: none;
}
.ps-sp-ai-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px; height: 30px;
    border-radius: 7px;
}
.ps-sp-ai-name { font-weight: 700; }
.ps-sp-ai-open { display: flex; align-items: center; gap: 3px; font-size: .7rem; color: var(--ps-muted); }

/* ============================================================
   SIDEBAR WIDGETS
   ============================================================ */
.ps-widget {
    background: var(--ps-card);
    border: 1.5px solid var(--ps-border);
    border-radius: var(--ps-radius);
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: var(--ps-shadow);
}
.ps-widget-title {
    font-size: .85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 14px 18px;
    border-bottom: 1px solid var(--ps-border);
    color: var(--ps-text);
    background: var(--ps-bg);
}
.ps-widget-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--ps-border);
    transition: background .15s;
}
.ps-widget-item:last-child { border-bottom: none; }
.ps-widget-item:hover { background: var(--ps-bg); }
.ps-widget-thumb { flex-shrink: 0; }
.ps-widget-thumb img { width: 52px; height: 40px; object-fit: cover; border-radius: 6px; }
.ps-widget-text h4 { font-size: .82rem; font-weight: 700; line-height: 1.4; margin-bottom: 2px; }
.ps-widget-text h4 a { color: var(--ps-text); text-decoration: none; }
.ps-widget-text h4 a:hover { color: var(--ps-primary); }
.ps-widget-date { font-size: .72rem; color: var(--ps-muted); }
.ps-widget-cat-list { padding: 8px 0; }
.ps-widget-cat-list li { border-bottom: 1px solid var(--ps-border); }
.ps-widget-cat-list li:last-child { border-bottom: none; }
.ps-widget-cat-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    font-size: .84rem;
    color: var(--ps-text);
    text-decoration: none;
    transition: all .15s;
}
.ps-widget-cat-list a:hover { background: var(--ps-bg); color: var(--ps-primary); }
.ps-widget-cat-list .count {
    font-size: .72rem;
    background: var(--ps-bg);
    border: 1px solid var(--ps-border);
    border-radius: 50px;
    padding: 1px 7px;
    color: var(--ps-muted);
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.ps-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: .78rem;
    color: var(--ps-muted);
    margin-bottom: 16px;
    padding: 8px 0;
}
.ps-breadcrumb a { color: var(--ps-muted); text-decoration: none; }
.ps-breadcrumb a:hover { color: var(--ps-primary); }
.ps-breadcrumb .sep { color: var(--ps-border); }

/* ============================================================
   FOOTER
   ============================================================ */
.ps-footer {
    background: var(--ps-text);
    color: rgba(255,255,255,.75);
    padding: 56px 0 0;
    margin-top: 64px;
}
.ps-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.ps-footer-brand .ps-logo-text { color: #fff; font-size: 1.3rem; }
.ps-footer-brand p { font-size: .85rem; line-height: 1.7; margin: 12px 0 20px; color: rgba(255,255,255,.55); }
.ps-footer-social { display: flex; gap: 8px; }
.ps-footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    color: rgba(255,255,255,.7);
    transition: all .2s;
    text-decoration: none;
}
.ps-footer-social a:hover { background: var(--ps-primary); border-color: var(--ps-primary); color: #fff; }
.ps-footer-col h4 {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255,255,255,.9);
    margin-bottom: 16px;
}
.ps-footer-menu { list-style: none; }
.ps-footer-menu li { margin-bottom: 8px; }
.ps-footer-menu a {
    font-size: .84rem;
    color: rgba(255,255,255,.55);
    text-decoration: none;
    transition: color .2s;
}
.ps-footer-menu a:hover { color: #fff; }
.ps-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    font-size: .78rem;
    color: rgba(255,255,255,.4);
    flex-wrap: wrap;
    gap: 8px;
}
.ps-footer-bottom a { color: rgba(255,255,255,.55); text-decoration: none; }
.ps-footer-bottom a:hover { color: #fff; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .ps-single-inner { grid-template-columns: 1fr; }
    .ps-single-sidebar { position: static; }
    .ps-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .ps-nav { display: none; position: fixed; inset: 64px 0 0; background: var(--ps-card); padding: 20px; flex-direction: column; align-items: flex-start; gap: 4px; box-shadow: var(--ps-shadow-lg); overflow-y: auto; z-index: 998; }
    .ps-nav.open { display: flex; }
    .ps-nav a { font-size: 1rem; padding: 10px 16px; width: 100%; }
    .ps-nav-toggle { display: flex; }
    .ps-hdr-search { display: none; }
    .ps-hero { padding: 44px 20px 40px; }
    .ps-hero h1 { font-size: 1.8rem; }
    .ps-ap-search-wrap { padding: 28px 20px; }
    .ps-ap-search-bar { flex-direction: column; border-radius: 14px; }
    .ps-ap-search-bar input, .ps-ap-search-bar button { border-radius: 0; }
    .ps-ap-search-bar input { border-radius: 14px 14px 0 0; }
    .ps-ap-search-bar button { border-radius: 0 0 14px 14px; }
    .ps-footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .ps-prompt-block { padding: 20px 16px; }
    .ps-sp-ai-row { flex-direction: column; }
    .ps-sp-ai-card { width: 100%; }
}
@media (max-width: 480px) {
    .ps-grid { columns: 2; column-gap: 10px; }
    .ps-grid .ps-card { margin-bottom: 10px; }
    .ps-hero-stats { gap: 20px; }
    .ps-hero-stats strong { font-size: 1.1rem; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.ps-back {
    display: inline-flex; align-items: center; gap: 5px;
    color: var(--ps-muted); font-size: .82rem; font-weight: 600;
    text-decoration: none; margin-bottom: 16px; padding: 5px 0;
    transition: color .2s;
}
.ps-back:hover { color: var(--ps-primary); text-decoration: none; }
.ps-404-wrap { text-align: center; padding: 80px 20px; }
.ps-404-wrap h1 { font-size: 6rem; font-weight: 900; color: var(--ps-border); letter-spacing: -.05em; }
.ps-404-wrap h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; }
.ps-404-wrap p { color: var(--ps-muted); margin-bottom: 24px; }

/* Skeleton loading */
.ps-skeleton { background: linear-gradient(90deg, var(--ps-border) 25%, #f1f5f9 50%, var(--ps-border) 75%); background-size: 200% 100%; animation: ps-skeleton 1.4s ease infinite; border-radius: 8px; }
@keyframes ps-skeleton { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.ps-card-skel { break-inside: avoid; margin-bottom: 16px; border-radius: var(--ps-radius); overflow: hidden; background: var(--ps-card); border: 1.5px solid var(--ps-border); }
.ps-card-skel-img { height: 180px; }
.ps-card-skel-body { padding: 12px 14px; }
.ps-card-skel-line { height: 12px; margin-bottom: 8px; border-radius: 4px; }
.ps-card-skel-line.short { width: 60%; }
