/* =========================================================
   File Converter Pro — fcp-style.css
   ========================================================= */

/* ---- Reset / Scope ---- */
.fcp-wrapper *,
.fcp-wrapper *::before,
.fcp-wrapper *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ---- Tokens ---- */
.fcp-wrapper {
    --fcp-bg:          #0f1117;
    --fcp-surface:     #181c27;
    --fcp-surface2:    #1e2334;
    --fcp-border:      #2a3045;
    --fcp-accent:      #3b82f6;
    --fcp-accent-dim:  #1d4ed8;
    --fcp-success:     #22c55e;
    --fcp-warn:        #f59e0b;
    --fcp-error:       #ef4444;
    --fcp-text:        #e2e8f0;
    --fcp-muted:       #64748b;
    --fcp-radius:      12px;
    --fcp-radius-sm:   8px;
    --fcp-font:        'DM Sans', 'Segoe UI', system-ui, sans-serif;

    font-family: var(--fcp-font);
    background: var(--fcp-bg);
    color: var(--fcp-text);
    border-radius: var(--fcp-radius);
    padding: 32px;
    max-width: 680px;
    margin: 0 auto;
    border: 1px solid var(--fcp-border);
    box-shadow: 0 24px 64px rgba(0,0,0,.5);
}

/* Google Font import */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

/* ---- Header / badges ---- */
.fcp-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 28px;
}

.fcp-badge {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    padding: 6px 16px;
    border-radius: 50px;
    text-transform: uppercase;
}

.fcp-badge.from {
    background: var(--fcp-surface2);
    border: 1px solid var(--fcp-border);
    color: var(--fcp-muted);
}

.fcp-badge.to {
    background: var(--fcp-accent);
    color: #fff;
}

.fcp-arrow {
    color: var(--fcp-muted);
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.fcp-arrow svg { width: 100%; height: 100%; }

/* ---- Drop Zone ---- */
.fcp-dropzone {
    border: 2px dashed var(--fcp-border);
    border-radius: var(--fcp-radius);
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    background: var(--fcp-surface);
}

.fcp-dropzone:hover,
.fcp-dropzone.drag-over {
    border-color: var(--fcp-accent);
    background: rgba(59, 130, 246, .06);
}

.fcp-dropzone.drag-over {
    border-style: solid;
}

.fcp-drop-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    color: var(--fcp-muted);
}

.fcp-drop-icon svg { width: 100%; height: 100%; }

.fcp-drop-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--fcp-text);
    margin-bottom: 20px;
}

.fcp-drop-text span {
    font-size: 13px;
    color: var(--fcp-muted);
}

.fcp-btn-select {
    display: inline-block;
    background: var(--fcp-surface2);
    border: 1px solid var(--fcp-border);
    color: var(--fcp-text);
    font-family: var(--fcp-font);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: var(--fcp-radius-sm);
    cursor: pointer;
    transition: background .2s, border-color .2s;
}

.fcp-btn-select:hover {
    background: var(--fcp-border);
    border-color: var(--fcp-accent);
}

.fcp-file-input {
    display: none;
}

.fcp-size-note {
    font-size: 12px;
    color: var(--fcp-muted);
    margin-top: 14px;
}

/* ---- File List ---- */
.fcp-file-list {
    margin-top: 20px;
    background: var(--fcp-surface);
    border: 1px solid var(--fcp-border);
    border-radius: var(--fcp-radius);
    overflow: hidden;
}

.fcp-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--fcp-border);
    background: var(--fcp-surface2);
}

.fcp-list-count {
    font-size: 13px;
    font-weight: 600;
    color: var(--fcp-muted);
}

.fcp-btn-clear {
    font-family: var(--fcp-font);
    font-size: 12px;
    font-weight: 500;
    color: var(--fcp-error);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background .2s;
}

.fcp-btn-clear:hover {
    background: rgba(239,68,68,.1);
}

.fcp-items {
    max-height: 320px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--fcp-border) transparent;
}

/* Dosya satırı */
.fcp-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--fcp-border);
    transition: background .15s;
}

.fcp-item:last-child { border-bottom: none; }

