/* ============================================================
   GALACTIC CONVERTERS — batch-tool framework styling
   Aligned with the shared Tools design system (css/tools.css):
   dark + B026FF→0099FF gradient + glass cards.
   Class names (.conv-*) and the JS-driven state classes
   (.show / .drag / .ok / .err / .spin) are unchanged so the
   markup and batch.js keep working — only the look changed.
   ============================================================ */

.conv-wrap { max-width: 980px; margin: 0 auto; position: relative; z-index: 1; }

/* ---- Hero: gradient title, on-brand ---- */
.conv-hero { text-align: center; margin-bottom: 40px; }
.conv-hero h1 {
    font-size: 2.6rem; font-weight: 800; margin: 0 0 12px; line-height: 1.05;
    background: linear-gradient(to bottom, #B026FF, #0099FF);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    filter: drop-shadow(0 0 10px rgba(176,38,255,0.3));
}
.conv-hero h1 i {
    font-size: 1.7rem; margin-right: 14px; vertical-align: middle;
    -webkit-text-fill-color: #0099FF; color: #0099FF; background: none; filter: none;
}
.conv-hero p { color: var(--text-secondary,#b0b0c0); font-size: 1.1rem; margin: 0 auto; max-width: 60ch; line-height: 1.55; }

/* ---- Trust line: subtle chips (calm, not scammy) ---- */
.conv-trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 18px 0 36px; }
.conv-trust .pill {
    display: inline-flex; align-items: center; gap: 7px; font-size: .8rem; font-weight: 600;
    padding: 6px 13px; border-radius: 8px; background: rgba(0,153,255,0.1);
    border: 1px solid rgba(0,153,255,0.25); color: #00ccff;
}
.conv-trust .pill i { display: inline; }
.conv-trust .pill strong { color: #00ccff; font-weight: 600; }
.conv-trust .pill + .pill::before { content: none; }

/* ---- Card wrapper: NO box. The drop zone must stand alone (not boxed). ---- */
.conv-card { background: none; border: none; border-radius: 0; padding: 0; box-shadow: none; backdrop-filter: none; }

/* ---- Drop zone: tinted gradient, dashed accent, gradient icon ---- */
.conv-drop {
    border: 2px dashed rgba(0,153,255,0.5); border-radius: 16px;
    padding: 50px 30px; text-align: center; cursor: pointer;
    background: linear-gradient(135deg, rgba(176,38,255,0.18), rgba(0,153,255,0.22));
    transition: border-color .2s, background .2s;
}
.conv-drop:hover, .conv-drop.drag { border-color: #0099FF; background: linear-gradient(135deg, rgba(176,38,255,0.28), rgba(0,153,255,0.32)); }
.conv-drop i.big {
    font-size: 2.6rem; display: block; margin-bottom: 14px;
    background: linear-gradient(to bottom, #B026FF, #0099FF);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.conv-drop h3 { color: #fff; font-size: 1.15rem; font-weight: 700; margin: 0 0 5px; }
.conv-drop p { color: var(--text-secondary,#b0b0c0); font-size: 0.9rem; margin: 0; }
.conv-drop .browse {
    display: inline-block; margin-top: 18px; padding: 11px 24px; border-radius: 8px;
    background: rgba(0,153,255,0.12); border: 1px solid rgba(0,153,255,0.3); color: #00ccff;
    font-weight: 700; font-size: 0.85rem; letter-spacing: 0.3px; transition: background .2s, color .2s;
}
.conv-drop:hover .browse { background: rgba(0,153,255,0.2); color: #fff; }
.conv-drop input[type=file] { display: none; }

/* ---- Options bar ---- */
.conv-options {
    display: none; align-items: center; flex-wrap: wrap; gap: 28px;
    margin-top: 26px; padding: 0 0 22px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.conv-options.show { display: flex; }
.conv-options .opt { display: flex; align-items: center; gap: 14px; }
.conv-options label { color: #00ccff; font-size: 0.76rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; }
.conv-options input[type=range] {
    -webkit-appearance: none; appearance: none; width: 170px; height: 8px; border-radius: 5px;
    background: linear-gradient(90deg,#B026FF,#0099FF) 0/50% 100% no-repeat, rgba(255,255,255,0.12); outline: none; cursor: pointer;
}
.conv-options input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
    background: #fff; cursor: pointer; border: 4px solid #0099FF; box-shadow: 0 0 12px rgba(0,153,255,0.7);
}
.conv-options input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid #0099FF; cursor: pointer; }
.conv-options .val { font-family: 'JetBrains Mono', monospace; color: #fff; font-weight: 700; font-size: 0.95rem; min-width: 46px; }
.conv-options input[type=number] {
    width: 88px; padding: 10px 12px; background: rgba(0,0,0,0.5);
    border: 1px solid rgba(0,153,255,0.3); border-radius: 8px; color: #fff; font-size: 0.9rem; outline: none;
}
.conv-options input[type=number]:focus { border-color: #0099FF; }

/* ---- File list: glass rows ---- */
.conv-list { display: none; margin-top: 18px; flex-direction: column; gap: 10px; }
.conv-list.show { display: flex; }
.conv-item {
    display: flex; align-items: center; gap: 14px; padding: 12px 14px;
    background: rgba(0,153,255,0.06); border: 1px solid rgba(0,153,255,0.2); border-radius: 12px;
}
.conv-item .thumb {
    width: 42px; height: 42px; border-radius: 9px; flex-shrink: 0; overflow: hidden;
    background: rgba(0,0,0,0.4); border: 1px solid rgba(0,153,255,0.3);
    display: flex; align-items: center; justify-content: center; color: #00ccff;
}
.conv-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.conv-item .meta { flex: 1; min-width: 0; }
.conv-item .meta .nm { color: #fff; font-weight: 600; font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-item .meta .sz { color: var(--text-secondary,#b0b0c0); font-size: 0.78rem; margin-top: 2px; font-family: 'JetBrains Mono', monospace; }
.conv-item .meta .sz .arrow { color: #5a6478; margin: 0 4px; }
.conv-item .meta .sz .saved { color: #4dff95; margin-left: 4px; }
.conv-item .st { font-size: 0.95rem; flex-shrink: 0; width: 24px; text-align: center; }
.conv-item .st .spin { color: #00ccff; }
.conv-item .st .ok { color: #4dff95; }
.conv-item .st .err { color: #ff5b7a; }
.conv-item .dl {
    flex-shrink: 0; width: 34px; height: 34px; border-radius: 8px; cursor: pointer;
    background: transparent; border: 1px solid rgba(0,153,255,0.3); color: var(--text-secondary,#b0b0c0);
    display: flex; align-items: center; justify-content: center; transition: border-color .15s, color .15s; font-size: 0.85rem;
}
.conv-item .dl:hover { border-color: #0099FF; color: #fff; }
.conv-item .rm {
    flex-shrink: 0; width: 30px; height: 34px; border: none; background: transparent;
    color: #5a6478; cursor: pointer; font-size: 0.95rem; transition: color .15s;
}
.conv-item .rm:hover { color: #ff5b7a; }

/* ---- Action bar: gradient primary + ghost ---- */
.conv-actions { display: none; gap: 12px; margin-top: 26px; flex-wrap: wrap; align-items: center; }
.conv-actions.show { display: flex; }
.conv-btn {
    padding: 13px 26px; border: 1px solid transparent; border-radius: 8px; flex: 0 0 auto;
    font-weight: 700; font-size: 0.92rem; cursor: pointer; font-family: 'Outfit', sans-serif;
    transition: all .25s ease; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
}
.conv-btn.primary { background: linear-gradient(135deg,#B026FF,#0099FF); color: #fff; }
.conv-btn.primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,153,255,0.4); }
.conv-btn.ghost { background: transparent; border-color: rgba(255,255,255,0.16); color: #ccd5e3; }
.conv-btn.ghost:hover { border-color: rgba(255,255,255,0.4); color: #fff; }
.conv-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---- Offline Mode badge ---- */
.offline-badge {
    position: fixed; bottom: 20px; left: 20px; z-index: 99999; display: none;
    align-items: center; gap: 12px; padding: 12px 16px; border-radius: 10px;
    background: rgba(10,14,39,0.95); border: 1px solid rgba(0,153,255,0.3); border-left: 3px solid #4dff95;
    max-width: 320px; box-shadow: 0 8px 24px rgba(0,0,0,0.4); backdrop-filter: blur(8px);
}
.offline-badge.show { display: flex; animation: offlineSlide .3s ease; }
@keyframes offlineSlide { from { transform: translateY(14px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.offline-badge .ob-dot {
    width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
    background: rgba(77,255,149,0.12); color: #4dff95;
    display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.offline-badge .ob-text { line-height: 1.35; }
.offline-badge .ob-text strong { display: block; color: #fff; font-size: 0.82rem; font-weight: 700; }
.offline-badge .ob-text span { color: var(--text-secondary,#b0b0c0); font-size: 0.75rem; }

/* ---- Back link ---- */
.conv-back {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 34px;
    color: var(--text-secondary,#b0b0c0); text-decoration: none; font-size: 0.9rem; transition: color .15s;
}
.conv-back:hover { color: #0099FF; }

@media (max-width: 600px) {
    .conv-hero h1 { font-size: 2rem; }
    .conv-hero h1 i { font-size: 1.3rem; margin-right: 10px; }
    .conv-btn { flex: 1; }
}
