:root {
    --background: #ffffff;
    --foreground: #09090b;
    --muted: #f4f4f5;
    --muted-foreground: #71717a;
    --card: #ffffff;
    --card-foreground: #09090b;
    --primary: #18181b;
    --primary-foreground: #fafafa;
    --secondary: #f4f4f5;
    --secondary-foreground: #18181b;
    --accent: #f4f4f5;
    --accent-foreground: #18181b;
    --destructive: #ef4444;
    --destructive-foreground: #fafafa;
    --ring: #18181b;
    --radius: 0.75rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

header {
    background-color: var(--background);
    /* No border, maybe subtle shadow if needed, but keeping it flat for now */
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--foreground);
    letter-spacing: -0.025em;
    text-decoration: none;
}

main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.upload-main {
    min-height: calc(100vh - 200px);
    justify-content: center;
}

.upload-container {
    text-align: center;
    padding: 3rem 1.5rem;
    max-width: 48rem;
    width: 100%;
    margin: 0 auto;
    /* Removed border */
    /* Optional: add a card effect without borders if desired, but clean is better */
}

.upload-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--foreground);
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    line-height: 1;
}

.upload-subtitle {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.file-input {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.file-input-label {
    background: var(--primary);
    color: var(--primary-foreground);
    padding: 0 2rem;
    border-radius: 48px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    min-width: 180px;
    height: 3rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.file-input-label:hover {
    background: var(--foreground); /* Slightly lighter/different than primary usually, but reusing foreground for hover effect or opacity */
    opacity: 0.9;
}

.file-input-label:active {
    transform: scale(0.98);
}

.file-input-label[disabled],
.file-input:disabled + .file-input-label {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.upload-button {
    background-color: var(--primary);
    color: var(--primary-foreground);
    padding: 0.5rem 1.5rem;
    border-radius: 48px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.upload-button:hover {
    background-color: var(--foreground);
    opacity: 0.9;
}

.video-container {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    background-color: var(--muted);
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    max-height: 600px;
}

video {
    width: 100%;
    height: 100%;
}

.file-input-label:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}

.upload-button:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}

.upload-status {
    min-height: 2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-error {
    color: var(--destructive);
    font-size: 0.875rem;
    font-weight: 500;
}

footer {
    padding: 2rem 1.5rem;
    background-color: var(--background);
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.copyright {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--muted-foreground);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--foreground);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.a-slot {
    margin-top: 2rem;
    text-align: center;
}

@media (max-width: 640px) {
    .upload-title {
        font-size: 2.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }

    .video-container {
        border-radius: 0;
    }
}

/* Drag overlay */
body.dragging::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    z-index: 100;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--foreground);
}

body.dragging .file-input-label {
    pointer-events: none;
}

/* Text Pages (Privacy & Terms) */
.text-page-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    width: 100%;
    justify-content: flex-start;
}

.text-page-title {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 2rem;
    color: var(--foreground);
    line-height: 1.2;
}

.prose h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--foreground);
    letter-spacing: -0.025em;
}

.prose p {
    margin-bottom: 1.25rem;
    color: var(--muted-foreground);
    line-height: 1.75;
    font-size: 1rem;
}

.prose ul {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
    color: var(--muted-foreground);
    list-style-type: disc;
}

.prose li {
    margin-bottom: 0.5rem;
    line-height: 1.75;
}

.prose {
    font-size: 1rem;
}
