/* ===========================================================
   EditorHub — design tokens
   Palette grounded in the editing-bay: deep ink background,
   a single playhead-red accent, a rec-dot lime used sparingly,
   and a film-strip motif on thumbnails.
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500&display=swap');

:root {
    --ink: #0F1115;
    --panel: #181B21;
    --panel-2: #1F232B;
    --line: #2B2F38;
    --paper: #ECEAE5;
    --paper-dim: #A7ACB6;
    --accent: #FF3B5C;
    --accent-dim: #C22C46;
    --rec: #C6FF3D;
    --radius: 10px;
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--font-body);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, .display {
    font-family: var(--font-display);
    letter-spacing: 0.01em;
    line-height: 0.95;
    font-weight: 400;
    margin: 0 0 0.4em;
}
h1 { font-size: clamp(2.6rem, 5vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3vw, 2.7rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; color: var(--paper-dim); }
.timecode {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--paper-dim);
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons & form controls ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-accent { background: var(--accent); color: #14060A; }
.btn-accent:hover { background: #ff5372; }
.btn-outline { background: transparent; border-color: var(--line); color: var(--paper); }
.btn-outline:hover { border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--paper-dim); padding: 8px 10px; }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }

label { display: block; font-size: 0.85rem; margin-bottom: 6px; color: var(--paper-dim); }
input, textarea, select {
    width: 100%;
    background: var(--panel-2);
    border: 1px solid var(--line);
    color: var(--paper);
    padding: 12px 14px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    margin-bottom: 16px;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent);
}
textarea { resize: vertical; min-height: 100px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 0.9rem;
    border: 1px solid var(--line);
}
.alert-error { border-color: var(--accent); color: #ff9fae; background: rgba(255,59,92,0.08); }
.alert-success { border-color: var(--rec); color: var(--rec); background: rgba(198,255,61,0.06); }

/* ---------- Header / nav ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(15,17,21,0.92);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--line);
}
.nav {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 0;
}
.logo { font-family: var(--font-display); font-size: 1.6rem; display: flex; align-items: center; gap: 8px; }
.logo .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--rec); display: inline-block; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 0.92rem; font-weight: 500; }
.nav-links a:hover { color: var(--accent); }
.avatar-sm {
    width: 34px; height: 34px; border-radius: 50%;
    object-fit: cover; border: 1px solid var(--line);
}

/* ---------- Hero ---------- */
.hero {
    padding: 90px 0 60px;
    border-bottom: 1px solid var(--line);
    position: relative;
    overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 50px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
.hero .eyebrow { color: var(--accent); font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.08em; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.scrubber {
    height: 2px; background: var(--line); position: relative; margin: 34px 0;
}
.scrubber::after {
    content: ''; position: absolute; left: 12%; top: -4px;
    width: 10px; height: 10px; border-radius: 50%; background: var(--accent);
}

.reel-stack { position: relative; }
.reel-card {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 16px; margin-bottom: -60px; transform: rotate(-3deg);
}
.reel-card:nth-child(2) { transform: rotate(2deg) translateX(30px); margin-bottom: 0; }
.reel-thumb { aspect-ratio: 9/16; background: var(--panel-2); border-radius: 6px; margin-bottom: 10px; position: relative; overflow: hidden; }
.reel-thumb .sprocket { position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background-image: repeating-linear-gradient(180deg, var(--ink) 0 6px, transparent 6px 14px); background-color: var(--line); opacity: 0.5; }

/* ---------- Search bar ---------- */
.search-panel {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px; display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 14px; align-items: end;
    margin: -40px auto 50px; position: relative; z-index: 5; max-width: 1160px;
}
.search-panel input, .search-panel select { margin-bottom: 0; }
@media (max-width: 860px) { .search-panel { grid-template-columns: 1fr 1fr; } }

/* ---------- Sections ---------- */
.section { padding: 60px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 10px; }

/* ---------- Editor cards ---------- */
.editor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .editor-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .editor-grid { grid-template-columns: 1fr; } }

.editor-card {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; transition: border-color 0.15s ease;
}
.editor-card:hover { border-color: var(--accent); }
.editor-card-media { position: relative; aspect-ratio: 16/10; background: var(--panel-2); }
.editor-card-media .sprocket-row {
    position: absolute; left: 0; right: 0; bottom: 0; height: 8px;
    background-image: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 14px);
    background-color: rgba(0,0,0,0.35);
}
.editor-card-body { padding: 16px; }
.editor-card-body .name-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.editor-card-body h3 { margin: 0; }
.badge {
    display: inline-block; font-size: 0.72rem; font-family: var(--font-mono);
    padding: 3px 8px; border-radius: 100px; border: 1px solid var(--line); color: var(--paper-dim);
}
.badge.available { color: var(--rec); border-color: rgba(198,255,61,0.4); }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.tag { font-size: 0.75rem; padding: 4px 10px; border-radius: 100px; background: var(--panel-2); color: var(--paper-dim); }

/* ---------- Profile page ---------- */
.profile-cover { height: 220px; background: var(--panel-2); position: relative; border-radius: var(--radius); overflow: hidden; margin-bottom: -70px; }
.profile-cover img { width: 100%; height: 100%; object-fit: cover; }
.profile-head { display: flex; gap: 20px; align-items: flex-end; padding: 0 24px; position: relative; z-index: 2; }
.avatar-lg { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 4px solid var(--ink); background: var(--panel-2); }
.profile-info { padding-top: 16px; }
.profile-actions { margin-left: auto; display: flex; gap: 10px; padding-top: 16px; }

.stat-strip { display: flex; gap: 30px; padding: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 30px 0; }
.stat-strip .stat b { font-family: var(--font-display); font-size: 1.6rem; display: block; }
.stat-strip .stat span { font-size: 0.8rem; color: var(--paper-dim); }

.media-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 700px) { .media-grid { grid-template-columns: repeat(2, 1fr); } }
.media-item { aspect-ratio: 1/1; background: var(--panel-2); border-radius: 8px; overflow: hidden; position: relative; }
.media-item img, .media-item video { width: 100%; height: 100%; object-fit: cover; }
.media-item .type-tag { position: absolute; top: 8px; left: 8px; font-size: 0.65rem; font-family: var(--font-mono); background: rgba(0,0,0,0.6); padding: 2px 7px; border-radius: 4px; }

/* ---------- Posts / feed ---------- */
.post {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 18px; margin-bottom: 16px;
}
.post-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.post-head .who { font-weight: 600; }
.post-media { border-radius: 8px; overflow: hidden; margin-top: 10px; background: var(--panel-2); }

/* ---------- Two column layout (dashboard) ---------- */
.layout-2col { display: grid; grid-template-columns: 280px 1fr; gap: 26px; align-items: start; }
@media (max-width: 800px) { .layout-2col { grid-template-columns: 1fr; } }
.side-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.side-nav a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--paper-dim); font-size: 0.9rem; }
.side-nav a:hover, .side-nav a.active { background: var(--panel-2); color: var(--paper); }

/* ---------- Messages ---------- */
.msg-item { padding: 16px; border-bottom: 1px solid var(--line); }
.msg-item.unread { background: rgba(255,59,92,0.04); }
.msg-item .top { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--paper-dim); }

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid var(--line); padding: 40px 0; margin-top: 60px;
    color: var(--paper-dim); font-size: 0.85rem;
}
.empty-state { text-align: center; padding: 60px 20px; color: var(--paper-dim); }
