/* ═══════════════════════════════════════════════════════════
   Drive — Components Part 2
   File list, forms, buttons, progress, success, toasts
   ═══════════════════════════════════════════════════════════ */

/* ─── File List ───────────────────────────────────────────── */
.vf-file-list { margin-top: var(--space-2); }

.vf-file-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.5);
    margin-bottom: var(--space-2);
    animation: vf-slideIn var(--duration-slow) var(--ease-out) both;
    transition: background var(--duration-fast) var(--ease-out);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--color-border-subtle);
}

.vf-file-item:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--color-border);
}

.vf-file-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    color: white;
}

.vf-file-icon[data-type="image"]   { background: linear-gradient(135deg, #8B5CF6, #A78BFA); }
.vf-file-icon[data-type="video"]   { background: linear-gradient(135deg, #EC4899, #F472B6); }
.vf-file-icon[data-type="audio"]   { background: linear-gradient(135deg, #F59E0B, #FBBF24); }
.vf-file-icon[data-type="document"]{ background: linear-gradient(135deg, #4F46E5, #818CF8); }
.vf-file-icon[data-type="archive"] { background: linear-gradient(135deg, #059669, #34D399); }
.vf-file-icon[data-type="font"]    { background: linear-gradient(135deg, #6366F1, #A5B4FC); }
.vf-file-icon[data-type="design"]  { background: linear-gradient(135deg, #EC4899, #F9A8D4); }
.vf-file-icon[data-type="data"]    { background: linear-gradient(135deg, #0891B2, #67E8F9); }
.vf-file-icon[data-type="other"]   { background: linear-gradient(135deg, #6B7280, #9CA3AF); }

.vf-file-info { flex: 1; min-width: 0; }

.vf-file-name {
    font-weight: 500;
    font-size: var(--text-sm);
    color: var(--color-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vf-file-meta {
    font-size: var(--text-xs);
    color: var(--color-text-tertiary);
    margin-top: 1px;
}

.vf-file-remove {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-text-tertiary);
    transition: all var(--duration-fast) var(--ease-out);
}

.vf-file-remove:hover {
    background: var(--color-error-bg);
    color: var(--color-error);
}

.vf-file-remove svg { width: 14px; height: 14px; }

/* ─── Progress Bar (per-file) ─────────────────────────────── */
.vf-file-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--color-accent);
    border-radius: 0 var(--radius-full) var(--radius-full) 0;
    transition: width var(--duration-normal) var(--ease-out);
}

.vf-file-progress.is-complete { background: var(--color-success); }
.vf-file-progress.is-error    { background: var(--color-error); }

/* ─── Add More Button ─────────────────────────────────────── */
.vf-add-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    width: 100%;
    padding: var(--space-3);
    border: 1px dashed var(--color-border-strong);
    border-radius: var(--radius-md);
    color: var(--color-text-tertiary);
    font-size: var(--text-sm);
    font-weight: 500;
    transition: all var(--duration-fast) var(--ease-out);
    margin-top: var(--space-2);
    position: relative;
    overflow: hidden;
}

.vf-add-more:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: var(--color-accent-subtle);
}

.vf-add-more svg { width: 16px; height: 16px; }

.vf-add-more input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

/* ─── Sender Form ─────────────────────────────────────────── */
.vf-sender-form {
    margin-top: var(--space-6);
    animation: vf-slideIn var(--duration-slow) var(--ease-out) both;
}

.vf-input-group { margin-bottom: var(--space-4); }

.vf-input-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2);
}

.vf-input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface-solid);
    font-size: var(--text-base);
    transition: all var(--duration-fast) var(--ease-out);
}

.vf-input:hover { border-color: var(--color-border-strong); }

.vf-input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px var(--color-accent-subtle);
}

.vf-input::placeholder { color: var(--color-text-tertiary); }

textarea.vf-input {
    resize: vertical;
    min-height: 72px;
}

/* ─── Buttons ─────────────────────────────────────────────── */
.vf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: var(--text-base);
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.vf-btn-primary {
    background: var(--color-text-primary);
    color: var(--color-text-inverse);
    box-shadow: var(--shadow-md);
    width: 100%;
    padding: var(--space-5) var(--space-8);
    font-size: var(--text-md);
}

.vf-btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.vf-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.vf-btn-primary:active { transform: translateY(0); }

.vf-btn-primary:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.vf-btn-secondary {
    background: var(--color-surface-solid);
    color: var(--color-text-primary);
    border: 1.5px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.vf-btn-secondary:hover {
    background: var(--color-surface-dim);
    border-color: var(--color-border-strong);
    transform: translateY(-1px);
}

.vf-btn svg { width: 18px; height: 18px; }

/* ─── Summary Bar ─────────────────────────────────────────── */
.vf-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) 0;
    margin-top: var(--space-4);
    border-top: 1px solid var(--color-border-subtle);
    font-size: var(--text-sm);
    color: var(--color-text-tertiary);
}

.vf-summary-count { font-weight: 600; color: var(--color-text-secondary); }

/* ─── Success Screen ──────────────────────────────────────── */
.vf-success {
    text-align: center;
    padding: var(--space-16) var(--space-8);
    animation: vf-fadeUp var(--duration-reveal) var(--ease-out) both;
}

.vf-success-icon {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--color-success-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-8);
    position: relative;
}

.vf-success-icon::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: var(--color-success-bg);
    opacity: 0.5;
    animation: vf-pulse 2s ease-in-out infinite;
}

.vf-success-icon svg {
    width: 36px;
    height: 36px;
    stroke: var(--color-success);
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 24;
    animation: vf-checkDraw 0.6s var(--ease-out) 0.3s both;
    position: relative;
    z-index: 1;
}

.vf-success h2 {
    font-size: var(--text-2xl);
    font-weight: 800;
    margin-bottom: var(--space-3);
    letter-spacing: -0.03em;
}

.vf-success p {
    font-size: var(--text-md);
    max-width: 360px;
    margin: 0 auto var(--space-8);
}

.vf-success-detail {
    background: var(--color-surface-dim);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-5);
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-8);
    font-weight: 500;
}

/* ─── Toast ───────────────────────────────────────────────── */
.vf-toast-container {
    position: fixed;
    top: var(--space-6);
    right: var(--space-6);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.vf-toast {
    background: var(--color-surface-solid);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-4) var(--space-5);
    box-shadow: var(--shadow-lg);
    font-size: var(--text-sm);
    max-width: 360px;
    animation: vf-slideIn var(--duration-slow) var(--ease-spring) both;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    backdrop-filter: blur(12px);
}

.vf-toast.is-error   { border-left: 3px solid var(--color-error); }
.vf-toast.is-warning { border-left: 3px solid var(--color-warning); }

/* ─── Upload Progress ─────────────────────────────────────── */
.vf-upload-progress {
    margin-top: var(--space-6);
    animation: vf-slideIn var(--duration-slow) var(--ease-out) both;
}

.vf-progress-bar-container {
    width: 100%;
    height: 6px;
    background: var(--color-surface-dim);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--space-3);
}

.vf-progress-bar-fill {
    height: 100%;
    background: var(--grad-accent);
    border-radius: var(--radius-full);
    transition: width var(--duration-normal) var(--ease-out);
    position: relative;
}

.vf-progress-bar-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: vf-shimmer 2s linear infinite;
}

.vf-progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-sm);
    color: var(--color-text-tertiary);
}

.vf-progress-stats strong {
    color: var(--color-text-secondary);
    font-weight: 600;
}

/* ─── Trust Bar / Footer ──────────────────────────────────── */
.vf-footer {
    margin-top: var(--space-12);
    text-align: center;
    animation: vf-fadeUp var(--duration-reveal) var(--ease-out) 300ms both;
}

.vf-trust-bar {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-xs);
    color: var(--color-text-tertiary);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-full);
    padding: var(--space-2) var(--space-5);
}

.vf-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.vf-trust-item svg {
    display: inline-block;
    flex-shrink: 0;
    opacity: 0.6;
}

.vf-trust-sep {
    opacity: 0.3;
}

.vf-attribution {
    margin-top: var(--space-4);
    font-size: 11px;
    color: var(--color-text-tertiary);
    letter-spacing: 0.02em;
    opacity: 0.6;
}

.vf-attribution strong {
    font-weight: 600;
    opacity: 1;
}

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 640px) {
    .vf-page { padding: var(--space-6) var(--space-4); }
    .vf-header h1 { font-size: var(--text-2xl); }
    .vf-dropzone { padding: var(--space-12) var(--space-4); border-radius: var(--radius-xl); }
    .vf-dropzone.has-files { padding: var(--space-5) var(--space-4); }
    .vf-container { max-width: 100%; }
}
