/*
Theme Name: Rode Lopers
Description: Modern WordPress thema voor Schaakvereniging Rode Lopers
Version: 1.1.1
Author: Claude
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header - Only background has gradient, specific color targeting */
header {
    background: linear-gradient(135deg, #8B1538 0%, #A91D3A 100%);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Only header content gets white color, not inherited by plugins */
header .header-content,
header .header-content *,
header .logo,
header nav,
header nav *,
header nav a,
header nav ul,
header nav li {
    color: white;
}

.header-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    color: white;
}

/* Logo styling - WordPress custom logo support */
.custom-logo-link {
    display: flex;
    align-items: center;
    max-width: 200px;
    text-decoration: none;
}

.custom-logo {
    height: 75px;
    width: auto;
    object-fit: contain;
    display: block;
}

.logo-text {
    display: flex;
    flex-direction: column;
    color: white;
    margin-left: 10px;
}

.logo-text .site-title {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
    color: white;
}

.logo-text .site-description {
    font-size: 0.9rem;
    font-weight: 400;
    color: #F5F5F5;
    opacity: 0.9;
    margin-top: 2px;
}

/* Responsive logo */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .custom-logo-link {
        max-width: 150px;
    }
    
    .custom-logo {
        height: 50px;
    }
    
    .logo-text {
        margin-left: 0;
        text-align: center;
    }
    
    .logo-text .site-title {
        font-size: 1.4rem;
    }
    
    .logo-text .site-description {
        font-size: 0.8rem;
    }
}

/* Nav
igation & Dropdown Menu */
nav ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 30px;
    justify-content: center;
}

nav li {
    position: relative;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    display: block;
    padding: 10px 0;
}

nav a:hover {
    color: #F5F5F5;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #F5F5F5;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Dropdown indicator */
nav .menu-item-has-children>a::before {
    content: '▼';
    font-size: 0.7rem;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

nav .menu-item-has-children:hover>a::before {
    transform: rotate(180deg);
}

/* Dropdown menu */
nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(139, 21, 56, 0.95);
    backdrop-filter: blur(10px);
    min-width: 200px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 10px 0;
}

nav .menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

nav .sub-menu li {
    width: 100%;
}

nav .sub-menu a {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 400;
    font-size: 0.9rem;
}

nav .sub-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #F5F5F5;
}

nav .sub-menu a::after {
    display: none;
}

nav .sub-menu li:last-child a {
    border-bottom: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
}

/*
 Hero Section - Keep same as before */
