/* NewPrompt — tools.css (All Tools + Category + ComingSoon pages) */

/* ── All Tools page wrapper ─────────────────────────────────── */
.np-tools-page { padding-bottom: 4rem; }

.np-tools-page-hdr {
    padding: 2.5rem 0 1.5rem;
}

.np-tools-page-title {
    font-size: 1.875rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.4rem;
}

.np-tools-page-sub {
    color: var(--np-text-secondary);
    font-size: 0.9rem;
}

/* ── Filter pills ───────────────────────────────────────────── */
.np-tools-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--np-border);
}

.np-tools-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 0.35rem 0.85rem;
    border: 1px solid var(--np-border);
    border-radius: 999px;
    background: var(--np-bg-card);
    color: var(--np-text-secondary);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.12s;
    white-space: nowrap;
}

.np-tools-pill:hover {
    border-color: rgba(255,255,255,0.18);
    color: var(--np-text-primary);
    transform: translateY(-1px);
}

.np-tools-pill--active {
    border-color: rgba(248,113,113,0.36);
    background: rgba(239,68,68,0.12);
    color: #fca5a5;
}

.np-tools-pill--active:hover {
    border-color: rgba(248,113,113,0.55);
    background: rgba(239,68,68,0.18);
    color: #fecaca;
}

.np-tools-pill span {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    color: var(--np-text-muted);
    font-size: 0.65rem;
    font-weight: 700;
}

.np-tools-pill--active span {
    background: rgba(239,68,68,0.18);
    color: #fecaca;
}

/* ── Category section ───────────────────────────────────────── */
.np-tools-cat-section {
    margin-top: 2.5rem;
}

.np-tools-cat-section[hidden] { display: none !important; }

.np-tools-cat-hdr {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--np-border);
}

.np-tools-cat-icon {
    font-size: 0.95rem;
    line-height: 1;
    color: var(--np-accent-light);
    align-self: center;
}

.np-tools-cat-name {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0;
}

.np-tools-cat-name a {
    color: var(--np-text-primary);
    text-decoration: none;
    transition: color 0.15s;
}

.np-tools-cat-name a:hover { color: var(--np-accent-light); text-decoration: none; }

.np-tools-cat-sep {
    display: inline-block;
    width: 1px;
    height: 0.85em;
    background: var(--np-border);
    align-self: center;
    flex-shrink: 0;
}

.np-tools-cat-desc {
    color: var(--np-text-muted);
    font-size: 0.8rem;
    line-height: 1.4;
    flex: 1;
    min-width: 0;
}

/* ── Tool card grid ─────────────────────────────────────────── */
.np-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

/* ── Tool card ──────────────────────────────────────────────── */
.np-tc {
    position: relative;
    background: var(--np-bg-card);
    border: 1px solid var(--np-border);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.15s, background 0.15s, transform 0.12s;
}

.np-tc::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--np-accent), #818cf8);
    opacity: 0;
    transition: opacity 0.15s;
}

.np-tc:not(.np-tc--soon):hover {
    border-color: rgba(99,102,241,0.32);
    background: #14162000;
    background-color: #181b26;
    transform: translateY(-1px);
}

.np-tc:not(.np-tc--soon):hover::before { opacity: 1; }

.np-tc--soon { opacity: 0.6; }
.np-tc--soon:hover { opacity: 0.75; }

.np-tc-link {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 1rem;
    color: inherit;
    text-decoration: none;
    min-height: 44px;
}

.np-tc-link:hover { text-decoration: none; }

/* Badge — absolute top-right */
.np-tc-badge {
    position: absolute;
    top: 9px;
    right: 9px;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
}

.np-tc-badge--live {
    background: rgba(251,191,36,0.12);
    color: #fbbf24;
    border: 1px solid rgba(251,191,36,0.28);
}

.np-tc-badge--soon {
    background: rgba(255,255,255,0.05);
    color: var(--np-text-muted);
    border: 1px solid var(--np-border);
}

/* Category icon box */
.np-tc-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--np-accent-dim);
    font-size: 0.95rem;
    margin-bottom: 2px;
    flex-shrink: 0;
    line-height: 1;
}

.np-tc-icon--muted { background: rgba(255,255,255,0.04); }

.np-tc-title {
    font-size: 0.8125rem;
    font-weight: 650;
    color: var(--np-text-primary);
    letter-spacing: -0.01em;
    margin: 0;
    padding-right: 2.5rem; /* space for badge */
    line-height: 1.3;
}

.np-tc--soon .np-tc-title { color: var(--np-text-secondary); }

.np-tc-desc {
    font-size: 0.74rem;
    line-height: 1.6;
    color: var(--np-text-secondary);
    margin: 0;
}

