/*
Theme Name: NL-FY Tweetalig Glasmorfism Theme+
Theme URI: https://stichtingpadelureterp.nl
Author: Ben
Author URI: https://stichtingpadelureterp.nl
Description: Een simpel, schoon WordPress thema speciaal gemaakt voor Nederlands-Frysk tweetalige websites.
Version: 1.1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nlfy-theme
*/
/* === Google Fonts === */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%);
}

h1, h2, h3, h4, h5, h6,
.site-title {
    font-family: 'Merriweather', Georgia, serif;
}
/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: #333;
    background: #f8f9fa;
    position: relative;
    min-height: 100vh;
}

/* Fixed achtergrondafbeelding */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--bg-image, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -1;
    opacity: var(--bg-opacity, 0.3);
}

/* Optionele gradient overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    z-index: -1;
    pointer-events: none;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #004499;
}

/* === Container === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === Header - Glasmorfisme === */
.site-header {
    background: white;
    border-radius: 16px;
    padding: 10px 0;
    position: sticky;
    top: 20px;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin: 20px auto;
    max-width: 1240px; /* 1200px + 2x 20px padding */
    transition: all 0.3s ease;
}

.site-header:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.site-header .container {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    max-width: 1200px;
    padding: 15px 20px;
    gap: 0;
}

.site-branding {
    display: contents;
}

.site-branding .menu-toggle {
    position: absolute;
    right: 20px;
    top: 15px;
}

.site-logo {
    grid-column: 1;
    grid-row: 1 / 3;
    display: flex;
    align-items: center;
    padding-right: 30px;
}

.site-logo img {
    max-height: 100px;
    width: auto;
    display: block;
}

.site-identity {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 5px 0;
}

.site-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.site-title a {
    color: #333;
    text-decoration: none;
}

.site-description {
    font-size: 0.9rem;
    color: #666;
    margin: 5px 0 0 0;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header {
        top: 10px;
        margin: 10px;
        border-radius: 12px;
    }
    
    .site-header .container {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .site-branding {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .site-branding .menu-toggle {
        position: static;
    }
    
    .site-logo {
        padding-right: 0;
    }
    
    .site-logo img {
        max-height: 60px;
    }
    
    .site-identity {
        text-align: center;
    }
}

/* Extra kleine schermen */
@media (max-width: 480px) {
    .site-header {
        border-radius: 8px;
    }
}

/* === Navigation === */
.main-navigation {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 5px;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
}

.main-navigation li {
    margin: 0;
}

.main-navigation a {
    color: #333;
    font-weight: 500;
    padding: 8px 0;
    display: block;
    transition: all 0.2s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: #0066cc;
}

/* === Submenu Dropdown === */
.main-navigation li {
    position: relative;
}

.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    padding: 10px 0;
    flex-direction: column;
    gap: 0;
    z-index: 1000;
}

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

.main-navigation ul ul li {
    margin: 0;
}

.main-navigation ul ul a {
    padding: 10px 20px;
    white-space: nowrap;
    display: block;
}

.main-navigation ul ul a:hover {
    background: rgba(0, 102, 204, 0.1);
}

/* Submenu indicator (pijltje) */
.main-navigation li.menu-item-has-children > a::after {
    content: ' ▾';
    font-size: 0.8em;
    opacity: 0.6;
}

/* Nested submenus */
.main-navigation ul ul ul {
    top: 0;
    left: 100%;
    transform: none;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px 12px;
    transition: all 0.2s ease;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* === Main Content === */
.site-content {
    padding: 60px 0;
    min-height: 60vh;
}

/* === Breadcrumb / Kruimelpad === */
.breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 20px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 8px;
    display: inline-block;
}

.breadcrumb a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #004499;
    text-decoration: underline;
}

.breadcrumb-separator {
    color: #999;
    margin: 0 5px;
}

.breadcrumb-current {
    color: #666;
    font-weight: 500;
}

/* === WordPress Alignment Classes === */
.alignleft {
    float: left;
    margin: 0 20px 20px 0;
    max-width: 50%;
}

.alignright {
    float: right;
    margin: 0 0 20px 20px;
    max-width: 50%;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
}

.alignnone {
    margin: 0 0 20px 0;
}

.alignwide {
    max-width: 100%;
    margin: 30px 0;
}

.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.wp-caption {
    max-width: 100%;
    margin-bottom: 20px;
}

.wp-caption img {
    display: block;
    margin: 0;
}

.wp-caption-text {
    font-size: 0.9rem;
    color: #666;
    padding: 8px 0;
    text-align: center;
    font-style: italic;
}

.entry-content::after {
    content: "";
    display: table;
    clear: both;
}

@media (max-width: 768px) {
    .alignleft,
    .alignright {
        float: none;
        display: block;
        margin: 20px auto;
        max-width: 100%;
    }
}

/* === Blog Posts - Glasmorfisme === */
.posts-list {
    display: grid;
    gap: 40px;
}

