/* ============================================================
   Content Hub — Liquid Glass Design
   ============================================================ */

:root {
    --bg-gradient: linear-gradient(135deg, #e8dff5 0%, #d4e7ff 30%, #e0f5e9 60%, #f3e5f5 100%);
    --glass: rgba(255, 255, 255, 0.45);
    --glass-strong: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-hover: rgba(255, 255, 255, 0.7);
    --text: #1a1a1a;
    --text-muted: rgba(0, 0, 0, 0.4);
    --text-dim: rgba(0, 0, 0, 0.25);
    --accent: #7C5CFC;
    --green: #2ecc71;
    --yellow: #f39c12;
    --blue: #3498db;
    --red: #e53935;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.12);
    --sidebar-w: 240px;
    --radius: 20px;
    --radius-sm: 14px;

    /* Kanal-Farben */
    --color-sonamu: #FF4202;
    --color-julesgue: #C8A2C8;
    --color-404fdnf: #8B5CF6;
    --color-linkedin: #0A66C2;
}

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

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text);
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
    width: var(--sidebar-w);
    background: var(--glass);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.logo {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text);
}
.logo span { color: var(--accent); }

.sidebar-header { margin-bottom: 32px; padding: 0 8px; }

.nav-section { margin-bottom: 24px; }

.nav-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 0 12px;
    margin-bottom: 8px;
    display: block;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid transparent;
    background: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}
.nav-item:hover {
    background: var(--glass-hover);
    color: var(--text);
    border-color: var(--glass-border);
}
.nav-item.active {
    background: var(--glass-strong);
    color: var(--text);
    border-color: var(--glass-border);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.nav-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.nav-icon { font-size: 18px; }
.nav-bottom { margin-top: auto; }

/* ============================================================
   MAIN
   ============================================================ */
.main {
    flex: 1;
    margin-left: var(--sidebar-w);
    min-height: 100vh;
}

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 32px;
    background: var(--glass);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.view-title { font-size: 22px; font-weight: 700; letter-spacing: -0.5px; }
.view-subtitle { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.topbar-center { display: flex; align-items: center; }

.view-toggle {
    display: flex;
    background: rgba(255,255,255,0.4);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.toggle-btn {
    padding: 8px 18px;
    border: none;
    background: none;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}
.toggle-btn:hover { color: var(--text); background: rgba(255,255,255,0.3); }
.toggle-btn.active {
    background: var(--accent);
    color: white;
    box-shadow: 0 2px 8px rgba(124, 92, 252, 0.3);
}

.date-nav { display: flex; align-items: center; gap: 8px; }

.date-btn {
    background: rgba(255,255,255,0.5);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text);
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(10px);
}
.date-btn:hover { background: var(--glass-hover); transform: scale(1.05); }

.current-date {
    font-size: 14px;
    font-weight: 600;
    min-width: 180px;
    text-align: center;
}

.content { padding: 24px 32px; }

/* ============================================================
   STATS ROW
   ============================================================ */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--glass);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: var(--shadow);
    transition: all 0.2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

.stat-number { font-size: 30px; font-weight: 700; letter-spacing: -1px; color: var(--accent); }
.stat-label { font-size: 12px; color: var(--text-muted); font-weight: 500; }

/* ============================================================
   TASKS LIST
   ============================================================ */
.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}

.task-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--glass);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.task-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); filter: brightness(1.03); }
.task-card.done { opacity: 0.4; }
.task-card.done .task-title { text-decoration: line-through; }

.task-checkbox {
    width: 22px; height: 22px;
    border: 2px solid rgba(0,0,0,0.15);
    border-radius: 50%;
    flex-shrink: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    background: rgba(255,255,255,0.5);
}
.task-checkbox:hover { border-color: var(--accent); background: rgba(124,92,252,0.1); }
.task-checkbox.checked {
    background: var(--green);
    border-color: var(--green);
    box-shadow: 0 2px 8px rgba(46,204,113,0.3);
}
.task-checkbox.checked::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: 700;
}

