/* ============================================================
   PROMPTS PAGE — AIToolsRecap
   Matches the site's existing design language (site.css vars)
   ============================================================ */

/* ── Layout ── */
.prompts-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 80vh;
    align-items: start;
}

/* ── Sidebar ── */
.prompts-sidebar {
    border-right: 1px solid var(--rule);
    position: sticky;
    top: 0;
    max-height: 100vh;
    overflow-y: auto;
    padding-bottom: 40px;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 16px 12px;
    border-bottom: 1px solid var(--rule);
}
.sidebar-title {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
}
.sidebar-count {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    color: var(--muted);
    background: var(--surface);
    padding: 2px 8px;
    border-radius: 10px;
}

.sidebar-filter {
    padding: 10px 12px;
    border-bottom: 1px solid var(--rule);
}
.sidebar-select {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid var(--rule);
    border-radius: 6px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: var(--ink);
    background: var(--paper);
    cursor: pointer;
}

/* ── Sidebar list items ── */
.prompt-list-item {
    display: block;
    padding: 12px 16px;
    border-bottom: 1px solid var(--rule);
    text-decoration: none;
    transition: background 0.15s;
}
.prompt-list-item:hover { background: var(--surface); }
.prompt-list-item.active {
    background: var(--surface);
    border-left: 3px solid var(--accent);
    padding-left: 13px;
}

.pli-top {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}
.pli-tool {
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 3px;
}
.pli-tool-claude    { background: #fef3c7; color: #92400e; }
.pli-tool-chatgpt   { background: #d1fae5; color: #065f46; }
.pli-tool-gemini    { background: #dbeafe; color: #1e40af; }
.pli-tool-grok      { background: #f3e8ff; color: #6b21a8; }

.pli-cat {
    font-size: 11px;
    color: var(--muted);
}
.pli-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.4;
    margin-bottom: 3px;
}
.pli-meta {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    color: var(--muted);
}

/* ── Main panel ── */
.prompts-main {
    padding: 32px 40px;
}

/* ── Empty state ── */
.prompts-empty {
    text-align: center;
    padding: 60px 20px;
}
.prompts-empty-icon { font-size: 48px; margin-bottom: 16px; }
.prompts-empty h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: var(--ink);
}
.prompts-empty p {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 32px;
}

.prompts-empty-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 400px;
    margin: 0 auto;
}
.prompts-empty-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px;
    border: 1px solid var(--rule);
    border-radius: 8px;
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s;
}
.prompts-empty-card:hover {
    border-color: var(--accent);
    background: var(--surface);
}
.pec-tool {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 3px;
}
.pec-tool.claude  { background: #fef3c7; color: #92400e; }
.pec-tool.chatgpt { background: #d1fae5; color: #065f46; }
.pec-cat {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
}

/* ── Prompt page header ── */
.prompt-header {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--rule);
}
.prompt-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.ph-tool {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 3px;
}
.ph-tool-claude    { background: #fef3c7; color: #92400e; }
.ph-tool-chatgpt   { background: #d1fae5; color: #065f46; }
.ph-tool-gemini    { background: #dbeafe; color: #1e40af; }
.ph-tool-grok      { background: #f3e8ff; color: #6b21a8; }

.ph-cat {
    font-size: 12px;
    color: var(--muted);
    font-family: 'DM Mono', monospace;
}
.prompt-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--ink);
    line-height: 1.2;
    margin-bottom: 12px;
}
.prompt-intro {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 14px;
    max-width: 680px;
}
.prompt-meta {
    display: flex;
    gap: 20px;
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: var(--muted);
}

/* ── Tip box ── */
.prompt-tip-box {
    background: var(--surface);
    border: 1px solid var(--rule);
    border-left: 3px solid var(--accent);
    border-radius: 6px;
    padding: 14px 18px;
    font-size: 13px;
    color: var(--ink);
    margin-bottom: 28px;
    line-height: 1.6;
}
.prompt-tip-box code {
    background: rgba(0,0,0,0.06);
    padding: 1px 5px;
    border-radius: 3px;
    font-family: 'DM Mono', monospace;
    font-size: 12px;
}

/* ── Prompt items ── */
.prompt-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.prompt-item {
    border: 1px solid var(--rule);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.15s;
}
.prompt-item:hover { border-color: var(--accent); }

.pi-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--rule);
}
.pi-num {
    min-width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}
.pi-info { flex: 1; }
.pi-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 3px;
}
.pi-usecase {
    font-size: 12px;
    color: var(--muted);
}

.pi-copy-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s;
    flex-shrink: 0;
}
.pi-copy-btn:hover {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}
.pi-copy-btn.copied {
    background: #16a34a;
    color: #fff;
    border-color: #16a34a;
}

.pi-prompt-text {
    padding: 18px 20px;
    font-family: 'DM Mono', monospace;
    font-size: 12.5px;
    line-height: 1.8;
    color: var(--ink);
    white-space: pre-wrap;
    background: var(--paper);
    user-select: text;
}

/* ── Share bar ── */
.prompt-share-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid var(--rule);
    flex-wrap: wrap;
}
.share-label {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}
.share-buttons { display: flex; gap: 8px; }
.share-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: opacity 0.15s;
}
.share-btn:hover { opacity: 0.8; }
.share-x    { background: #000; color: #fff; }
.share-copy { background: var(--surface); color: var(--ink); border: 1px solid var(--rule); }
.share-copy.copied { background: #16a34a; color: #fff; border-color: #16a34a; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .prompts-layout {
        grid-template-columns: 1fr;
    }
    .prompts-sidebar {
        position: static;
        max-height: none;
        border-right: none;
        border-bottom: 1px solid var(--rule);
    }
    .prompts-main {
        padding: 24px 16px;
    }
    .prompt-title { font-size: 1.4rem; }
    .pi-prompt-text { font-size: 11.5px; }
}
