/* Felles base-stiler for Lobbyisme */
:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --primary: #0f172a;
    --primary-muted: #334155;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-soft: #eff6ff;
    --border: #e2e8f0;
    --text-muted: #64748b;
    --error: #dc2626;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.05);
    --radius: 12px;
    --radius-sm: 8px;
}

* { box-sizing: border-box; }

body {
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--primary);
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

/* Navigasjon – lik på alle sider */
.main-nav {
    background: var(--surface);
    padding: 14px 28px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 20px;
}

.nav-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.main-nav a {
    text-decoration: none;
    color: var(--primary-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.15s ease;
}

.main-nav a:hover { color: var(--accent); }
.main-nav a.active { color: var(--accent); font-weight: 600; }

.logo-link {
    display: inline-flex;
    align-items: center;
    margin-right: 4px;
}

.logo-link:hover { color: inherit; }

.site-logo {
    height: 36px;
    width: auto;
    display: block;
    object-fit: contain;
}

.page-tabs {
    display: flex;
    gap: 8px;
    padding: 16px 28px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.page-tabs a {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--primary-muted);
    background: var(--accent-soft);
    transition: background 0.15s ease, color 0.15s ease;
}

.page-tabs a:hover { background: #dbeafe; color: var(--accent); }
.page-tabs a.active { background: var(--accent); color: white !important; }

.nav-user {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ========== Felles sidestruktur (hero + section-card) ========== */
.page-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 48px;
}

.page-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: white;
    padding: 40px 24px 48px;
    margin: 0 -24px 32px -24px;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg);
}

.page-hero .breadcrumb {
    font-size: 0.9rem;
    opacity: 0.85;
    margin-bottom: 16px;
}

.page-hero .breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.page-hero .breadcrumb a:hover {
    color: white;
}

.page-hero h1 {
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.page-hero .hero-subtitle {
    opacity: 0.9;
    font-size: 1rem;
    margin: 0;
}

.section-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.section-card h2 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-card h2::before {
    content: '';
    width: 4px;
    height: 1.2em;
    background: var(--accent);
    border-radius: 2px;
}

.section-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 1.2em;
    background: var(--accent);
    border-radius: 2px;
}

.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 1px dashed var(--border);
}

.empty-state p {
    margin: 0 0 12px 0;
    font-size: 1rem;
}

.empty-state a {
    font-weight: 600;
    color: var(--accent);
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
    text-decoration: none;
}

.back-link:hover {
    color: var(--accent);
}

/* Generelle lenker i innhold */
.page-container a:not(.back-link):not(.cta-link):not(.btn) {
    text-decoration: none;
    color: var(--accent);
    font-weight: 500;
}

.page-container a:not(.back-link):not(.cta-link):not(.btn):hover {
    text-decoration: underline;
}

/* Tag-badges (felles) */
.tag-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 500;
}

.tag-positiv,
.score-positiv {
    background: #dcfce7;
    color: #166534;
}

.tag-negativ,
.score-negativ {
    background: #fee2e2;
    color: #991b1b;
}