.post-item {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.post-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.85);
}
/* === Featured Images & Hover Effects === */

.post-thumbnail {
    margin: -40px -40px 25px -40px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    position: relative;
}

.post-thumbnail a {
    display: block;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease, filter 0.3s ease;
}

.post-item:hover .post-thumbnail img {
    transform: scale(1.05);
    filter: brightness(0.95);
}

/* Hover effect op de hele post */
.post-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15) !important;
}

/* Hover effect op titels */
.entry-title a {
    transition: color 0.2s ease;
    position: relative;
}

.entry-title a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #0066cc;
    transition: width 0.3s ease;
}

.entry-title a:hover::after {
    width: 100%;
}

/* Read more button hover */
.more-link {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.more-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
}

.more-link:hover::before {
    left: 100%;
}

.more-link:hover {
    transform: translateX(5px);
}

/* Responsive aanpassingen */
@media (max-width: 768px) {
    .post-thumbnail {
        margin: -30px -25px 20px -25px;
    }
}
.entry-title {
    font-size: 2rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.entry-title a {
    color: #333;
}

.entry-title a:hover {
    color: #0066cc;
}

.entry-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.entry-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.5);
    padding: 4px 12px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.entry-content {
    margin-top: 25px;
    font-size: 1rem;
    line-height: 1.7;
}

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

.entry-content h2,
.entry-content h3 {
    margin-top: 1.5em;
    margin-bottom: 0.8em;
}

.more-link,
.read-more {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 25px;
    background: rgba(0, 102, 204, 0.9);
    backdrop-filter: blur(5px);
    color: white;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.more-link:hover,
.read-more:hover {
    background: rgba(0, 68, 153, 0.95);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

/* === Single Post === */
.single .entry-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.single .entry-content {
    margin-top: 30px;
}

/* === Post Navigation === */
.post-navigation {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.post-navigation > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.post-navigation > div > div {
    flex: 1;
    padding: 15px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.post-navigation > div > div:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* === Pagination === */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 60px;
}

.pagination a,
.pagination span {
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
}

.pagination a:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.pagination .current {
    background: rgba(0, 102, 204, 0.9);
    color: white;
    border-color: rgba(0, 102, 204, 0.5);
}

/* === Footer - Glasmorfisme === */
.site-footer {
    background: rgba(44, 62, 80, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 40px 0;
    margin-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    text-align: center;
}

.footer-content p {
    margin: 5px 0;
    opacity: 0.9;
}

/* === 404 Page === */
.error-404 {
    text-align: center;
    padding: 80px 20px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    margin: 0 auto;
    max-width: 600px;
}

.error-404 h1 {
    font-size: 4rem;
    margin-bottom: 20px;
}

/* === Blog Posts Shortcode === */
.nlfy-blog-posts {
    display: grid;
    gap: 30px;
}

.blog-post-item {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
}

.blog-post-item:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.blog-post-item h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.blog-post-item .post-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
}

.blog-post-item .post-meta span {
    background: rgba(255, 255, 255, 0.5);
    padding: 3px 10px;
    border-radius: 15px;
}

.blog-post-item .post-excerpt {
    margin-bottom: 15px;
    color: #555;
}

/* === Responsive === */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }
    
    .site-header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .site-branding {
        flex-direction: column;
        gap: 10px;
    }
    
    .site-branding .menu-toggle {
        position: static;
        transform: none;
        align-self: center;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-navigation {
        width: 100%;
        border-top: none;
        margin-top: 0;
        padding-top: 0;
    }
    
    .main-navigation ul {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        border-radius: 8px;
        padding: 10px 0;
        margin-top: 10px;
    }
    
    .main-navigation.toggled ul {
        display: flex;
    }
    
    .main-navigation li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .main-navigation li:last-child {
        border-bottom: none;
    }
    
    .main-navigation a {
        padding: 15px 20px;
    }
    
    /* Mobile submenu */
    .main-navigation ul ul {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        background: rgba(0, 0, 0, 0.03);
        border-radius: 0;
        min-width: 100%;
        padding-left: 20px;
    }
    
    .main-navigation li.menu-item-has-children > a::after {
        content: ' ▸';
    }
    
    .main-navigation li.menu-item-has-children.submenu-open > a::after {
        content: ' ▾';
    }
    
    .post-item {
        padding: 30px 25px;
    }
    
    .entry-title {
        font-size: 1.6rem;
    }
    
    .single .entry-title {
        font-size: 2rem;
    }
}

/* === Taalswitch aanpassing - Extra contrast voor zichtbaarheid === */
#nl-fy-language-switcher {
    top: 100px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(3px) !important;
    -webkit-backdrop-filter: blur(3px) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15) !important;
}

@media (max-width: 768px) {
    #nl-fy-language-switcher {
        top: 80px !important;
        right: 10px !important;
    }
}
