/* =========================================
   PresetShift — Premium CSS v8
   ========================================= */

:root {
    --bg-dark: #111111;
    --card-bg: #1a1a1a;
    --border-color: #2a2a2a;
    --accent: #c2611f;          /* Amber/burnt orange — less neon, more premium */
    --accent-hover: #a34f17;
    --text-primary: #f0ede8;    /* Slightly warm white */
    --text-muted: #8a8480;
    --text-dim: #4a4744;
    --success: #10b981;
}

html {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Light mode overrides */
[data-theme="light"] {
    --bg-dark: #f2ede8;
    --card-bg: #faf7f4;
    --border-color: #ddd8d2;
    --accent: #ea580c;
    --accent-hover: #c2410c;
    --text-primary: #1a1714;
    --text-muted: #6b6560;
    --text-dim: #aaa5a0;
}

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* Film grain overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.045;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ---- Layout ---- */
.container {
    width: 100%;
    max-width: 1200px;
    padding: 2.5rem 2rem 3rem 2rem;
    position: relative;
    z-index: 1;
}

/* ---- Navbar ---- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0 1rem 0;
    width: 100%;
}

.nav-brand {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav-brand span {
    color: var(--accent);
}

.theme-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    transition: border-color 0.2s, color 0.2s;
}

.theme-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ---- Two-column hero ---- */
.hero-split {
    display: flex;
    align-items: center;
    gap: 4rem;
    width: 100%;
    margin-bottom: 2rem;
}

/* Left column */
.hero-text {
    flex: 1;
    min-width: 0;
}

/* Editorial heading — Fraunces serif */
.hero-text h1 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 3.8rem;
    font-weight: 700;
    line-height: 1.07;
    letter-spacing: -0.02em;
    margin-bottom: 1.1rem;
}

.hero-text h1 span {
    color: var(--accent);
    font-style: italic;
}

.hero-text > p {
    color: var(--text-muted);
    font-size: 0.975rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
    max-width: 440px;
}

/* Format tags row */
.format-tags {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: nowrap;
}

.tag-group {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.tag {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-color);
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.82rem;
}

[data-theme="light"] .tag {
    background: rgba(0,0,0,0.04);
}

.tag.accent {
    color: var(--accent);
    border-color: rgba(194, 97, 31, 0.4);
}

/* Right column: converter card */
.hero-card {
    flex-shrink: 0;
    width: 375px;
}

.converter-card {
    background: var(--card-bg);
    border: 1px solid rgba(194, 97, 31, 0.45);
    border-radius: 18px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 40px rgba(194, 97, 31, 0.07);
}

.converter-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.converter-card p.card-subtext {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}

/* ---- Drop zone — panel, not dashed box ---- */
.drop-zone {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
    margin-bottom: 1rem;
    gap: 0.4rem;
}

[data-theme="light"] .drop-zone {
    background: rgba(0,0,0,0.03);
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: var(--accent);
    background: rgba(194, 97, 31, 0.04);
    box-shadow: 0 0 24px rgba(194, 97, 31, 0.12);
}

.drop-icon {
    width: 40px;
    height: 40px;
    color: var(--accent);
    padding: 8px;
    background: rgba(194, 97, 31, 0.1);
    border-radius: 10px;
    margin-bottom: 0.65rem;
}

.drop-zone h4 {
    font-size: 0.92rem;
    font-weight: 500;
}

.drop-zone p {
    color: var(--text-dim);
    font-size: 0.78rem;
}

/* ---- Choose File button ---- */
.btn-file {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.65rem 0;
    width: 100%;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.btn-file:hover {
    border-color: var(--text-muted);
    color: var(--text-primary);
}

/* ---- Stats — free-floating, no card bg ---- */
.stats-bar {
    display: flex;
    width: 100%;
    margin-bottom: 2.5rem;
}

.stat-item {
    flex: 1;
    padding: 0.75rem 2rem;
    border-right: 1px solid var(--border-color);
}

.stat-item:first-child {
    padding-left: 0;
}

.stat-item:last-child {
    border-right: none;
}

.stat-item h2 {
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.2rem;
    color: var(--accent);
}

.stat-item h2 span {
    color: var(--text-primary);
}

.stat-item p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ---- Footer ---- */
.legal-footer {
    text-align: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 2rem;
}

.footer-author {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 0.6rem 1.25rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    margin-bottom: 1.25rem;
}

[data-theme="light"] .footer-author {
    background: rgba(0, 0, 0, 0.03);
}

.footer-name {
    color: var(--text-primary);
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.footer-links {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.bmc-link {
    display: inline-block;
    transition: opacity 0.2s;
}

.legal-footer > p {
    color: var(--text-dim);
    font-size: 0.7rem;
    line-height: 1.65;
    margin-bottom: 0.75rem;
}

.legal-links {
    margin-top: 0.5rem;
}

.legal-links a {
    color: var(--text-dim);
    font-size: 0.78rem;
    margin: 0 0.75rem;
    transition: color 0.2s;
}

.legal-links a:hover {
    color: var(--text-primary);
}

/* ---- Status / hidden ---- */
#status-container {
    padding: 1.5rem;
    text-align: center;
    color: var(--accent);
    font-weight: 500;
}

.hidden {
    display: none !important;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .hero-split {
        flex-direction: column;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }

    .hero-card {
        width: 100%;
    }

    .stat-item {
        padding: 0.75rem 1rem;
    }

    .stat-item:first-child {
        padding-left: 1rem;
    }

    .stat-item h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .format-tags {
        gap: 0.75rem;
    }

    .tag-group {
        gap: 0.3rem;
    }

    .tag {
        padding: 0.2rem 0.45rem;
        font-size: 0.72rem;
    }

    .stats-bar {
        flex-direction: column;
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 0.75rem 0 !important;
    }

    .stat-item:last-child {
        border-bottom: none;
    }
}