.fcp-item:hover { background: var(--fcp-surface2); }

.fcp-item-name {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.fcp-item-size {
    font-size: 11px;
    color: var(--fcp-muted);
    white-space: nowrap;
}

.fcp-item-status {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    min-width: 80px;
    text-align: right;
}

.fcp-item-status.pending   { color: var(--fcp-muted); }
.fcp-item-status.working   { color: var(--fcp-warn); }
.fcp-item-status.done      { color: var(--fcp-success); cursor: pointer; }
.fcp-item-status.error     { color: var(--fcp-error); }

.fcp-item-progress {
    grid-column: 1 / -1;
    height: 3px;
    background: var(--fcp-border);
    border-radius: 99px;
    overflow: hidden;
    display: none;
}

.fcp-item-progress.active { display: block; }

.fcp-item-progress-fill {
    height: 100%;
    background: var(--fcp-accent);
    border-radius: 99px;
    transition: width .3s;
}

/* ---- Actions ---- */
.fcp-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.fcp-btn-convert,
.fcp-btn-download-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--fcp-font);
    font-size: 14px;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: var(--fcp-radius-sm);
    border: none;
    cursor: pointer;
    transition: transform .15s, opacity .2s, box-shadow .2s;
}

.fcp-btn-convert {
    background: var(--fcp-accent);
    color: #fff;
    box-shadow: 0 4px 20px rgba(59,130,246,.35);
}

.fcp-btn-convert:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(59,130,246,.5);
}

.fcp-btn-convert:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.fcp-btn-convert svg,
.fcp-btn-download-all svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.fcp-btn-download-all {
    background: var(--fcp-surface2);
    color: var(--fcp-text);
    border: 1px solid var(--fcp-border);
}

.fcp-btn-download-all:hover {
    background: var(--fcp-border);
    transform: translateY(-1px);
}

/* spin animasyonu dönüştürme sırasında */
@keyframes fcp-spin {
    to { transform: rotate(360deg); }
}

.fcp-btn-convert.loading svg {
    animation: fcp-spin .8s linear infinite;
}

/* ---- Global Progress ---- */
.fcp-global-progress {
    margin-top: 20px;
}

.fcp-progress-bar {
    height: 6px;
    background: var(--fcp-border);
    border-radius: 99px;
    overflow: hidden;
}

.fcp-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--fcp-accent), #60a5fa);
    border-radius: 99px;
    transition: width .3s;
    width: 0%;
}

.fcp-progress-text {
    font-size: 13px;
    color: var(--fcp-muted);
    margin-top: 8px;
    text-align: center;
}

/* ---- Mesajlar ---- */
.fcp-messages {
    margin-top: 12px;
}

.fcp-msg {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--fcp-radius-sm);
    font-size: 13px;
    margin-top: 8px;
    animation: fcp-fadein .25s ease;
}

@keyframes fcp-fadein {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: none; }
}

.fcp-msg.success { background: rgba(34,197,94,.1);  border: 1px solid rgba(34,197,94,.25);  color: #4ade80; }
.fcp-msg.warn    { background: rgba(245,158,11,.1);  border: 1px solid rgba(245,158,11,.25);  color: #fbbf24; }
.fcp-msg.error   { background: rgba(239,68,68,.1);   border: 1px solid rgba(239,68,68,.25);   color: #f87171; }
.fcp-msg.info    { background: rgba(59,130,246,.1);  border: 1px solid rgba(59,130,246,.25);  color: #93c5fd; }

/* ---- Hata shortcode ---- */
p.fcp-error {
    color: var(--fcp-error);
    font-size: 14px;
    padding: 12px 16px;
    background: rgba(239,68,68,.08);
    border: 1px solid rgba(239,68,68,.2);
    border-radius: var(--fcp-radius-sm);
}

/* ---- Responsive ---- */
@media (max-width: 520px) {
    .fcp-wrapper {
        padding: 20px 16px;
    }
    .fcp-dropzone {
        padding: 32px 16px;
    }
    .fcp-actions {
        flex-direction: column;
    }
    .fcp-btn-convert,
    .fcp-btn-download-all {
        width: 100%;
        justify-content: center;
    }
}
