@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
    --cg-sand-primary: #F4F1EA;
    --cg-sand-secondary: #FAF8F4;
    --cg-white: #FFFFFF;
    --cg-slate: #2C3E50;
    --cg-muted: #6B7280;
    --cg-blue: #5D9CEC;
    --cg-sage: #8FAF9F;
    --cg-divider: rgba(44, 62, 80, 0.08);
    --cg-success: #789688; /* Muted sage-green for success */
    --cg-radius-sm: 8px;
    --cg-radius-md: 12px;
    --cg-radius-lg: 16px;
    --cg-transition: all 250ms ease;
    --cg-shadow-soft: 0 4px 12px rgba(44, 62, 80, 0.04);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: linear-gradient(180deg, #F6F3EC 0%, #F2EFE7 100%);
    color: var(--cg-slate);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

h1, .welcome-header {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--cg-slate);
}

h2, h3, h4, h5, h6, .section-header, .brand-font {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--cg-slate);
}

.section-header {
    font-size: 20px;
}

.text-muted {
    color: #6B7280 !important;
}

/* Layout */
.navbar {
    background-color: var(--cg-white);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 0.75rem 0;
    transition: var(--cg-transition);
}

.navbar-brand img {
    height: 24px;
}

main {
    padding-bottom: 100px;
    padding-top: 24px;
}

section {
    padding: 40px 0;
}

/* Sidebar Navigation */
.sticky-sidebar {
    background: #F1EEE6;
    border-right: 1px solid rgba(0,0,0,0.05);
    padding: 24px 16px;
    height: calc(100vh - 72px);
    margin-left: -1.5rem;
}

.sidebar-nav .nav-link {
    padding: 10px 16px;
    border-radius: 50px;
    margin-bottom: 4px;
    gap: 12px;
    color: var(--cg-slate);
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.sidebar-nav .nav-link:hover {
    background-color: rgba(0,0,0,0.03);
}

.sidebar-nav .nav-link.active {
    background-color: rgba(93,156,236,0.12);
    color: var(--cg-slate);
    opacity: 1;
}

.sidebar-nav .nav-link i {
    font-size: 1.1rem;
}

/* Components */
.card, .profile-card, .suggestion-card {
    background: var(--cg-white);
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: var(--cg-transition);
    overflow: hidden;
}

.stat-widget {
    background: var(--cg-white);
    border: none;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.05);
    padding: 24px;
    transition: var(--cg-transition);
}

.card:hover, .profile-card:hover, .stat-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.08);
}

.dashboard-section {
    margin-bottom: 40px;
}

/* Badges & Tags */
.intent-badge {
    background-color: var(--cg-sand-secondary);
    color: var(--cg-blue);
    border: 1px solid rgba(93, 156, 236, 0.2);
    border-radius: 30px;
    padding: 4px 14px;
    font-size: 0.8rem;
    font-weight: 500;
}

.post-badge {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 4px 10px;
    border-radius: 6px;
    background-color: var(--cg-sand-secondary);
    color: var(--cg-muted);
    border: 1px solid var(--cg-divider);
}

/* Specific Page Refinements */
.hero-section {
    padding: 120px 0 80px;
    background-color: var(--cg-sand-primary);
    text-align: center;
}

.bottom-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--cg-divider);
    padding: 12px 0;
}

.bottom-nav-item {
    color: var(--cg-muted);
}

.bottom-nav-item.active {
    color: var(--cg-slate);
}

/* Forms */
.form-control, .form-select {
    background-color: var(--cg-white);
    border: 1px solid var(--cg-divider);
    border-radius: var(--cg-radius-md);
    padding: 12px 16px;
    transition: var(--cg-transition);
}

.form-control:focus {
    border-color: var(--cg-blue);
    box-shadow: 0 0 0 4px rgba(93, 156, 236, 0.05);
}

/* Divider Customization */
hr {
    border-top: 1px solid var(--cg-divider);
    opacity: 1;
}

/* Utils */
.rounded-cg { border-radius: var(--cg-radius-lg); }
.shadow-soft { box-shadow: var(--cg-shadow-soft); }
