/* =================================================================
   HEIMWEER SIDEBAR LAYOUT - Dark Header/Footer + Sticky Sidebars
   ================================================================= */

/* ROOT VARIABLES - LIGHT MODE (DEFAULT) */
:root {
    --header-bg: #000000;
    --header-text: #ffffff;
    --footer-bg: #000000;
    --footer-text: #ffffff;
    
    --body-bg: #f5f5f5;
    --content-bg: #ffffff;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    
    --sidebar-left-bg: #1a1a1a;
    --sidebar-right-bg: #ffffff;
    --sidebar-border: #e0e0e0;
    
    --link-color: #3498db;
    --link-hover: #2980b9;
    
    --social-facebook: #1877f2;
    --social-twitter: #1da1f2;
    --social-youtube: #ff0000;
    --social-rumble: #85c742;
    --social-bitchute: #ff3c00;
    --social-linkedin: #0077b5;
    
    --ad-bg: #f0f0f0;
    --ad-border: #ddd;
}

/* DARK MODE VARIABLES */
[data-theme="dark"] {
    --body-bg: #1a1a1a;
    --content-bg: #2d2d2d;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    
    --sidebar-right-bg: #2d2d2d;
    --sidebar-border: #404040;
    
    --link-color: #5dade2;
    --link-hover: #85c1e9;
    
    --ad-bg: #3a3a3a;
    --ad-border: #555;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--body-bg);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* =================================================================
   BLACK HEADER
   ================================================================= */
.main-header {
    background-color: var(--header-bg);
    color: var(--header-text);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-container {
    max-width: 100%;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo a {
    display: block;
}

.logo-img {
    height: 60px;
    width: auto;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* LANGUAGE SWITCHER */
.language-switcher {
    display: flex;
    gap: 5px;
    background: rgba(255,255,255,0.1);
    padding: 5px;
    border-radius: 8px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--header-text);
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: rgba(255,255,255,0.2);
}

.lang-btn.active {
    background: #ffffff;
    color: #000000;
}

/* THEME TOGGLE */
.theme-toggle {
    background: rgba(255,255,255,0.1);
    border: none;
    color: var(--header-text);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.theme-toggle:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(20deg);
}

.theme-toggle .dark-icon,
[data-theme="dark"] .theme-toggle .light-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .dark-icon {
    display: inline;
}

/* USER MENU */
.user-menu {
    position: relative;
}

.user-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: var(--header-text);
    padding: 10px 15px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.user-btn:hover {
    background: rgba(255,255,255,0.2);
}

.user-badge {
    background: #3498db;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
}

.user-dropdown {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    background: #ffffff;
    color: #000000;
    min-width: 200px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    overflow: hidden;
    z-index: 9999;
}

.user-dropdown.show {
    display: block;
}

.user-dropdown a {
    display: block;
    padding: 12px 20px;
    color: #000000;
    text-decoration: none;
    transition: background 0.3s ease;
}

.user-dropdown a:hover {
    background: #f0f0f0;
}

.user-dropdown i {
    margin-right: 10px;
    width: 20px;
}

.login-btn {
    background: #3498db;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

/* =================================================================
   LEFT SIDEBAR - SOCIAL MEDIA (STICKY, VERTICALLY CENTERED)
   ================================================================= */
.left-sidebar {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 0;
    z-index: 900;
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(8px);
    border-radius: 0 12px 12px 0;
    box-shadow: 2px 0 12px rgba(0,0,0,0.15);
}

.social-icons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.social-icon.facebook  { background: var(--social-facebook); }
.social-icon.twitter   { background: var(--social-twitter); }
.social-icon.youtube   { background: var(--social-youtube); }
.social-icon.rumble    { background: var(--social-rumble); }
.social-icon.bitchute  { background: var(--social-bitchute); }
.social-icon.linkedin  { background: var(--social-linkedin); }

.social-icon:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 12px rgba(0,0,0,0.35);
    color: white;
}

/* =================================================================
   RIGHT SIDEBAR - ADS & LINKS (STICKY)
   ================================================================= */
.right-sidebar {
    position: fixed;
    right: 0;
    top: 80px;
    width: 320px;
    height: calc(100vh - 80px);
    background-color: var(--sidebar-right-bg);
    overflow-y: auto;
    padding: 20px;
    z-index: 900;
    border-left: 1px solid var(--sidebar-border);
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
}

/* Ad Containers */
.ad-container {
    margin-bottom: 30px;
    text-align: center;
}

.ad-label {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 5px;
    text-transform: uppercase;
}

.ad-slot {
    background: transparent;
    border: none;
    border-radius: 8px;
    overflow: hidden;
}

.ad-300x250 {
    width: 280px;
    height: auto;
    margin: 0 auto;
}

.ad-300x600 {
    width: 280px;
    height: auto;
    margin: 0 auto;
}

.ad-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 24px;
    font-weight: bold;
}

/* Sidebar Links */
.sidebar-links {
    background: var(--content-bg);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.sidebar-links h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-primary);
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.sidebar-links ul {
    list-style: none;
}

.sidebar-links li {
    margin-bottom: 10px;
}

.sidebar-links a {
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.sidebar-links a:hover {
    background: rgba(52, 152, 219, 0.1);
    color: var(--link-color);
    transform: translateX(5px);
}

.sidebar-links i {
    width: 20px;
}

/* =================================================================
   MAIN CONTENT AREA
   ================================================================= */
.main-content {
    margin-left: 60px;
    margin-right: 320px;
    padding: 30px;
    min-height: calc(100vh - 200px);
    flex: 1;
}

/* =================================================================
   BLACK FOOTER
   ================================================================= */
.main-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 40px 0 20px;
    margin-left: 60px;
    margin-right: 320px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-section p,
.footer-section ul {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #3498db;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}

/* =================================================================
   RESPONSIVE DESIGN
   ================================================================= */

/* Tablet */
@media (max-width: 1024px) {
    .right-sidebar {
        width: 250px;
    }
    
    .main-content,
    .main-footer {
        margin-right: 250px;
    }
    
    .ad-300x250,
    .ad-300x600 {
        width: 210px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .left-sidebar {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        transform: none;
        width: 100%;
        height: auto;
        flex-direction: row;
        justify-content: center;
        border-radius: 12px 12px 0 0;
        padding: 8px 0;
        box-shadow: 0 -2px 12px rgba(0,0,0,0.15);
    }
    
    .social-icons {
        flex-direction: row;
        gap: 12px;
    }
    
    .social-icon {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }
    
    .right-sidebar {
        position: static;
        width: 100%;
        height: auto;
        border-left: none;
        border-top: 1px solid var(--sidebar-border);
    }

    /* Volgorde op mobiel: eerst het artikel, dan advertenties en Quick Links, dan de voet.
       Zonder dit stapelt de reclamekolom boven de inhoud (body is een kolom-flex). */
    .main-header { order: 0; }
    .main-content { order: 1; }
    .right-sidebar { order: 2; }
    .main-footer { order: 3; }

    .main-content {
        margin-left: 0;
        margin-right: 0;
        padding: 20px;
        padding-bottom: 70px; /* room for bottom social bar */
    }
    
    .main-footer {
        margin-left: 0;
        margin-right: 0;
        padding-bottom: 70px; /* room for bottom social bar */
    }
    
    .header-logo .logo-img {
        height: 45px;
    }
    
    .language-switcher {
        gap: 3px;
    }
    
    .lang-btn {
        padding: 5px 8px;
        font-size: 11px;
    }

    /* Compactere Login-knop op mobiel */
    .login-btn {
        padding: 6px 12px;
        font-size: 13px;
        border-radius: 20px;
    }
    .login-btn i {
        font-size: 13px;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    .left-sidebar {
        /* stays as bottom bar */
    }
    
    .main-content,
    .main-footer {
        margin-left: 0;
    }
    
    .header-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .user-btn span:first-of-type {
        display: none;
    }
}
