/* 
    Social Spark Simple Editor - Matte Neural Minimalist
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@600;800&display=swap');

:root {
    --bg-deep: #0a0a0c;
    --bg-matte: #121216;
    --accent: #6366f1;
    --text: #f8fafc;
    --text-dim: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
}

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

body {
    background: var(--bg-deep);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

header {
    height: 60px;
    padding: 0 20px;
    background: var(--bg-matte);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-icon { width: 30px; height: 30px; background: var(--accent); border-radius: 6px; }
.brand-name { font-family: 'Outfit'; font-size: 1.1rem; }
.brand-name span { color: var(--text-dim); font-weight: 400; }

.simple-workspace {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.editor-main {
    width: 100%;
    max-width: 1200px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.preview-container {
    flex: 1;
    background: #000;
    border-radius: 12px;
    border: 1px solid var(--border);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#main-video {
    max-width: 100%;
    max-height: 100%;
}

.drop-zone {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 12, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 10;
}

.timeline-area {
    background: var(--bg-matte);
    border-top: 1px solid var(--border);
    padding: 20px;
}

.timeline-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.playback-btns { display: flex; align-items: center; gap: 15px; }

.icon-btn {
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
}

#time-display { font-family: monospace; color: var(--text-dim); }

.timeline-wrapper {
    height: 60px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.timeline-track {
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
}

.playhead {
    position: absolute;
    top: 0; bottom: 0;
    width: 2px;
    background: var(--text);
    z-index: 5;
    pointer-events: none;
}

.trim-marker {
    position: absolute;
    top: 0; bottom: 0;
    width: 4px;
    background: var(--accent);
    cursor: ew-resize;
    z-index: 4;
}

.trim-marker.start { border-radius: 4px 0 0 4px; }
.trim-marker.end { border-radius: 0 4px 4px 0; }

.trim-marker::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 12px; height: 24px;
    background: var(--accent);
    border-radius: 3px;
}

.btn {
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg-matte);
    color: var(--text);
    cursor: pointer;
    font-family: inherit;
    transition: 0.2s;
}

.btn:hover { background: rgba(255,255,255,0.05); }
.btn-primary { background: var(--accent); border-color: transparent; font-weight: 600; }
.btn-primary:hover { filter: brightness(1.1); }
