/* ═══════════════════════════════════════════════════════════
   Drive — Components (Layout, Drop Zone, Atmosphere)
   ═══════════════════════════════════════════════════════════ */

/* ─── Page Shell ──────────────────────────────────────────── */
.vf-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: var(--space-8) var(--space-6);
    position: relative;
    background: var(--color-surface);
    background-image: var(--grad-mesh);
}

/* Floating orbs for depth */
.vf-page::before {
    content: '';
    position: fixed;
    top: -20vh;
    right: -10vw;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.06) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    animation: vf-float 20s ease-in-out infinite alternate;
}

.vf-page::after {
    content: '';
    position: fixed;
    bottom: -15vh;
    left: -10vw;
    width: 40vw;
    height: 40vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    animation: vf-float 25s ease-in-out infinite alternate-reverse;
}

/* Noise texture overlay for grain */
.vf-noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

.vf-container {
    width: 100%;
    max-width: 580px;
    position: relative;
    z-index: var(--z-base);
}

/* ─── Header ──────────────────────────────────────────────── */
.vf-header {
    text-align: center;
    margin-bottom: var(--space-10);
    animation: vf-fadeUp var(--duration-reveal) var(--ease-out) both;
}

.vf-logo {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-8);
}

.vf-logo-mark {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--color-text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.vf-logo-mark::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
}

.vf-logo-mark svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: white;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    position: relative;
    z-index: 1;
}

.vf-logo-text {
    font-family: var(--font-primary);
    font-size: var(--text-lg);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--color-text-primary);
}

.vf-header h1 {
    font-size: var(--text-4xl);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: var(--space-4);
    line-height: 1.05;
}

.vf-header p {
    font-size: var(--text-md);
    max-width: 400px;
    margin: 0 auto;
    color: var(--color-text-tertiary);
    font-weight: 400;
}

/* ─── Drop Zone — Glass Card ─────────────────────────────── */
.vf-dropzone {
    position: relative;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-20) var(--space-8);
    text-align: center;
    cursor: pointer;
    transition: all var(--duration-slow) var(--ease-out);
    background: var(--grad-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-glass);
    overflow: hidden;
    animation: vf-fadeUp var(--duration-reveal) var(--ease-out) 100ms both;
}

/* Gradient border effect (hidden by default, shown on hover/drag) */
.vf-dropzone::before {
    content: '';
    position: absolute;
    inset: -1.5px;
    border-radius: var(--radius-2xl);
    padding: 1.5px;
    background: var(--grad-accent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--duration-slow) var(--ease-out);
    pointer-events: none;
}

/* Inner glow */
.vf-dropzone::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    pointer-events: none;
}

.vf-dropzone:hover {
    border-color: rgba(79, 70, 229, 0.2);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.vf-dropzone:hover::before {
    opacity: 0.4;
}

.vf-dropzone.is-dragover {
    border-color: transparent;
    transform: scale(1.015) translateY(-4px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    background: rgba(255, 255, 255, 0.85);
}

.vf-dropzone.is-dragover::before {
    opacity: 1;
    animation: vf-borderPulse 2s ease-in-out infinite;
}

.vf-dropzone.has-files {
    padding: var(--space-6) var(--space-6);
    border-style: solid;
    cursor: default;
}

.vf-dropzone.has-files:hover {
    transform: none;
    box-shadow: var(--shadow-glass);
}

/* ─── Dropzone Content ────────────────────────────────────── */
.vf-dropzone-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--space-6);
    border-radius: var(--radius-xl);
    background: var(--color-surface-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-slow) var(--ease-out);
    position: relative;
}

.vf-dropzone-icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    background: var(--grad-accent);
    opacity: 0;
    transition: opacity var(--duration-slow) var(--ease-out);
    filter: blur(12px);
    z-index: -1;
}

.vf-dropzone:hover .vf-dropzone-icon {
    background: var(--color-accent-muted);
    transform: translateY(-4px);
}

.vf-dropzone:hover .vf-dropzone-icon::before {
    opacity: 0.3;
}

.vf-dropzone.is-dragover .vf-dropzone-icon {
    background: var(--color-accent);
    transform: translateY(-6px) scale(1.05);
}

.vf-dropzone.is-dragover .vf-dropzone-icon::before {
    opacity: 0.5;
}

.vf-dropzone-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--color-text-tertiary);
    fill: none;
    stroke-width: 1.5;
    transition: all var(--duration-slow) var(--ease-out);
}

.vf-dropzone:hover .vf-dropzone-icon svg {
    stroke: var(--color-accent);
}

.vf-dropzone.is-dragover .vf-dropzone-icon svg {
    stroke: white;
}

.vf-dropzone-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-2);
    letter-spacing: var(--tracking-tight);
}

.vf-dropzone-subtitle {
    font-size: var(--text-sm);
    color: var(--color-text-tertiary);
    font-weight: 400;
}

.vf-dropzone-browse {
    color: var(--color-accent);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(79, 70, 229, 0.25);
    text-underline-offset: 3px;
    transition: text-decoration-color var(--duration-fast) var(--ease-out);
}

.vf-dropzone-browse:hover {
    text-decoration-color: var(--color-accent);
}

.vf-dropzone-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

/* ─── Animations ──────────────────────────────────────────── */
@keyframes vf-fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes vf-slideIn {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes vf-float {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(30px, -20px); }
}

@keyframes vf-borderPulse {
    0%, 100% { opacity: 0.6; }
    50%      { opacity: 1; }
}

@keyframes vf-checkDraw {
    0%   { stroke-dashoffset: 24; }
    100% { stroke-dashoffset: 0; }
}

@keyframes vf-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.5; }
}

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

@keyframes vf-shimmer {
    from { transform: translateX(-100%); }
    to   { transform: translateX(100%); }
}
