/* =========================================================
   Tools pages — shared styling for /tools/* routes.
   Designed to work alongside style-base.css (which provides
   header, footer, button and utility classes). This file
   adds the tool-specific shell, dropzone and step/feature
   cards.
========================================================= */

/* Header is position:sticky (see .glass-header in style-base.css), so it's
   already in the document flow — no need to push the body down. Adding
   padding-top here was the "header appears to float detached" bug on
   /tools/mute-video. */

.tool-shell {
    max-width: 920px;
    margin: 0 auto;
    padding: 2rem 1.25rem 4rem;
    display: grid;
    gap: 2.5rem;
}

.tool-hero {
    text-align: center;
    display: grid;
    gap: 0.75rem;
    justify-items: center;
}

.tool-hero h1 {
    font-size: clamp(1.8rem, 5vw, 2.75rem);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.tool-subtitle {
    color: #94a3b8;
    font-size: 1.05rem;
    line-height: 1.55;
    max-width: 600px;
    margin: 0 auto;
}

.tool-badge {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ---- Workspace / dropzone ----------------------------- */
.tool-workspace {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.mute-form {
    display: grid;
    gap: 1.25rem;
}

.mute-dropzone {
    border: 2px dashed rgba(139, 92, 246, 0.35);
    border-radius: 14px;
    padding: 3rem 1.5rem;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, transform 0.15s;
    text-align: center;
    color: #cbd5e1;
}

.mute-dropzone:hover,
.mute-dropzone.drop-active {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.06);
    transform: translateY(-1px);
}

.mute-dropzone .upload-content {
    display: grid;
    gap: 0.5rem;
    justify-items: center;
}

.mute-dropzone svg {
    color: var(--primary);
    opacity: 0.8;
}

.mute-dropzone p {
    margin: 0;
    font-weight: 600;
    color: #e2e8f0;
}

.mute-dropzone small {
    color: #94a3b8;
}

.mute-file-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 10px;
    border: 1px solid rgba(139, 92, 246, 0.15);
}

.mute-file-name {
    font-weight: 600;
    color: #e2e8f0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 70%;
}

.mute-file-size {
    color: #94a3b8;
    font-size: 0.9rem;
}

.mute-submit {
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.mute-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.mute-error {
    padding: 0.75rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #fca5a5;
    font-size: 0.95rem;
}

/* ---- Result card -------------------------------------- */
.mute-result {
    display: grid;
    gap: 1rem;
    justify-items: center;
    text-align: center;
    padding: 1rem;
}

.mute-result-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 2.25rem;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.35);
}

.mute-result-text {
    font-size: 1.15rem;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0;
}

.mute-result .btn-primary,
.mute-result .btn-secondary {
    min-width: 220px;
}

/* ---- Guest gate --------------------------------------- */
.tool-auth-gate {
    text-align: center;
    padding: 2.5rem 1.5rem;
    display: grid;
    gap: 1rem;
    justify-items: center;
}

.tool-auth-gate p {
    font-size: 1.05rem;
    color: #e2e8f0;
    margin: 0;
}

/* ---- Step / feature sections -------------------------- */
.tool-section {
    display: grid;
    gap: 1.5rem;
}

.tool-section h2 {
    font-size: clamp(1.4rem, 3.5vw, 1.75rem);
    color: #e2e8f0;
    margin: 0;
    text-align: center;
}

.step-grid,
.feature-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.step-card,
.feature-card {
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.12);
    border-radius: 14px;
    display: grid;
    gap: 0.5rem;
}

.step-card h3,
.feature-card h3 {
    margin: 0;
    color: #e2e8f0;
    font-size: 1.05rem;
}

.step-card p,
.feature-card p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.55;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 1.05rem;
}

/* ---- FAQ ---------------------------------------------- */
.faq-list {
    display: grid;
    gap: 0.75rem;
}

.faq-item {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.12);
    border-radius: 10px;
    padding: 1rem 1.25rem;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    color: #e2e8f0;
    list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
    content: "▸";
    margin-right: 0.5rem;
    transition: transform 0.15s;
    display: inline-block;
}

.faq-item[open] summary::before {
    transform: rotate(90deg);
}

.faq-item p {
    margin: 0.75rem 0 0;
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.55;
}

.privacy-note {
    text-align: center;
    color: #64748b;
    font-size: 0.85rem;
    font-style: italic;
    margin: 1rem 0 0;
}

/* ---- Hidden utility (matches style-base.css convention) --- */
.tool-page .hidden { display: none !important; }
