/*
Theme Name: Voormolen
Theme URI: https://example.com/voormolen
Author: Ron Klaren Media
Author URI: https://example.com
Description: A premium dark WordPress theme for photographers with a sliding portfolio and dynamic menus.
Version: 1.0.0
Text Domain: voormolen
*/

:root {
    --bg-color: #000;
    --text-color: #fff;
    --accents: #555;
    --transition-speed: 0.6s;
    --menu-width: 400px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow-x: hidden;
}

/* Base styles for the sliding menus and slider */
#wp-custom-fullpage-root {
    --menu-width: 400px;
    --trigger-width: 25%;
    --transition-speed: 0.6s;
    --stagger: 0.1s;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: #000;
    font-family: sans-serif;
    margin: 0;
    padding: 0;
}

/* Orientation Overlay */
#orientation-overlay {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 1000000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 20px;
}

@media (orientation: portrait) {
    #orientation-overlay {
        display: flex;
    }
}

.rotate-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    animation: rotateDevice 2s infinite ease-in-out;
}

@keyframes rotateDevice {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(-90deg); }
    100% { transform: rotate(0deg); }
}

body:has(#wp-custom-fullpage-root) {
    overflow: hidden !important;
}

/* Slider */
#wp-custom-fullpage-root .slider {
    position: absolute;
    inset: 0;
    z-index: 1;
}

#wp-custom-fullpage-root .slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    filter: brightness(0.6);
}

#wp-custom-fullpage-root .slide.active { opacity: 1; }

/* Logo centered (50%) */
#wp-custom-fullpage-root .logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 50;
    pointer-events: none;
}

#wp-custom-fullpage-root .logo img, 
#wp-custom-fullpage-root .logo svg {
    width: 578px;
    height: 100px;
    object-fit: contain;
    display: block;
}

/* Menu Zones */
#wp-custom-fullpage-root .zone {
    position: absolute;
    top: 0;
    bottom: 0;
    width: var(--trigger-width);
    z-index: 100;
}

#wp-custom-fullpage-root .zone-l { left: 0; }
#wp-custom-fullpage-root .zone-r { right: 0; }

/* Menus */
#wp-custom-fullpage-root .menu {
    position: absolute;
    top: 0;
    bottom: 0;
    width: var(--menu-width);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 60px;
    z-index: 90;
    transition: transform var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

#wp-custom-fullpage-root .menu-l {
    left: 0;
    transform: translateX(-100%);
    background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, transparent 100%);
}

#wp-custom-fullpage-root .menu-r {
    right: 0;
    transform: translateX(100%);
    background: linear-gradient(to left, rgba(0,0,0,0.85) 0%, transparent 100%);
    align-items: flex-end;
    text-align: right;
}

#wp-custom-fullpage-root .zone-l:hover ~ .menu-l, 
#wp-custom-fullpage-root .menu-l:hover { transform: translateX(0); pointer-events: all; }

#wp-custom-fullpage-root .zone-r:hover ~ .menu-r, 
#wp-custom-fullpage-root .menu-r:hover { transform: translateX(0); pointer-events: all; }

/* Links */
#wp-custom-fullpage-root .nav-link,
#wp-custom-fullpage-root .menu ul li a {
    display: block;
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    margin: 15px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.4s ease;
}

#wp-custom-fullpage-root .menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#wp-custom-fullpage-root .zone:hover ~ .menu .nav-link, 
#wp-custom-fullpage-root .menu:hover .nav-link,
#wp-custom-fullpage-root .zone:hover ~ .menu ul li a,
#wp-custom-fullpage-root .menu:hover ul li a {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for menu items */
#wp-custom-fullpage-root .menu ul li:nth-child(1) a { transition-delay: calc(var(--transition-speed) + 0.1s); }
#wp-custom-fullpage-root .menu ul li:nth-child(2) a { transition-delay: calc(var(--transition-speed) + 0.2s); }
#wp-custom-fullpage-root .menu ul li:nth-child(3) a { transition-delay: calc(var(--transition-speed) + 0.3s); }
#wp-custom-fullpage-root .menu ul li:nth-child(4) a { transition-delay: calc(var(--transition-speed) + 0.4s); }
#wp-custom-fullpage-root .menu ul li:nth-child(5) a { transition-delay: calc(var(--transition-speed) + 0.5s); }

/* Standard Page Layout */
.page-wrapper {
    width: 100%;
    min-height: 100vh;
    padding: 0;
    background-color: #1f1f1f;
}

.inner-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
    background-color: #1f1f1f;	
}

.entry-content {
    line-height: 1.8;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    background-color: #1f1f1f;
}

.entry-title {
    font-size: 3rem;
    margin-bottom: 40px;
    font-weight: 700;
}