.hero {
    background: linear-gradient(rgba(139, 21, 56, 0.7), rgba(169, 29, 58, 0.7)), url('https://images.unsplash.com/photo-1529699211952-734e80c4d42b?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2071&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 80px 0;
    text-align: center;
    color: white;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Buttons Container */
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* Base Button Styling */
.btn {
    display: inline-block;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

/* Primary Button (Bezoek een avond) */
.btn-primary {
    background: #F5F5F5;
    color: #8B1538;
    border: 2px solid #F5F5F5;
}

.btn-primary:hover {
    background: transparent;
    color: #F5F5F5;
    border: 2px solid #F5F5F5;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Secondary Button (Wordt lid) */
.btn-secondary {
    background: transparent;
    color: #F5F5F5;
    border: 2px solid #F5F5F5;
}

.btn-secondary:hover {
    background: #F5F5F5;
    color: #8B1538;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Default button styling for other pages */
.btn:not(.btn-primary):not(.btn-secondary) {
    background: #F5F5F5;
    color: #8B1538;
    border: 2px solid #F5F5F5;
}

.btn:not(.btn-primary):not(.btn-secondary):hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Responsive buttons */
@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn {
        padding: 12px 30px;
        font-size: 0.9rem;
        min-width: 200px;
        text-align: center;
    }
}

/* Main Content Layout */
.main-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin: 40px 0;
}

/* Content Sections - Always white background */
.content-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.content-section h1,
.content-section h2 {
    color: #8B1538;
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-weight: 600;
}

.content-section p {
    margin-bottom: 15px;
    color: #555;
}

/* Post
s - Always white background */
.post,
article.post {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.post h1,
.post h2 {
    color: #8B1538;
    margin-bottom: 15px;
    font-size: 1.8rem;
    font-weight: 600;
}

.post h1 a,
.post h2 a {
    color: #8B1538;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post h1 a:hover,
.post h2 a:hover {
    color: #A91D3A;
}

.post-meta {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.post-content {
    color: #555;
    line-height: 1.8;
}

.post-content p {
    margin-bottom: 15px;
}

/* Post Header - Always white background */
.post-header {
    background: white;
    padding: 20px 0;
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.post-header h1 {
    color: #8B1538;
    font-size: 2.2rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

/* Sidebar - Always white background */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.widget {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.widget h3 {
    color: #8B1538;
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 600;
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
}

.widget li:last-child {
    border-bottom: none;
}

/* Foote
r */
footer {
    background: #333;
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: #F5F5F5;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
    color: #ccc;
    text-decoration: none;
    margin-bottom: 8px;
    display: block;
}

.footer-section a:hover {
    color: #A91D3A;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    color: #999;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    .mobile-menu-toggle {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
    }

    nav {
        width: 100%;
        display: none;
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        background: rgba(139, 21, 56, 0.95);
        padding: 20px;
        border-radius: 8px;
        margin-top: 20px;
    }

    nav li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    nav li:last-child {
        border-bottom: none;
    }

    nav a {
        padding: 15px 0;
        width: 100%;
    }

    /* Mobile dropdown */
    nav .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(169, 29, 58, 0.8);
        box-shadow: none;
        border-radius: 0;
        margin-top: 10px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    nav .menu-item-has-children.active .sub-menu {
        max-height: 300px;
    }

    nav .menu-item-has-children>a::before {
        float: right;
        content: '▼';
        transition: transform 0.3s ease;
    }

    nav .menu-item-has-children.active>a::before {
        transform: rotate(180deg);
    }

    nav .sub-menu a {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .main-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }
    
    .main-content main {
        order: 1;
    }
    
    .main-content .sidebar {
        order: 2;
        margin-top: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-section,
.widget,
.post {
    animation: fadeInUp 0.6s ease-out;
}

/* La
nding Page - Full Width Layout */
.landing-page-content {
    width: 100%;
    max-width: none;
}

.landing-page-content main {
    width: 100%;
}

.landing-page-content .content-section {
    background: none;
    padding: 0;
    box-shadow: none;
    margin-bottom: 0;
}

.landing-page-content .page-content {
    width: 100%;
}

/* Override main-content grid for landing pages */
body.page-template-page-landing .main-content {
    display: block;
    grid-template-columns: none;
}

/* Ensure landing page content spans full width */
body.page-template-page-landing .container {
    max-width: 100%;
    padding: 0;
}/* Hid
e sidebar on specific pages - Add page ID or class */
.page-id-123 .sidebar,
.page-template-page-landing .sidebar,
body.landing-page .sidebar {
    display: none;
}

.page-id-123 .main-content,
.page-template-page-landing .main-content,
body.landing-page .main-content {
    grid-template-columns: 1fr;
}

/* Alternative: Hide sidebar on pages with specific title */
.page .main-content {
    grid-template-columns: 2fr 1fr;
}

/* Full width for landing pages */
body[class*="landing"] .main-content,
body[class*="proef"] .main-content {
    grid-template-columns: 1fr;
}

body[class*="landing"] .sidebar,
body[class*="proef"] .sidebar {
    display: none;
}/* Front 
Page Specific Styling */
.recent-posts {
    margin-top: 40px;
}

.recent-posts .posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.recent-posts .post-summary {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recent-posts .post-summary:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.recent-posts .post-thumbnail {
    height: 200px;
    overflow: hidden;
}

.recent-posts .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recent-posts .post-summary:hover .post-thumbnail img {
    transform: scale(1.05);
}

.recent-posts .post-info {
    padding: 20px;
}

.recent-posts .post-info h3 {
    color: #8B1538;
    margin-bottom: 10px;
    font-size: 1.3rem;
    line-height: 1.4;
}

.recent-posts .post-info h3 a {
    color: #8B1538;
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-posts .post-info h3 a:hover {
    color: #A91D3A;
}

.recent-posts .post-meta {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.recent-posts .post-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.recent-posts .read-more-btn {
    color: #8B1538;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.recent-posts .read-more-btn:hover {
    color: #A91D3A;
}

.view-all-posts {
    text-align: center;
    margin-top: 30px;
}

.view-all-posts .btn {
    background: #8B1538;
    color: white;
    border: 2px solid #8B1538;
}

.view-all-posts .btn:hover {
    background: transparent;
    color: #8B1538;
    border: 2px solid #8B1538;
}

/* Responsive adjustments for front page */
@media (max-width: 768px) {
    .recent-posts .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .recent-posts .post-thumbnail {
        height: 150px;
    }
    
    .recent-posts .post-info {
        padding: 15px;
    }
}