/* ── Coming Soon page ───────────────────────────────────────── */
.np-cs-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 1.5rem;
    min-height: 55vh;
}

.np-cs {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 480px;
    gap: 0;
}

.np-cs-icon {
    display: block;
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    line-height: 1;
}

.np-cs-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

.np-cs-desc {
    color: var(--np-text-secondary);
    font-size: 0.9375rem;
    line-height: 1.65;
    margin-bottom: 0.5rem;
}

.np-cs-note {
    color: var(--np-text-muted);
    font-size: 0.84rem;
    margin-bottom: 2rem;
}

.np-cs-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 1.35rem;
    background: linear-gradient(135deg, var(--np-accent), #4338ca);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 650;
    border-radius: 10px;
    text-decoration: none;
    transition: opacity 0.15s;
    margin-bottom: 1rem;
}

.np-cs-btn:hover { opacity: 0.85; text-decoration: none; color: #fff; }

.np-cs-all-link {
    font-size: 0.8125rem;
    color: var(--np-text-muted);
    text-decoration: none;
    transition: color 0.15s;
}

.np-cs-all-link:hover { color: var(--np-text-secondary); text-decoration: none; }

/* ── Category detail page ───────────────────────────────────── */
.np-cat-hdr-block {
    border-bottom: 1px solid var(--np-border);
    margin-bottom: 2rem;
}

.np-cat-page-icon {
    display: block;
    font-size: 1.5rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}

[data-cat-key="prompt-builders"]   .np-cat-page-icon { color: #a78bfa; filter: drop-shadow(0 0 10px #a78bfa); }
[data-cat-key="structured-output"] .np-cat-page-icon { color: #38bdf8; filter: drop-shadow(0 0 10px #38bdf8); }
[data-cat-key="coding-workflows"]  .np-cat-page-icon { color: #f59e0b; filter: drop-shadow(0 0 10px #f59e0b); }
[data-cat-key="context-tools"]     .np-cat-page-icon { color: #34d399; filter: drop-shadow(0 0 10px #34d399); }
[data-cat-key="prompt-utilities"]  .np-cat-page-icon { color: #fb7185; filter: drop-shadow(0 0 10px #fb7185); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .np-tools-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .np-tools-cat-hdr { flex-wrap: wrap; }
    .np-tools-cat-sep { display: none; }
    .np-tools-cat-desc { width: 100%; }
}

@media (max-width: 480px) {
    .np-tools-grid { grid-template-columns: 1fr 1fr; }
    .np-tools-filter { gap: 6px; }
    .np-tools-pill { font-size: 0.72rem; padding: 0.3rem 0.65rem; min-height: 32px; }
}

/* ── Related Resources (tool detail) ──────────────────────────── */
.np-tool-res {
    margin-top: 2.5rem;
}

.np-tool-res-hdr {
    margin-bottom: 1.25rem;
}

.np-tool-res-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--np-text-muted);
    margin-bottom: 0.25rem;
}

.np-tool-res-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--np-text-primary);
    margin: 0;
}

.np-tool-res-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.75rem;
}

.np-tool-res-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: var(--np-bg-card);
    border: 1px solid var(--np-border);
    border-radius: var(--np-radius-sm);
    padding: 1rem 1.125rem;
    transition: border-color 0.15s;
}

.np-tool-res-card:hover {
    border-color: rgba(99, 91, 255, 0.25);
}

.np-tool-res-card-cat {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    background: rgba(99, 91, 255, 0.1);
    border: 1px solid rgba(99, 91, 255, 0.18);
    border-radius: 5px;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--np-accent-light);
    letter-spacing: 0.02em;
    width: fit-content;
}

.np-tool-res-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--np-text-primary);
    margin: 0;
}

.np-tool-res-card-title a {
    color: inherit;
    text-decoration: none;
}

.np-tool-res-card-title a:hover { color: var(--np-accent-light); text-decoration: none; }

.np-tool-res-card-summary {
    font-size: 0.8rem;
    color: var(--np-text-secondary);
    line-height: 1.55;
    margin: 0;
}

.np-tool-res-card-models {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.np-tool-res-model {
    padding: 0.12rem 0.45rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--np-border);
    border-radius: 4px;
    font-size: 0.66rem;
    font-weight: 600;
    color: var(--np-text-muted);
    white-space: nowrap;
}

.np-tool-res-card-cta {
    display: inline-flex;
    align-items: center;
    margin-top: auto;
    padding-top: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--np-accent-light);
    text-decoration: none;
    letter-spacing: 0.01em;
}

.np-tool-res-card-cta:hover { color: var(--np-text-primary); text-decoration: none; }

@media (max-width: 640px) {
    .np-tool-res-grid { grid-template-columns: 1fr; }
}
