/* ====================================================================
   Nationalratswahlen Kanton Bern - Responsive & Paywall Styling
   ==================================================================== */

:root {
    --primary: #1e3a8a;
    --primary-light: #3b82f6;
    --secondary: #0f172a;
    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --accent-red: #dc2626;
    --accent-green: #16a34a;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: #334155;
    padding-bottom: 70px; /* Mobile nav offset */
}

/* Header & Persistent Filter Bar */
.top-header {
    background-color: var(--secondary);
    color: white;
    padding: 12px 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-select {
    background: #1e293b;
    color: white;
    border: 1px solid #475569;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
}

/* Perspectives Navigation Tabs */
.view-tabs {
    display: flex;
    background: white;
    border-bottom: 1px solid var(--border-color);
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: auto;
}

.tab-btn {
    padding: 14px 20px;
    border: none;
    background: none;
    font-weight: 600;
    font-size: 15px;
    color: #64748b;
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    color: var(--primary-light);
    border-bottom-color: var(--primary-light);
}

/* Main Container */
.main-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 16px;
}

/* Cards & Grid */
.card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* Paywall Blur Overlay ("Schmackhaft machen") */
.paywall-wrapper {
    position: relative;
    overflow: hidden;
}

.paywall-blurred {
    filter: blur(7px);
    user-select: none;
    pointer-events: none;
}

.paywall-overlay-banner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(15, 23, 42, 0.92);
    color: white;
    padding: 24px 32px;
    border-radius: 12px;
    text-align: center;
    z-index: 10;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    max-width: 90%;
    width: 440px;
}

.btn-primary {
    background: var(--accent-green);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    font-size: 15px;
    display: inline-block;
    margin-top: 12px;
}

.btn-primary:hover {
    background: #15803d;
}

/* Mobile Bottom Navigation Bar */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border-color);
    z-index: 99;
}

.mobile-nav-items {
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    color: #64748b;
    text-decoration: none;
}

@media (max-width: 768px) {
    .view-tabs { display: none; }
    .mobile-nav { display: block; }
    .main-container { margin: 10px auto; }
}