.task-info { flex: 1; min-width: 0; }
.task-title { font-size: 13px; font-weight: 500; }
.task-details-preview {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.task-meta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.task-duration {
    font-size: 11px;
    color: var(--text-muted);
    background: rgba(255,255,255,0.5);
    padding: 3px 8px;
    border-radius: 8px;
}

.task-channel-dot { width: 8px; height: 8px; border-radius: 50%; }

/* ============================================================
   POSTS GRID
   ============================================================ */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.section-header h3 { font-size: 15px; font-weight: 600; }

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.post-card {
    background: var(--glass);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.2s;
    box-shadow: var(--shadow);
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

.post-media {
    width: 100%; height: 180px;
    object-fit: cover;
    background: rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}
.post-media .material-icons-round { font-size: 48px; color: var(--text-dim); }

.post-body { padding: 16px; }

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.post-time { font-size: 11px; color: var(--text-muted); font-weight: 500; }

.post-status {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 8px;
}
.status-draft { background: rgba(0,0,0,0.05); color: var(--text-muted); }
.status-ready { background: rgba(243,156,18,0.15); color: var(--yellow); }
.status-approved { background: rgba(46,204,113,0.15); color: var(--green); }
.status-posted { background: rgba(52,152,219,0.15); color: var(--blue); }

.post-title { font-size: 14px; font-weight: 600; margin-bottom: 6px; line-height: 1.3; }

.post-caption-preview {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.post-action-btn {
    flex: 1;
    padding: 8px;
    border: 1px solid rgba(0,0,0,0.08);
    background: rgba(255,255,255,0.5);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    font-family: inherit;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.2s;
}
.post-action-btn:hover { background: var(--glass-hover); color: var(--text); }
.post-action-btn .material-icons-round { font-size: 16px; }
.post-action-btn.btn-approve { border-color: rgba(46,204,113,0.4); color: var(--green); }
.post-action-btn.btn-approve:hover { background: rgba(46,204,113,0.1); }

/* ============================================================
   OVERVIEW — Alle Kanäle
   ============================================================ */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.overview-channel {
    background: var(--glass);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: all 0.2s;
}

.overview-channel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    cursor: pointer;
}
.overview-channel-header:hover .overview-channel-name { color: var(--accent); }

.overview-channel-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.overview-channel-name {
    font-size: 16px;
    font-weight: 700;
    transition: color 0.15s;
}

.overview-channel-platform {
    font-size: 11px;
    color: var(--text-muted);
}

.overview-stats {
    display: flex;
    gap: 16px;
    margin-left: auto;
}

.overview-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 48px;
}

.overview-stat-num {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
}

.overview-stat-label {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.overview-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.overview-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    background: rgba(255,255,255,0.4);
    font-size: 13px;
    transition: all 0.15s;
    cursor: pointer;
}
.overview-item:hover { background: rgba(255,255,255,0.7); transform: translateX(3px); }

.overview-item-date {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    min-width: 42px;
}

.overview-item-title {
    flex: 1;
    font-weight: 500;
}

.overview-item-type {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 6px;
}
.overview-item-type.type-task {
    background: rgba(124,92,252,0.1);
    color: var(--accent);
}
.overview-item-type.type-draft {
    background: rgba(0,0,0,0.05);
    color: var(--text-muted);
}
.overview-item-type.type-ready {
    background: rgba(46,204,113,0.12);
    color: var(--green);
}
.overview-item-type.type-posted {
    background: rgba(52,152,219,0.12);
    color: var(--blue);
}

.overview-empty {
    font-size: 12px;
    color: var(--text-dim);
    padding: 8px 0;
    font-style: italic;
}

.overview-more {
    font-size: 11px;
    color: var(--accent);
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
}
.overview-more:hover { text-decoration: underline; }

/* ============================================================
   TODAY BANNER
   ============================================================ */
.today-banner {
    grid-column: 1 / -1;
    margin-bottom: 4px;
    background: linear-gradient(135deg, rgba(124,92,252,0.08) 0%, rgba(52,211,153,0.08) 100%);
    border: 1px solid rgba(124,92,252,0.2);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 4px;
    backdrop-filter: blur(20px);
}

.today-banner-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.today-banner-header h3 {
    font-size: 16px;
    font-weight: 700;
}

.today-icon {
    color: var(--accent);
    font-size: 22px;
}

.today-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.today-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.5);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}
.today-item:hover { background: rgba(255,255,255,0.8); transform: translateX(3px); }

.today-item-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.today-item-text { flex: 1; }

.today-item-time {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

.today-alert {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(251,191,36,0.12);
    border: 1px solid rgba(251,191,36,0.25);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #b8860b;
    margin-top: 4px;
}

.today-empty {
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
}

/* ============================================================
   POST CHECKLIST
   ============================================================ */
.post-checklist {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.check-item {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
}

.check-done {
    background: rgba(46,204,113,0.12);
    color: var(--green);
}
.check-done::before { content: '✓ '; }

.check-missing {
    background: rgba(229,57,53,0.08);
    color: var(--red);
}
.check-missing::before { content: '✗ '; }

/* ============================================================
   WEEK VIEW
   ============================================================ */
.week-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
}

.week-day {
    background: var(--glass);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    min-height: 300px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    transition: all 0.2s;
}

.week-day.today {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), 0 8px 32px rgba(124,92,252,0.1);
}

.week-day-header {
    padding: 12px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    text-align: center;
}

