/**
 * Layout Styles
 * Main layout structure for left and top menu placements
 */

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

body {
    font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Site Container */
.site-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Left Menu Layout */
body.menu-left .site-container {
    flex-direction: row;
}

body.menu-left .site-header {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 240px;
    background: #fff;
    display: flex;
    flex-direction: column;
    padding: 40px 20px;
    overflow-y: auto;
    z-index: 1000;
}

body.menu-left .site-main-wrapper {
    margin-left: 240px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Top Menu Layout */
body.menu-top .site-header {
    position: relative;
    background: #fff;
    text-align: center;
}

/* Top menu — logo links van het menu (full-width en binnen-container) */
body.menu-top.logo-left .site-header,
body.menu-top.logo-left-contained .site-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0 40px;
    text-align: left;
}

body.menu-top.logo-left .site-branding,
body.menu-top.logo-left-contained .site-branding {
    padding: 10px 0;
    margin: 0;
    flex-shrink: 0;
}

body.menu-top.logo-left .site-navigation,
body.menu-top.logo-left-contained .site-navigation {
    flex: 1;
    padding: 10px 0 10px 40px;
    background: transparent;
}

body.menu-top.logo-left .site-navigation ul {
    justify-content: flex-end;
    margin: 0;
    max-width: none;
}

body.menu-top.logo-left-contained .site-navigation ul {
    justify-content: flex-end;
    margin: 0;
    max-width: none;
}

body.menu-top.logo-left.sticky-header .site-header.is-sticky,
body.menu-top.logo-left-contained.sticky-header .site-header.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

body.menu-top .site-branding {
    padding: 20px 40px 0;
    max-width: 2000px;
    margin: 0 auto;
}

body.menu-top .site-navigation {
    background: #fff;
    padding: 20px 40px;
}

body.menu-top .site-navigation ul {
    max-width: 2000px;
    margin: 0 auto;
}

body.menu-top.sticky-header .site-navigation.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Content wrapper */
.site-main-wrapper {
    width: 100%;
    flex: 1;
}

.site-content {
    max-width: 2000px;
    margin: 0 auto;
    padding: 40px;
    width: 100%;
    box-sizing: border-box;
}

body.menu-top .site-content {
    padding: 20px 40px 40px;
}

/* Content typography */
.entry-content p {
    margin-bottom: 1em;
}

.entry-content p:last-child {
    margin-bottom: 0;
}

/* Page titles */
.entry-header {
    margin-bottom: 20px;
}

.entry-meta .posted-on + .cat-links::before {
    content: '|';
    margin: 0 6px;
    opacity: 0.35;
}

body.menu-top .entry-header {
    text-align: center;
}

/* Content Container Template */
.entry-content > :not(.wp-block-gallery):not(.wp-block-mwo-galerij):not(.mwo-galerij-wrapper) {
    max-width: 1170px;
    margin-inline: auto;
}

/* Menu links: content links uitgelijnd */
body.menu-left .entry-content > :not(.wp-block-gallery):not(.wp-block-mwo-galerij):not(.mwo-galerij-wrapper) {
    margin-left: 0;
}

/* Menu boven: container gecentreerd, content links uitgelijnd */
body.menu-top .content-container-template .entry-content > :not(.wp-block-gallery):not(.wp-block-mwo-galerij):not(.mwo-galerij-wrapper) {
    margin: 0 auto;
}

/* Footer */
.site-footer {
    background: #fff;
    color: #333;
    padding: 30px 40px;
    text-align: center;
    margin-top: auto;
    border-top: 1px solid #eee;
}

.site-footer #footer-menu {
    list-style: none;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 0 12px;
    padding: 0;
}

.site-footer #footer-menu li {
    margin: 0;
}

.site-footer #footer-menu a {
    display: block;
    color: #333;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 0.5px;
    transition: color 0.3s;
    padding: 4px 0;
}

.site-footer .footer-content {
    max-width: 2000px;
    margin: 0 auto;
}

.site-footer .social-media-links {
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.site-footer .social-media-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

/* Hover color is set dynamically via inline CSS in functions.php */
.site-footer .social-media-links a:hover {
    /* Color is set dynamically */
}

.site-footer .social-media-links i {
    font-size: 24px;
}

.site-footer p {
    margin: 0;
}

.site-footer p.copyright {
    margin-top: 10px;
    font-size: 14px;
    color: #333;
}

.site-footer p.copyright a {
    color: #333;
    text-decoration: underline;
}

.site-footer p.copyright a:hover {
    opacity: 0.7;
}

/* Darkmode */
body.darkmode {
    background: #000;
    color: #fff;
}

body.darkmode .site-header {
    background: #000;
    color: #fff;
    border-right: 1px solid #333;
}

body.darkmode .site-navigation {
    background: #000;
}

body.darkmode .site-navigation a {
    color: #ccc;
}

body.darkmode .site-title a {
    color: #fff;
}

body.darkmode .site-description {
    color: #fff;
}

body.darkmode .social-media-links a {
    color: #fff;
}

body.darkmode .site-content {
    color: #fff;
}

body.darkmode .site-content p {
    color: #ddd;
}

body.darkmode .site-footer {
    background: #000;
    color: #fff;
    border-top: 1px solid #333;
}

body.darkmode .site-footer p.copyright,
body.darkmode .site-footer p.copyright a {
    color: #999;
}

body.darkmode h1,
body.darkmode h2,
body.darkmode h3,
body.darkmode h4,
body.darkmode h5,
body.darkmode h6 {
    color: #fff;
}

/* Darkmode: Keep hover and active menu colors (from dynamic CSS) */
/* The menu accent color and link color are set via inline CSS in functions.php */
/* Those will still work because they have higher specificity */

/* Responsive */

/* iPad Portrait - Menu Left optimization */
@media (min-width: 769px) and (max-width: 1024px) {
    body.menu-left .site-header {
        width: 150px;
        padding: 30px 15px;
    }

    body.menu-left .site-main-wrapper {
        margin-left: 150px;
    }

    body.menu-left .site-content {
        padding: 30px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    body.menu-left .site-header {
        width: 100%;
        position: relative;
        padding: 20px;
    }

    body.menu-left .site-main-wrapper {
        margin-left: 0;
    }

    body.menu-top .site-header {
        padding: 20px;
    }

    .site-content {
        padding: 20px;
    }
}
