/*
Theme Name: Jeuner Default (Modern)
Theme URI: https://jeuner.de/
Author: Jeuner
Author URI: https://jeuner.de/
Description: A modern, performant WordPress theme for Jeuner, built without block editor elements, featuring a strict separation of base and extra styles for optimized loading times.
Version: 1.0.0
License: GPL2
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jeuner-default-modern
*/

/* --- BASE STYLES --- */
/* These styles are essential for the core layout and typography. */
/* Optimized for fast loading. */

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: #333;
    /* Dark gray text */
    background-color: #f0f2f5;
    /* Light gray background */
}

.site-header,
.site-footer {
    padding: 1rem 0;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.site-main {
    max-width: 960px;
    margin: 2rem auto;
    padding: 1rem;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.site-title {
    margin: 0;
    font-size: 1.5em;
    font-family: 'Press Start 2P', monospace;
    letter-spacing: 2px;
}

.site-title a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.site-title a:hover {
    color: #6366f1;
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

/* ============================================
   Modern Rounded Navigation Menu
   ============================================ */
.main-navigation {
    margin-top: 1rem;
}

.main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 0.6rem 1.25rem;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 0.5px;
    color: #1e293b;
    background: transparent;
    border-radius: 50px;
    position: relative;
    transition: all 0.3s ease;
}

/* Hover effect - pill background */
.main-navigation a:hover {
    color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

/* Active/Current item */
.main-navigation .current-menu-item a,
.main-navigation .current_page_item a {
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

/* CTA Button style (optional class) */
.main-navigation .menu-item-cta a {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.main-navigation .menu-item-cta a:hover {
    background: linear-gradient(135deg, #22d3ee, #06b6d4);
    color: #fff;
    box-shadow: 0 6px 20px rgba(34, 211, 238, 0.4);
    transform: translateY(-2px);
}

/* Sub-menu dropdown */
.main-navigation ul ul {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    background: #fff;
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    flex-direction: column;
    gap: 0;
    padding: 0.75rem;
}

.main-navigation li:hover>ul {
    display: flex;
}

.main-navigation ul ul a {
    padding: 0.6rem 1rem;
    font-size: 0.5rem;
    border: none;
}

.main-navigation ul ul a::after {
    display: none;
}

.main-navigation ul ul a:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: none;
    padding-left: 1.25rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .main-navigation ul {
        flex-direction: column;
        align-items: center;
    }

    .main-navigation a {
        font-size: 0.55rem;
        padding: 0.6rem 1rem;
    }

    .main-navigation ul ul {
        position: static;
        box-shadow: none;
        border: none;
        background: rgba(99, 102, 241, 0.05);
    }
}

.entry-header h1 {
    font-size: 2.5em;
    margin-bottom: 0.5em;
    color: #222;
}

.entry-content {
    line-height: 1.8;
}

.entry-content p {
    margin-bottom: 1em;
}

/* ============================================
   Frontpage Overrides
   ============================================ */
body.home .site-header,
body.page-template-front-page .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    border-bottom: none;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* WordPress Admin Bar Fix */
body.admin-bar.home .site-header,
body.admin-bar.page-template-front-page .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {

    body.admin-bar.home .site-header,
    body.admin-bar.page-template-front-page .site-header {
        top: 46px;
    }
}

body.home .site-header.header-scrolled,
body.page-template-front-page .site-header.header-scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body.home .site-header .site-title a,
body.home #site-navigation a,
body.page-template-front-page .site-header .site-title a,
body.page-template-front-page #site-navigation a {
    color: #fff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

body.home #site-navigation a:hover,
body.page-template-front-page #site-navigation a:hover {
    color: #22d3ee !important;
    background: rgba(255, 255, 255, 0.15);
}

body.home .site-header.header-scrolled .site-title a,
body.home .site-header.header-scrolled #site-navigation a,
body.page-template-front-page .site-header.header-scrolled .site-title a,
body.page-template-front-page .site-header.header-scrolled #site-navigation a {
    color: #1e293b !important;
    text-shadow: none;
}

body.home .site-header.header-scrolled #site-navigation a:hover,
body.page-template-front-page .site-header.header-scrolled #site-navigation a:hover {
    color: #6366f1 !important;
    background: rgba(99, 102, 241, 0.1);
}

body.home .site-content,
body.page-template-front-page .site-content {
    padding-top: 0;
}