/* 
============================================================
 ContentSchedulePlanner — Base Stylesheet (Mobile First)
============================================================
*/

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

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --secondary: #0ea5e9;
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border: #e2e8f0;
    
    /* Status Colors */
    --clr-draft: #64748b;
    --clr-progress: #3b82f6;
    --clr-review: #f59e0b;
    --clr-revisi: #ef4444;
    --clr-disetujui: #10b981;
    --clr-uploaded: #0891b2;

    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.25rem;
    --radius-xl: 1.5rem;
    
    --shadow-sm: 0 2px 4px rgb(0 0 0 / 0.04);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.04);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.05);

    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-blur: blur(16px);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    padding-bottom: calc(5rem + env(safe-area-inset-bottom));
}

a { text-decoration: none; color: inherit; }
button, input, textarea, select { font: inherit; outline: none; }

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4 {
    letter-spacing: -0.025em;
    font-weight: 800;
}

/* ── Layout ────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 1rem;
}

.mobile-header {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f1f5f9;
    padding: 0.35rem 0.85rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

/* ── Navigation ────────────────────────────────────────────── */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    display: flex;
    justify-content: space-around;
    padding: 0.75rem 0.5rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 600;
    flex: 1;
    transition: color 0.2s;
}

.nav-item.active { color: var(--primary); }
.nav-icon { font-size: 1.25rem; }
.nav-item.active .nav-icon { 
    transform: scale(1.1); 
    transition: transform 0.2s; 
}

/* ── Badges & Status ───────────────────────────────────────── */
.status-badge {
    padding: 0.3rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.status-draft { background: #f1f5f9; color: #475569; }
.status-progress { background: #eff6ff; color: #2563eb; }
.status-review { background: #fef3c7; color: #d97706; }
.status-revisi { background: #fef2f2; color: #dc2626; }
.status-disetujui { background: #ecfdf5; color: #059669; }
.status-uploaded { background: #ecfeff; color: #0891b2; }

.platform-badge {
    padding: 0.25rem 0.6rem;
    border-radius: 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-right: 0.35rem;
}

/* ── Cards ─────────────────────────────────────────────────── */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    transition: transform 0.15s, box-shadow 0.15s;
    cursor: pointer;
}

.card:active {
    transform: scale(0.98);
}

.content-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

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

.content-info { flex: 1; }
.content-title { font-weight: 800; font-size: 1.05rem; margin-bottom: 0.35rem; color: var(--text-main); }
.content-meta { font-size: 0.8rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.5rem; font-weight: 500;}

/* ── Forms ─────────────────────────────────────────────────── */
.btn {
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.btn-primary { 
    background: var(--primary); 
    color: #fff; 
    box-shadow: 0 4px 14px 0 rgb(99 102 241 / 39%);
}
.btn-primary:active { 
    background: var(--primary-dark);
    transform: scale(0.98);
}

.btn-sm { padding: 0.5rem 0.85rem; font-size: 0.85rem; }

/* ── Floating Action Button ────────────────────────────────── */
.fab {
    position: fixed;
    bottom: 6rem;
    right: 1.25rem;
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
    z-index: 90;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.fab:active { 
    transform: scale(0.92); 
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

/* ── Utility ───────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-2 { margin-top: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }

/* Desktop Adjustment */
@media (min-width: 768px) {
    .container { padding: 2.5rem; }
    .bottom-nav { 
        position: static; 
        border-top: none; 
        background: none; 
        padding: 0; 
        justify-content: flex-start;
        gap: 2rem;
    }
}

/* ── Filter Tabs ───────────────────────────────────────────── */
.filter-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.filter-tabs::-webkit-scrollbar {
    display: none;
}
.filter-btn {
    flex-shrink: 0;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
}
.filter-btn:active {
    transform: scale(0.95);
}
.filter-btn.active {
    background: var(--text-main);
    color: #fff;
    border-color: var(--text-main);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}
