/* Swapfile tool pages — styled to match the CyberNovaWorks.store main site theme.
   Loaded AFTER ../../styles.css so these override the main-theme defaults only where needed. */

.wrap {
    max-width: 780px;
    margin: 0 auto;
    padding: 170px 20px 70px;
}

.hero {
    display: block;
    min-height: 0;
    padding: 0;
    text-align: center;
    margin-bottom: 32px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2.6rem;
    letter-spacing: -0.01em;
    margin: 0 0 12px;
    color: var(--text-main);
}

.tagline {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 48ch;
    margin: 0 auto;
}

.panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 24px;
}

.dropzone {
    border: 1.5px dashed var(--border-color);
    border-radius: 12px;
    padding: 36px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.dropzone:hover,
.dropzone:focus-visible {
    border-color: var(--vibrant-blue);
    background: rgba(0, 229, 255, 0.06);
    outline: none;
}

.dropzone.dragover {
    border-color: var(--vibrant-blue);
    background: rgba(0, 229, 255, 0.06);
}

.drop-icon {
    color: var(--vibrant-blue);
    margin-bottom: 8px;
}

.drop-label {
    margin: 0 0 4px;
    font-size: 0.95rem;
    color: var(--text-main);
}

.drop-hint {
    margin: 0;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.filelist {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filelist li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.8rem;
}

.filelist .fname {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-main);
}

.filelist .fsize {
    color: var(--text-muted);
    margin-left: 10px;
    flex-shrink: 0;
}

.filelist .remove {
    background: none;
    border: none;
    color: var(--maroon);
    cursor: pointer;
    font-size: 0.95rem;
    margin-left: 10px;
    flex-shrink: 0;
}

.convert-btn {
    width: 100%;
    margin-top: 18px;
    padding: 12px;
    border-radius: 30px;
    border: none;
    background: var(--grad-blue);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.convert-btn:disabled {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    cursor: not-allowed;
}

.convert-btn:not(:disabled):hover {
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.35);
}

.convert-btn.busy {
    position: relative;
    color: transparent;
}

.convert-btn.busy::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.results {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.82rem;
}

.result-item a {
    color: var(--vibrant-blue);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1.5px solid rgba(0, 229, 255, 0.4);
}

.result-note {
    font-size: 0.74rem;
    color: var(--text-muted);
    margin-top: -2px;
}

.error-note {
    color: var(--maroon);
    font-size: 0.8rem;
    margin-top: 10px;
}

.about {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.about h2 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-main);
    margin: 0 0 10px;
}

.about h3 {
    font-size: 0.9rem;
    color: var(--vibrant-blue);
    margin: 22px 0 10px;
    font-family: var(--font-heading);
}

.about p {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 62ch;
}

.about dl {
    margin: 0;
}

.about dt {
    font-size: 0.85rem;
    color: var(--text-main);
    font-weight: 600;
    margin-top: 12px;
}

.about dd {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 4px 0 0;
    line-height: 1.6;
}

.steps {
    margin: 0;
    padding-left: 20px;
    font-size: 0.85rem;
    line-height: 1.9;
    color: var(--text-muted);
}

.other-tools {
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.other-tools h3 {
    font-size: 0.9rem;
    color: var(--vibrant-blue);
    margin: 0 0 12px;
    font-family: var(--font-heading);
}

.other-tools ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.other-tools a {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    transition: color 0.2s, border-color 0.2s;
}

.other-tools a:hover {
    color: var(--vibrant-blue);
    border-color: var(--vibrant-blue);
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .wrap { padding: 150px 14px 50px; }
}

/* ========== OPTIONS PANEL (tools with settings, e.g. resize-video) ========== */
.tool-opts {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.opt-block {
    display: block;
}

.opt-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.preset-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.preset-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 13px;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.preset-btn:hover {
    color: var(--text-main);
    border-color: var(--vibrant-blue);
}

.preset-btn.is-active {
    background: rgba(0, 229, 255, 0.12);
    border-color: var(--vibrant-blue);
    color: var(--vibrant-blue);
}

.opt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 14px;
}

.opt-field {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 14px;
}

.opt-grid .opt-field {
    margin-top: 0;
}

.opt-field input,
.opt-field select {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 9px 11px;
    border-radius: 9px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 0.85rem;
}

.opt-field input:focus-visible,
.opt-field select:focus-visible {
    outline: none;
    border-color: var(--vibrant-blue);
}

/* Native file picker — the button needs its own contrast to sit inside a dark card. */
.opt-field input[type="file"] {
    padding: 7px 9px;
    font-family: var(--font-heading);
    font-size: 0.78rem;
}

.opt-field input[type="file"]::file-selector-button {
    margin-right: 10px;
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    background: rgba(0, 229, 255, 0.12);
    color: var(--vibrant-blue);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

.opt-field input[type="file"]::file-selector-button:hover {
    border-color: var(--vibrant-blue);
}

.opt-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
}

.opt-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--vibrant-blue);
    cursor: pointer;
}

.opt-note {
    margin: 14px 0 0;
    font-size: 0.75rem;
    line-height: 1.6;
    color: var(--text-muted);
}

@media (max-width: 480px) {
    .opt-grid { grid-template-columns: 1fr; }
}

/* ========== WHATSAPP FLOATING BUTTON ========== */
.wa-float {
    position: fixed;
    bottom: 22px;
    right: 22px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    z-index: 9999;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wa-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 26px rgba(37, 211, 102, 0.6);
}

.wa-float::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.4);
    z-index: -1;
    animation: wa-pulse 2s infinite;
}

@keyframes wa-pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.8); opacity: 0; }
}

.wa-float .wa-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    background: #111827;
    color: #fff;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.wa-float:hover .wa-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

@media (max-width: 600px) {
    .wa-float {
        bottom: 16px;
        right: 16px;
        width: 52px;
        height: 52px;
        font-size: 26px;
    }
}

/* ---------- breadcrumb (tool + category pages) ---------- */
.crumbs {
    max-width: 1000px;
    margin: 0 auto;
    padding: 22px 24px 0;
    font-size: 13.5px;
    line-height: 1.6;
    color: #8b8ba3;
}
.crumbs a { color: #8b8ba3; text-decoration: none; }
.crumbs a:hover { color: #60a5fa; }
.crumbs span[aria-current] { color: #d5d5e5; }

/* ---------- "All <category> tools" link in the hub section header ---------- */
.cat-more {
    margin-left: 10px;
    font-size: 12.5px;
    font-weight: 600;
    color: #60a5fa;
    text-decoration: none;
    white-space: nowrap;
}
.cat-more:hover { text-decoration: underline; }

/* Two related-tools grids per page: this keeps the second one visually quieter
   so the primary set still reads first. */
.other-tools + .other-tools h3 { color: #9ca3af; }
.other-tools + .other-tools ul { opacity: 0.85; }
