/* ═══════════════════════════════════════════════
   PROMPTS PICK — Main Stylesheet v1.0.0
   Dark navy theme: #0b1220
═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');
@import url('https://cdn.jsdelivr.net/npm/@tabler/icons-webfont@3.19.0/dist/tabler-icons.min.css');

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

/* ── Base ── */
body.pp-dark-theme {
    background: #0b1220;
    color: #e2e8f0;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
body.pp-dark-theme a { text-decoration: none; color: inherit; }

/* ── Nav ── */
.pp-nav {
    background: #0d1526;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 0 24px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}
.pp-logo { font-size: 19px; font-weight: 600; color: #fff; letter-spacing: -0.3px; }
.pp-logo span { color: #7c6ff7; }
.pp-nav-right { display: flex; align-items: center; gap: 10px; }
.pp-nav-link { color: #64748b; font-size: 20px; display: flex; }
.pp-nav-btn {
    background: rgba(124,111,247,0.12);
    color: #a89ff7;
    border: 1px solid rgba(124,111,247,0.25);
    border-radius: 8px;
    padding: 7px 16px;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}
.pp-nav-btn:hover { background: rgba(124,111,247,0.22); }
.pp-nav-btn.primary { background: #7c6ff7; color: #fff; border-color: #7c6ff7; }
.pp-nav-btn.primary:hover { background: #6a5ee8; }

/* ── Hero ── */
.pp-hero {
    text-align: center;
    padding: 52px 24px 32px;
}
.pp-hero h1 {
    font-size: 30px;
    font-weight: 600;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}
.pp-hero h1 span { color: #7c6ff7; }
.pp-hero p { font-size: 14px; color: #64748b; margin-bottom: 24px; }

/* ── Search ── */
.pp-search-bar {
    max-width: 500px;
    margin: 0 auto 16px;
    position: relative;
}
.pp-search-bar input {
    width: 100%;
    background: #111827;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 13px 44px 13px 18px;
    color: #e2e8f0;
    font-size: 14px;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s;
}
.pp-search-bar input:focus { border-color: rgba(124,111,247,0.5); }
.pp-search-bar input::placeholder { color: #475569; }
.pp-search-bar > .ti { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: #475569; font-size: 18px; pointer-events: none; }
.pp-search-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0; right: 0;
    background: #111827;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
    z-index: 200;
    display: none;
}
.pp-search-dropdown.open { display: block; }
.pp-search-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.15s;
}
.pp-search-item:hover { background: rgba(255,255,255,0.05); }
.pp-search-item img { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; }
.pp-search-item span { font-size: 13px; color: #e2e8f0; }

/* ── Popular Tags ── */
.pp-popular { display: flex; align-items: center; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pp-popular > span { font-size: 12px; color: #475569; }
.pp-tag {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 4px 13px;
    font-size: 12px;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.15s;
    display: inline-block;
}
.pp-tag:hover { border-color: rgba(124,111,247,0.4); color: #a89ff7; }

/* ── Ad Slots ── */
.pp-ad-wrap { text-align: center; padding: 12px 24px; }
.pp-ad-desktop { display: block; }
.pp-ad-mobile  { display: none; }
@media (max-width: 768px) {
    .pp-ad-desktop { display: none; }
    .pp-ad-mobile  { display: block; }
}

/* ── Filters ── */
.pp-filters {
    padding: 0 24px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.pp-tabs { display: flex; gap: 4px; }
.pp-tab {
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    color: #64748b;
    border: 1px solid transparent;
    background: transparent;
    font-family: inherit;
    transition: all 0.15s;
}
.pp-tab:hover { color: #94a3b8; }
.pp-tab.active { background: rgba(124,111,247,0.12); color: #a89ff7; border-color: rgba(124,111,247,0.25); }
.pp-tool-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.pp-tool {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.08);
    color: #64748b;
    background: transparent;
    font-family: inherit;
    transition: all 0.15s;
}
.pp-tool.active { background: rgba(255,255,255,0.06); color: #e2e8f0; border-color: rgba(255,255,255,0.15); }

/* ── Masonry Grid ── */
.pp-masonry {
    padding: 0 24px 32px;
    columns: 4;
    column-gap: 14px;
}
@media (max-width: 1100px) { .pp-masonry { columns: 3; } }
@media (max-width: 700px)  { .pp-masonry { columns: 2; } }
@media (max-width: 420px)  { .pp-masonry { columns: 1; } }

/* ── Card ── */
.pp-card {
    break-inside: avoid;
    background: #111827;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    margin-bottom: 14px;
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
}
.pp-card:hover { border-color: rgba(124,111,247,0.4); transform: translateY(-2px); }
.pp-card img {
    width: 100%;
    display: block;
    object-fit: cover;
}
.pp-card-body { padding: 10px 13px 13px; }
.pp-card-cat { font-size: 10px; color: #7c6ff7; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 5px; }
.pp-card-title { font-size: 13px; font-weight: 500; margin-bottom: 10px; line-height: 1.4; }
.pp-card-title a { color: #e2e8f0; }
.pp-card-title a:hover { color: #a89ff7; }
.pp-card-footer { display: flex; align-items: center; justify-content: space-between; }
.pp-copy-btn {
    background: rgba(124,111,247,0.12);
    color: #a89ff7;
    border: 1px solid rgba(124,111,247,0.25);
    border-radius: 6px;
    padding: 5px 13px;
    font-size: 11px;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: background 0.15s;
}
.pp-copy-btn:hover { background: rgba(124,111,247,0.25); }
.pp-copy-btn.copied { background: rgba(74,222,128,0.15); color: #4ade80; border-color: rgba(74,222,128,0.3); }
.pp-card-meta { display: flex; align-items: center; gap: 8px; }
.pp-meta-item { display: flex; align-items: center; gap: 3px; font-size: 11px; color: #475569; }

/* ── In-feed ad card ── */
.pp-ad-infeed { background: transparent; border-color: transparent; padding: 0; }
.pp-ad-infeed:hover { transform: none; border-color: transparent; }

/* ── Load More ── */
.pp-load-more { text-align: center; padding: 0 24px 40px; }
.pp-load-btn {
    background: rgba(255,255,255,0.04);
    color: #94a3b8;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 12px 32px;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.pp-load-btn:hover { background: rgba(255,255,255,0.08); }
.pp-load-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Category Grid ── */
.pp-cats { padding: 0 24px 48px; }
.pp-cats-title { font-size: 18px; font-weight: 600; color: #fff; margin-bottom: 6px; }
.pp-cats-sub { font-size: 13px; color: #475569; margin-bottom: 18px; }
.pp-cats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.pp-cat-tile {
    background: #111827;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: border-color 0.2s;
    display: block;
}
.pp-cat-tile:hover { border-color: rgba(124,111,247,0.35); }
.pp-cat-initial {
    width: 34px; height: 34px;
    border-radius: 8px;
    background: rgba(124,111,247,0.15);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 600; color: #a89ff7;
    margin-bottom: 10px;
}
.pp-cat-name { font-size: 13px; font-weight: 500; color: #e2e8f0; }
.pp-cat-count { font-size: 11px; color: #475569; margin-top: 3px; }

/* ══════════════════════════════════════
   SINGLE PROMPT PAGE
══════════════════════════════════════ */
.pp-single-page { background: #0b1220; }

.sp-breadcrumb {
    padding: 14px 24px;
    font-size: 12px;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.sp-breadcrumb a { color: #7c6ff7; }
.sp-breadcrumb a:hover { text-decoration: underline; }

.sp-main {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 28px;
    padding: 0 24px;
    max-width: 1200px;
    margin: 0 auto;
}
@media (max-width: 768px) { .sp-main { grid-template-columns: 1fr; } }

.sp-img-wrap {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    position: sticky;
    top: 74px;
    align-self: start;
}
.sp-img-wrap img { width: 100%; display: block; }

.sp-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(124,111,247,0.1);
    color: #a89ff7;
    border: 1px solid rgba(124,111,247,0.2);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 11px;
    margin-bottom: 12px;
}
.sp-title { font-size: 24px; font-weight: 600; color: #fff; margin-bottom: 6px; line-height: 1.3; letter-spacing: -0.3px; }
.sp-meta { font-size: 12px; color: #475569; margin-bottom: 16px; }
.sp-meta span { color: #64748b; }

.sp-stats { display: flex; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.sp-stat { display: flex; align-items: center; gap: 5px; font-size: 13px; color: #64748b; }
.sp-stat .ti { font-size: 15px; }

.sp-actions { display: flex; gap: 8px; margin-bottom: 20px; }
.sp-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 18px;
    border-radius: 9px;
    font-size: 13px;
    cursor: pointer;
    border: 1px solid;
    font-family: inherit;
    transition: all 0.15s;
}
.sp-btn.copy { background: #7c6ff7; color: #fff; border-color: #7c6ff7; flex: 1; justify-content: center; font-weight: 500; }
.sp-btn.copy:hover { background: #6a5ee8; }
.sp-btn.copy.copied { background: #16a34a; border-color: #16a34a; }
.sp-btn.like { background: transparent; color: #94a3b8; border-color: rgba(255,255,255,0.1); }
.sp-btn.like.liked { color: #f87171; border-color: rgba(239,68,68,0.35); }
.sp-btn.save { background: transparent; color: #94a3b8; border-color: rgba(255,255,255,0.1); }
.sp-btn.save.saved { color: #a89ff7; border-color: rgba(124,111,247,0.4); }

.sp-prompt-box {
    background: #0d1526;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}
.sp-prompt-label { font-size: 10px; color: #475569; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 8px; }
.sp-prompt-text {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.75;
    max-height: 180px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
}
.sp-prompt-text::-webkit-scrollbar { width: 4px; }
.sp-prompt-text::-webkit-scrollbar-track { background: transparent; }
.sp-prompt-text::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.sp-section { margin-bottom: 20px; }
.sp-section-title { font-size: 11px; color: #475569; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 10px; }

.sp-stars { display: flex; gap: 4px; margin-bottom: 6px; }
.sp-star { font-size: 22px; cursor: pointer; color: #1e2d45; transition: color 0.15s; }
.sp-star.active { color: #f59e0b; }
.sp-rating-text { font-size: 12px; color: #475569; }

.sp-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-tag {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    color: #64748b;
    transition: all 0.15s;
}
.sp-tag:hover { border-color: rgba(124,111,247,0.35); color: #a89ff7; }

.sp-share { display: flex; gap: 8px; flex-wrap: wrap; }
.sp-share-btn {
    display: flex; align-items: center; gap: 5px;
    padding: 7px 13px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    border: 1px solid;
    font-family: inherit;
    background: transparent;
    transition: opacity 0.15s;
}
.sp-share-btn:hover { opacity: 0.8; }
.sp-share-btn.wa  { color: #4ade80; border-color: rgba(74,222,128,0.25); }
.sp-share-btn.fb  { color: #60a5fa; border-color: rgba(96,165,250,0.25); }
.sp-share-btn.tw  { color: #94a3b8; border-color: rgba(148,163,184,0.2); }
.sp-share-btn.lnk { color: #94a3b8; border-color: rgba(148,163,184,0.2); }

/* Comments */
.sp-comments-wrap { max-width: 1200px; margin: 32px auto 0; padding: 0 24px 32px; }
.sp-comments-title { font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 16px; }
.sp-comments-wrap .comment-form input,
.sp-comments-wrap .comment-form textarea {
    background: #111827; border: 1px solid rgba(255,255,255,0.1);
    color: #e2e8f0; border-radius: 8px; padding: 10px 14px; font-family: inherit;
}
.sp-comments-wrap .comment-form .submit input {
    background: #7c6ff7; color: #fff; border-color: #7c6ff7;
    padding: 9px 24px; cursor: pointer; font-size: 13px;
}

/* Related */
.sp-related { max-width: 1200px; margin: 0 auto; padding: 0 24px 48px; }
.sp-related-title { font-size: 18px; font-weight: 600; color: #fff; margin-bottom: 16px; }
.sp-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 14px; }
.sp-rel-card {
    background: #111827;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    overflow: hidden;
    display: block;
    transition: border-color 0.2s;
}
.sp-rel-card:hover { border-color: rgba(124,111,247,0.35); }
.sp-rel-card img { width: 100%; height: 120px; object-fit: cover; display: block; }
.sp-rel-card-body { padding: 9px 11px; }
.sp-rel-cat { font-size: 10px; color: #7c6ff7; margin-bottom: 3px; }
.sp-rel-title { font-size: 12px; font-weight: 500; color: #e2e8f0; }

/* ══════════════════════════════════════
   ARCHIVE PAGE
══════════════════════════════════════ */
.pp-archive-header { padding: 32px 24px 20px; max-width: 800px; }
.pp-archive-title { font-size: 26px; font-weight: 600; color: #fff; margin-bottom: 8px; }
.pp-archive-desc { font-size: 14px; color: #64748b; margin-bottom: 8px; }
.pp-archive-count { font-size: 12px; color: #475569; }

/* ══════════════════════════════════════
   ACCOUNT PAGE
══════════════════════════════════════ */
.pp-account-page { padding: 0 24px 48px; max-width: 1000px; margin: 0 auto; }
.pp-account-header {
    display: flex; align-items: center; gap: 14px;
    padding: 24px 0 20px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    margin-bottom: 20px;
}
.pp-account-avatar {
    width: 48px; height: 48px; border-radius: 50%;
    background: rgba(124,111,247,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 600; color: #a89ff7;
}
.pp-account-name { font-size: 16px; font-weight: 500; color: #fff; }
.pp-account-email { font-size: 13px; color: #475569; }
.pp-account-tabs { margin-bottom: 20px; }
.pp-empty-state { text-align: center; padding: 60px 20px; color: #475569; }
.pp-empty-state .ti { font-size: 48px; display: block; margin-bottom: 12px; }
.pp-empty-state p { margin-bottom: 16px; }

/* ══════════════════════════════════════
   SUBMIT PAGE
══════════════════════════════════════ */
.pp-submit-page { padding: 0 24px 48px; max-width: 700px; margin: 0 auto; }
.pp-submit-header { padding: 32px 0 24px; }
.pp-submit-header h1 { font-size: 24px; font-weight: 600; color: #fff; margin-bottom: 6px; }
.pp-submit-header p { font-size: 14px; color: #64748b; }
.pp-submit-form { background: #111827; border: 1px solid rgba(255,255,255,0.07); border-radius: 14px; padding: 24px; }
.pp-field { margin-bottom: 18px; }
.pp-field label { display: block; font-size: 12px; color: #64748b; font-weight: 500; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.4px; }
.pp-field input, .pp-field select, .pp-field textarea {
    width: 100%;
    background: #0d1526;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 9px;
    padding: 10px 14px;
    color: #e2e8f0;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}
.pp-field input:focus, .pp-field select:focus, .pp-field textarea:focus { border-color: rgba(124,111,247,0.5); }
.pp-field small { font-size: 11px; color: #475569; margin-top: 5px; display: block; }
.pp-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 500px) { .pp-field-row { grid-template-columns: 1fr; } }
.pp-submit-msg { font-size: 13px; margin-bottom: 12px; }
.pp-submit-msg.success { color: #4ade80; }
.pp-submit-msg.error   { color: #f87171; }

/* ══════════════════════════════════════
   MODAL
══════════════════════════════════════ */
.pp-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.pp-modal-overlay.open { display: flex; }
.pp-modal {
    background: #111827;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 32px;
    width: 100%;
    max-width: 400px;
    position: relative;
}
.pp-modal-close {
    position: absolute; top: 16px; right: 16px;
    background: transparent; border: none; color: #475569;
    font-size: 18px; cursor: pointer;
}
.pp-modal-tab { display: none; }
.pp-modal-tab.active { display: block; }
.pp-modal-logo { font-size: 18px; font-weight: 600; margin-bottom: 16px; }
.pp-modal-logo span { color: #7c6ff7; }
.pp-modal h2 { font-size: 20px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.pp-modal-sub { font-size: 13px; color: #64748b; margin-bottom: 20px; }
.pp-modal-msg { font-size: 13px; margin-bottom: 10px; min-height: 18px; }
.pp-modal-msg.error   { color: #f87171; }
.pp-modal-msg.success { color: #4ade80; }
.pp-modal-field { margin-bottom: 14px; }
.pp-modal-field label { display: block; font-size: 12px; color: #64748b; margin-bottom: 5px; }
.pp-modal-field input {
    width: 100%; background: #0d1526;
    border: 1px solid rgba(255,255,255,0.1); border-radius: 9px;
    padding: 11px 14px; color: #e2e8f0; font-size: 13px; font-family: inherit; outline: none;
}
.pp-modal-field input:focus { border-color: rgba(124,111,247,0.5); }
.pp-modal-btn {
    width: 100%; background: #7c6ff7; color: #fff;
    border: none; border-radius: 9px; padding: 12px;
    font-size: 14px; font-weight: 500; cursor: pointer; font-family: inherit;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    transition: background 0.15s; margin-top: 4px;
}
.pp-modal-btn:hover { background: #6a5ee8; }
.pp-modal-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.pp-modal-switch { font-size: 13px; color: #475569; text-align: center; margin-top: 14px; }
.pp-modal-switch span { color: #7c6ff7; cursor: pointer; }
.pp-modal-switch span:hover { text-decoration: underline; }

/* ══════════════════════════════════════
   TOAST
══════════════════════════════════════ */
.pp-toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
    background: #1e293b;
    border: 1px solid rgba(124,111,247,0.35);
    color: #a89ff7;
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 13px;
    display: none;
    z-index: 99999;
    display: flex; align-items: center; gap: 6px;
    opacity: 0; transition: opacity 0.2s;
    pointer-events: none;
}
.pp-toast.show { opacity: 1; }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 768px) {
    .pp-hero h1 { font-size: 22px; }
    .pp-filters { flex-direction: column; align-items: flex-start; }
    .sp-main { padding: 0 16px; }
    .pp-masonry { padding: 0 16px 24px; }
    .pp-cats { padding: 0 16px 32px; }
    .sp-img-wrap { position: static; }
    .sp-title { font-size: 20px; }
}
