/* ── Page wrapper ────────────────────────────────────────────── */
.tool-page-wrap {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

/* ── Breadcrumb ──────────────────────────────────────────────── */
.tool-breadcrumb {
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 24px;
    padding-top: 24px;
}

.tool-breadcrumb a {
    color: #7c3aed;
    text-decoration: none;
}

.tool-breadcrumb a:hover { text-decoration: underline; }

.tool-breadcrumb span { margin: 0 6px; color: #334155; }

/* ── Tool hero ───────────────────────────────────────────────── */
.tool-hero {
    margin-bottom: 32px;
}

.tool-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #f1f5f9;
    line-height: 1.2;
    margin-bottom: 10px;
}

.tool-hero h1 span {
    color: #a78bfa;
}

.tool-hero p {
    font-size: 1rem;
    color: #94a3b8;
    line-height: 1.6;
    max-width: 600px;
}

/* ── Tool interface box ──────────────────────────────────────── */
.tool-box {
    width: 100%;
    background: #0f0f1e;
    border: 1px solid #2d2d4e;
    border-radius: 20px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

/* ── Tool main (used in some tools) ─────────────────────────── */
.tool-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.tool-main .tool-card {
    background: #0f0f1e;
    border: 1px solid #2d2d4e;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-decoration: none;
    color: white;
}

.tool-main .tool-card h2 {
    font-size: 1rem;
    font-weight: 700;
    color: #e2e8f0;
}

/* ── Inputs ──────────────────────────────────────────────────── */
.tool-input {
    width: 100%;
    padding: 12px 16px;
    background: #06060e;
    border: 1px solid #2d2d4e;
    border-radius: 10px;
    color: #f1f5f9;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}

.tool-input:focus { border-color: #7c3aed; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-primary {
    background: #7c3aed;
    color: #fff;
    border: none;
    padding: 11px 22px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    font-family: inherit;
}

.btn-primary:hover {
    background: #6d28d9;
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: #94a3b8;
    border: 1px solid #2d2d4e;
    padding: 11px 18px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-secondary:hover {
    border-color: #7c3aed;
    color: #f1f5f9;
}

/* ── Copy toast ──────────────────────────────────────────────── */
#copy-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #7c3aed;
    color: #fff;
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
    z-index: 9999;
}

#copy-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ── Divider ─────────────────────────────────────────────────── */
.tool-divider {
    width: 100%;
    border: none;
    border-top: 1px solid #1e1e32;
    margin: 40px 0;
}

/* ── Section wrapper ─────────────────────────────────────────── */
.tool-section {
    width: 100%;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.section-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 4px;
}

/* ── Example Usage ───────────────────────────────────────────── */
.example-box {
    background: #0f0f1e;
    border: 1px solid #1e1e32;
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.example-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.ex-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    min-width: 52px;
    padding-top: 2px;
    flex-shrink: 0;
}

.ex-value {
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.5;
}

.ex-value.highlight {
    color: #c4b5fd;
    font-weight: 600;
}

.example-divider {
    border: none;
    border-top: 1px solid #1e1e32;
    margin: 0;
}

/* ── SEO / About ─────────────────────────────────────────────── */
.seo-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.seo-content p {
    font-size: 0.92rem;
    color: #94a3b8;
    line-height: 1.75;
}

/* ── FAQ accordion ───────────────────────────────────────────── */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.faq-item {
    background: #0f0f1e;
    border: 1px solid #1e1e32;
    border-radius: 10px;
    overflow: hidden;
}

.faq-item summary {
    padding: 14px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #e2e8f0;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    font-size: 1.1rem;
    color: #64748b;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.faq-item[open] summary::after { content: '−'; }

.faq-item p {
    padding: 12px 18px 14px;
    font-size: 0.87rem;
    color: #94a3b8;
    line-height: 1.6;
    border-top: 1px solid #1e1e32;
}

/* ── Related Tools grid ──────────────────────────────────────── */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 10px;
}

.related-card {
    background: #0f0f1e;
    border: 1px solid #1e1e32;
    border-radius: 12px;
    padding: 16px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: border-color 0.2s, background 0.2s;
}

.related-card:hover {
    border-color: #7c3aed;
    background: #1e0a3c;
}

.related-icon { font-size: 1.4rem; line-height: 1; }
.related-name { font-size: 0.85rem; font-weight: 700; color: #e2e8f0; line-height: 1.3; }
.related-desc { font-size: 0.77rem; color: #64748b; line-height: 1.4; }

/* ── Related Tools simple list ───────────────────────────────── */
.related-tools-simple h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 12px;
}

.related-tools-simple ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.related-tools-simple li::before {
    content: '→';
    color: #7c3aed;
    margin-right: 8px;
    font-weight: 700;
}

.related-tools-simple a {
    color: #c4b5fd;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.15s;
}

.related-tools-simple a:hover {
    color: #c084fc;
    text-decoration: underline;
}

/* ── Helpful Content ─────────────────────────────────────────── */
.helpful-content h2 {
    font-size: 1rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 10px;
}

.helpful-content h2 + p {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 18px;
}

.helpful-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.helpful-content li {
    font-size: 0.88rem;
    color: #94a3b8;
    padding-left: 18px;
    position: relative;
    line-height: 1.5;
}

.helpful-content li::before {
    content: '•';
    color: #7c3aed;
    position: absolute;
    left: 0;
    font-weight: 700;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 600px) {
    .tool-page-wrap { padding: 0 16px 60px; }
    .tool-hero h1 { font-size: 1.5rem; }
    .tool-box { padding: 20px 16px; }
    .btn-row { flex-direction: column; }
    .btn-primary, .btn-secondary { width: 100%; text-align: center; }
}