.week-day-name {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.week-day-number {
    font-size: 20px;
    font-weight: 700;
    margin-top: 2px;
}
.week-day.today .week-day-number { color: var(--accent); }

.week-day-content {
    padding: 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
    min-height: 0;
}

.week-item {
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid;
    backdrop-filter: blur(10px);
}
.week-item:hover { transform: translateX(2px); filter: brightness(1.05); }

.week-item-task {
    background: rgba(255,255,255,0.4);
    border-left-color: var(--text-dim);
}
.week-item-task.done { opacity: 0.4; text-decoration: line-through; }

.week-item-post {
    border-left-color: var(--accent);
    background: rgba(124,92,252,0.08);
}

.week-item-time { font-size: 10px; color: var(--text-muted); margin-top: 2px; }

.week-item-status {
    display: inline-block;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 1px 5px;
    border-radius: 4px;
    margin-left: 4px;
}

.week-day-content.drag-over {
    background: rgba(124,92,252,0.05);
    outline: 2px dashed var(--accent);
    outline-offset: -4px;
}

.week-item.dragging { opacity: 0.3; }

/* ============================================================
   MONTH VIEW
   ============================================================ */
.month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.month-header-cell {
    padding: 8px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.month-cell {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    min-height: 90px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.month-cell:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.month-cell.today { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.month-cell.other-month { opacity: 0.3; }

.month-cell-day { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.month-cell.today .month-cell-day { color: var(--accent); }

.month-cell-dots { display: flex; flex-wrap: wrap; gap: 3px; }
.month-dot { width: 7px; height: 7px; border-radius: 50%; }

.month-cell-count { font-size: 10px; color: var(--text-muted); margin-top: 4px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}
.btn .material-icons-round { font-size: 18px; }
.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 2px 8px rgba(124,92,252,0.3);
}
.btn-primary:hover { opacity: 0.9; transform: scale(1.03); }
.btn-ghost {
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(0,0,0,0.08);
    color: var(--text);
}
.btn-ghost:hover { background: var(--glass-hover); }
.btn-done {
    background: rgba(46,204,113,0.15);
    border: 1px solid rgba(46,204,113,0.3);
    color: var(--green);
}
.btn-done:hover { background: rgba(46,204,113,0.25); }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}
.empty-icon { font-size: 48px; color: var(--text-dim); margin-bottom: 12px; }
.empty-sub { font-size: 12px; color: var(--text-dim); margin-top: 4px; }

/* ============================================================
   IDEAS HUB
   ============================================================ */
.ideas-header, .trends-header, .analytics-header { margin-bottom: 24px; }
.ideas-header h3, .trends-header h3, .analytics-header h3 { font-size: 20px; font-weight: 700; }
.ideas-subtitle, .trends-subtitle, .analytics-subtitle {
    color: var(--text-muted); font-size: 13px; margin-top: 4px;
}

.upload-zone {
    border: 2px dashed rgba(0,0,0,0.12);
    border-radius: var(--radius);
    padding: 48px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 24px;
    background: rgba(255,255,255,0.3);
}
.upload-zone:hover { border-color: var(--accent); background: rgba(124,92,252,0.05); }
.upload-icon { font-size: 48px; color: var(--text-dim); margin-bottom: 8px; }
.upload-zone p { color: var(--text-muted); font-size: 13px; }

.ideas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.idea-card {
    background: var(--glass);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.idea-media { width: 100%; height: 180px; object-fit: cover; }
.idea-body { padding: 16px; }
.idea-analysis {
    font-size: 12px; color: var(--text-muted); line-height: 1.5;
    margin-top: 8px; padding: 12px;
    background: rgba(255,255,255,0.4); border-radius: 10px;
}
.idea-suggestion {
    display: inline-block; margin-top: 8px;
    padding: 4px 10px; font-size: 11px; font-weight: 600; border-radius: 8px;
    background: rgba(124,92,252,0.12); color: var(--accent);
}

/* ============================================================
   TREND HUB
   ============================================================ */
.search-bar {
    display: flex; align-items: center; gap: 12px;
    background: var(--glass); border: 1px solid var(--glass-border);
    border-radius: var(--radius); padding: 8px 16px; margin-bottom: 24px;
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    box-shadow: var(--shadow);
}
.search-icon { color: var(--text-dim); font-size: 22px; }
.search-input {
    flex: 1; background: none; border: none;
    color: var(--text); font-size: 14px; font-family: inherit; outline: none;
}
.search-input::placeholder { color: var(--text-dim); }

.trends-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

/* ============================================================
   ANALYTICS
   ============================================================ */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.analytics-card {
    background: var(--glass);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.analytics-card-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 16px;
}
.analytics-card h4 { font-size: 14px; font-weight: 600; }

.analytics-metric {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.analytics-metric:last-child { border-bottom: none; }
.analytics-metric-label { font-size: 12px; color: var(--text-muted); }
.analytics-metric-value { font-size: 13px; font-weight: 600; }

.analytics-insight {
    margin-top: 12px; padding: 12px;
    background: rgba(255,255,255,0.4); border-radius: 10px;
    font-size: 12px; color: var(--text-muted); line-height: 1.5;
    border-left: 3px solid var(--accent);
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 200;
    display: flex; align-items: center; justify-content: center;
}

.modal {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(60px) saturate(200%);
    -webkit-backdrop-filter: blur(60px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    width: 520px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.12);
}
.modal-sm { width: 420px; }

.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.modal-header h3 { font-size: 17px; font-weight: 700; }
.modal-close {
    background: rgba(0,0,0,0.04); border: none; color: var(--text-muted);
    cursor: pointer; padding: 6px; border-radius: 10px;
    transition: all 0.2s;
}
.modal-close:hover { background: rgba(0,0,0,0.08); color: var(--text); }

.modal-body { padding: 24px; display: flex; flex-direction: column; gap: 14px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
    font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted);
}
.form-group input,
.form-group textarea,
.form-group select {
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px; padding: 10px 12px;
    color: var(--text); font-size: 14px; font-family: inherit;
    outline: none; resize: vertical;
    transition: all 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent);
    background: rgba(255,255,255,0.7);
    box-shadow: 0 0 0 3px rgba(124,92,252,0.1);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.form-hint { font-size: 11px; color: var(--text-dim); font-style: italic; }

.media-upload {
    border: 2px dashed rgba(0,0,0,0.1);
    border-radius: 12px; padding: 24px; text-align: center;
    cursor: pointer; transition: all 0.2s;
    background: rgba(255,255,255,0.3);
}
.media-upload:hover { border-color: var(--accent); background: rgba(124,92,252,0.05); }
.media-upload .material-icons-round { font-size: 32px; color: var(--text-dim); }
.media-upload p { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.media-preview { position: relative; border-radius: 12px; overflow: hidden; }
.media-preview img,
.media-preview video {
    width: 100%; max-height: 200px; object-fit: cover; border-radius: 12px;
}
.btn-remove-media {
    position: absolute; top: 8px; right: 8px;
    background: rgba(0,0,0,0.5); border: none; color: white;
    border-radius: 50%; width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
}

.modal-footer {
    display: flex; justify-content: flex-end; gap: 8px;
    padding: 16px 24px; border-top: 1px solid rgba(0,0,0,0.06);
}

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
    .week-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        bottom: 0; left: 0; right: 0; top: auto;
        width: 100%; height: auto;
        flex-direction: row;
        padding: 8px 4px;
        border-right: none;
        border-top: 1px solid var(--glass-border);
        z-index: 200;
        overflow-x: auto;
        gap: 2px;
    }
    .sidebar-header { display: none; }
    .nav-section { margin-bottom: 0; display: flex; gap: 2px; }
    .nav-label { display: none; }
    .nav-item {
        flex-direction: column;
        padding: 6px 8px;
        font-size: 10px;
        gap: 3px;
        min-width: 56px;
        text-align: center;
    }
    .nav-item span:not(.nav-dot):not(.nav-icon):not(.material-icons-round) {
        font-size: 9px;
        white-space: nowrap;
    }
    .nav-dot { width: 8px; height: 8px; }
    .nav-icon { font-size: 16px; }
    .nav-bottom { margin-top: 0; }

    .main { margin-left: 0; padding-bottom: 72px; }
    .topbar {
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px 16px;
    }
    .topbar-left { width: 100%; }
    .view-title { font-size: 18px; }
    .topbar-center { width: 100%; justify-content: center; }
    .topbar-right { width: 100%; justify-content: center; }
    .content { padding: 16px; }

    .stats-row { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .stat-card { padding: 12px; }
    .stat-number { font-size: 22px; }

    .posts-grid { grid-template-columns: 1fr; }
    .week-grid { grid-template-columns: 1fr; }
    .overview-grid { grid-template-columns: 1fr; }
    .month-grid { gap: 2px; }
    .month-cell { min-height: 50px; padding: 4px; }
    .month-cell-day { font-size: 11px; }

    .modal, .modal-sm { width: 95%; margin: 16px; max-height: 80vh; }

    .today-banner { padding: 14px 16px; }
    .today-banner-header h3 { font-size: 14px; }
    .today-item { padding: 8px 10px; font-size: 12px; }

    .section-header { flex-wrap: wrap; gap: 8px; }
    .task-card { padding: 10px 12px; }
    .post-card .post-media { height: 140px; }
}
