/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #252525;
    --bg-card: #1e1e1e;
    --border-color: #2d2d2d;
    --text-primary: #e8e8e8;
    --text-secondary: #a0a0a0;
    --text-muted: #6b6b6b;
    --accent: #4a9eff;
    --accent-hover: #5ba8ff;
    --success: #4caf50;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    min-height: 100vh;
    font-size: 16px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
}

/* Header */
header {
    color: var(--text-primary);
    padding: 80px 20px 60px;
    text-align: center;
    position: relative;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

header h1 {
    font-size: 3.5em;
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--text-primary);
}

.subtitle {
    font-size: 1.15em;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 24px;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 32px;
    padding-top: 32px;
}

.stat-item {
    font-size: 0.95em;
    color: var(--text-secondary);
}

.stat-item strong {
    color: var(--accent);
    font-weight: 600;
    font-size: 1.1em;
}

/* Main content */
main {
    padding: 0 20px 60px;
}

.files-section {
    max-width: 900px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 48px;
    text-align: center;
}

.section-header h2 {
    font-size: 1.5em;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.section-description {
    color: var(--text-secondary);
    font-size: 0.95em;
    font-weight: 400;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
}

.empty-icon {
    margin-bottom: 24px;
    opacity: 0.3;
    color: var(--text-secondary);
    display: flex;
    justify-content: center;
    align-items: center;
}

.empty-icon svg {
    width: 80px;
    height: 80px;
}

.empty-state h2 {
    font-size: 1.5em;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-weight: 600;
}

.empty-state p {
    font-size: 1.05em;
    color: var(--text-secondary);
}

/* Files list */
.files-list {
    display: grid;
    gap: 12px;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    border-left: 3px solid transparent;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    gap: 20px;
    border-radius: 0;
}

.file-item:hover {
    border-left-color: var(--accent);
    background: rgba(74, 158, 255, 0.03);
    transform: translateX(4px);
}

.file-icon-wrapper {
    flex-shrink: 0;
}

.file-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 6px;
    color: var(--accent);
    padding: 8px;
    opacity: 0.8;
}

.file-icon svg {
    width: 100%;
    height: 100%;
}

.file-info {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    word-break: break-word;
    line-height: 1.4;
    letter-spacing: -0.2px;
}

.file-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.875em;
    color: var(--text-secondary);
    align-items: center;
}

.file-meta svg {
    width: 14px;
    height: 14px;
    vertical-align: middle;
    margin-right: 4px;
    opacity: 0.7;
}

.file-size,
.file-date {
    display: inline-flex;
    align-items: center;
    font-weight: 400;
}

.file-type {
    background: transparent;
    color: var(--text-muted);
    padding: 0;
    border-radius: 0;
    font-size: 0.8em;
    font-weight: 500;
    letter-spacing: 1px;
    border: none;
    text-transform: uppercase;
}

.file-actions {
    flex-shrink: 0;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.download-btn svg {
    width: 16px;
    height: 16px;
}

.download-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.3);
}

.download-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(74, 158, 255, 0.2);
}

/* Footer */
footer {
    background: transparent;
    padding: 60px 20px 40px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875em;
    border-top: none;
}

/* Responsive design */
@media (max-width: 768px) {
    header {
        padding: 60px 20px 40px;
    }

    header h1 {
        font-size: 2.5em;
    }

    .subtitle {
        font-size: 1.05em;
    }

    .stats {
        flex-direction: column;
        gap: 16px;
    }

    main {
        padding: 0 20px 40px;
    }

    .section-header h2 {
        font-size: 1.5em;
    }

    .file-item {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 16px;
    }

    .file-icon-wrapper {
        margin: 0 auto;
    }

    .file-info {
        width: 100%;
        text-align: center;
    }

    .file-meta {
        justify-content: center;
        flex-wrap: wrap;
    }

    .file-actions {
        width: 100%;
    }

    .download-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 50px 20px 30px;
    }

    header h1 {
        font-size: 2em;
    }

    main {
        padding: 0 15px 30px;
    }

    .file-item {
        padding: 16px 20px;
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .file-item:hover {
        transform: translateY(-2px);
    }

    .file-name {
        font-size: 1em;
    }
}
