/**
 * Additional styles for bestel.aims-goes.nl
 * Base styling matching aims-goes.nl
 */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--secondary-bg);
    overflow-x: hidden;
    max-width: 100vw;
}

/* Header */
header {
    background: var(--primary-dark);
    color: var(--bg-white);
    padding: 20px 0;
    box-shadow: 0 2px 5px var(--shadow-sm);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.logo {
    display: inline-block;
    line-height: 0;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
    display: block;
    transition: opacity 0.3s ease;
}

/* Show light logo by default, hide dark logo */
.logo-light {
    display: block;
}

.logo-dark {
    display: none;
}

/* In dark mode: hide light logo, show dark logo */
body.dark-mode .logo-light {
    display: none;
}

body.dark-mode .logo-dark {
    display: block;
}

nav {
    display: flex;
    align-items: center;
}

nav a {
    color: var(--secondary-bg);
    text-decoration: none;
    margin-left: 30px;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--bg-white);
}

/* Header Cart Button */
.header-cart-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--primary-color);
    color: var(--bg-white);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-left: 30px;
}

.header-cart-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow-md);
}

.header-cart-badge {
    background: var(--error-color);
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75em;
    font-weight: bold;
    padding: 0 6px;
}

.header-cart-badge.hidden {
    display: none;
}

/* Dark Mode Toggle in Header */
.header-dark-mode-toggle {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    color: var(--text-color);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2em;
    transition: all 0.3s ease;
    margin-left: 15px;
}

.header-dark-mode-toggle:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* Main content */
main {
    min-height: calc(100vh - 200px);
    padding: 40px 20px;
}

/* Footer */
footer {
    background: var(--primary-dark);
    color: var(--secondary-bg);
    padding: 30px 0;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    width: 100%;
    box-sizing: border-box;
}

.footer-section h3 {
    color: var(--bg-white);
    margin-bottom: 15px;
}

.footer-section p,
.footer-section a {
    color: var(--secondary-bg);
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
}

.footer-section a:hover {
    color: var(--bg-white);
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--primary-color);
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .logo-img {
        height: 40px;
    }

    .header-container {
        flex-direction: column;
        text-align: center;
        padding: 0 12px;
    }

    nav {
        margin-top: 15px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 8px;
        align-items: center;
    }

    nav a,
    nav button {
        margin: 0 8px;
        font-size: 0.9em;
    }

    .header-cart-btn {
        margin: 0 8px;
        padding: 6px 12px;
        font-size: 0.9em;
    }

    .header-dark-mode-toggle {
        margin: 0 8px;
        width: 36px;
        height: 36px;
        font-size: 1em;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 0 12px;
    }
}

/* Loading animation */
.page-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--secondary-bg);
    opacity: 0.95;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.page-loading.hidden {
    display: none;
}
