/* Transcriptify — Monotone Style */

:root {
    --bg: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --border: #2a2a2a;
    --text: #e5e5e5;
    --text-secondary: #888888;
    --text-muted: #555555;
    --accent: #ffffff;
    --accent-dim: #cccccc;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation */
nav {
    position: sticky;
    top: 0;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

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

.logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

/* Main Content */
main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0 3rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    color: var(--accent);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* Dropzone */
.upload-section {
    padding: 2rem 0;
}

.dropzone {
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 4rem 2rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    background: var(--bg-secondary);
}

.dropzone:hover,
.dropzone.dragover {
    border-color: var(--text-secondary);
    background: var(--bg-tertiary);
}

.dropzone-content svg {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.dropzone-content p {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.dropzone-content span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.file-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    color: var(--bg);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
}

.file-btn:hover {
    opacity: 0.9;
}

.supported {
    margin-top: 1.5rem;
    font-size: 0.85rem !important;
    color: var(--text-muted) !important;
}

/* Processing Section */
.processing-section {
    padding: 2rem 0;
}

.video-container {
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.video-container video {
    width: 100%;
    max-height: 400px;
    display: block;
}

.controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.btn-primary {
    padding: 0.875rem 2rem;
    background: var(--accent);
    color: var(--bg);
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    padding: 0.875rem 2rem;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    border-color: var(--text-secondary);
}

.status {
    color: var(--text-secondary);
    font-size: 0.95rem;
    min-height: 1.5rem;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width 0.3s;
}

#progress-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    min-width: 3rem;
}

/* Result Section */
.result-section {
    padding: 2rem 0;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.result-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.result-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.75rem;
    font-weight: 600;
}

.btn-icon:hover {
    border-color: var(--text-secondary);
    background: var(--bg-secondary);
}

.transcript {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
    font-size: 1rem;
    line-height: 1.8;
    white-space: pre-wrap;
}

.transcript .segment {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.transcript .segment:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.transcript .timestamp {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: monospace;
    margin-bottom: 0.25rem;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 4rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--border);
}

.feature {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    filter: grayscale(100%);
}

.feature h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 2rem;
    text-align: center;
}

footer p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Utilities */
.hidden {
    display: none !important;
}

/* API Page Styles */
.api-page {
    max-width: 1400px;
}

.api-hero {
    padding: 3rem 0 2rem;
}

.api-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.api-hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.api-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 4rem;
    padding: 2rem 0;
}

.api-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.api-sidebar h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.api-sidebar ul {
    list-style: none;
}

.api-sidebar li {
    margin-bottom: 0.75rem;
}

.api-sidebar a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.api-sidebar a:hover {
    color: var(--accent);
}

.api-main article {
    margin-bottom: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--border);
}

.api-main article:last-child {
    border-bottom: none;
}

.api-main h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.api-main h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    font-family: monospace;
    color: var(--accent);
}

.api-main h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    color: var(--text-secondary);
}

.api-main p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.api-method {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.api-method h3 {
    margin-top: 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

pre {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1rem 1.25rem;
    overflow-x: auto;
    margin: 1rem 0;
}

code {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', monospace;
    font-size: 0.875rem;
    color: var(--text);
}

.api-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.api-table th,
.api-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.api-table th {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.api-table td {
    font-size: 0.9rem;
}

.api-table td code {
    background: var(--bg-tertiary);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.85rem;
}

.callout {
    background: var(--bg-tertiary);
    border-left: 3px solid var(--text-muted);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.callout strong {
    color: var(--text);
}

/* Responsive */
@media (max-width: 900px) {
    .api-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .api-sidebar {
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem 1.5rem;
        padding-bottom: 2rem;
        border-bottom: 1px solid var(--border);
    }

    .api-sidebar h4 {
        width: 100%;
    }

    .api-sidebar ul {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem 1.5rem;
    }

    .api-sidebar li {
        margin: 0;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .nav-container {
        padding: 1rem;
    }

    main {
        padding: 1rem;
    }

    .dropzone {
        padding: 2.5rem 1.5rem;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}