/*
Theme Name: Woordprikkels
Theme URI: https://woordprikkels.nl/
Author: Woordprikkels
Description: Custom theme voor woordprikkels.nl - Nederlandse taal, spelling en schrijftips
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: woordprikkels
Tags: custom-menu, featured-images, translation-ready
*/

:root {
    --primary: #1B6B93;
    --primary-dark: #145272;
    --primary-light: #E8F4F8;
    --accent: #F5A623;
    --accent-light: #FFF5E0;
    --text: #2D3748;
    --text-light: #718096;
    --bg: #FFFFFF;
    --bg-light: #F7F9FC;
    --border: #E2E8F0;
    --max-width: 1200px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    font-size: 17px;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

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

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo img { height: 44px; width: auto; }

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 28px;
}

.main-nav a {
    color: var(--text);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 0;
}

.main-nav a:hover,
.main-nav .current-menu-item a { color: var(--primary); }

.nav-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text); }

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 64px 0;
    text-align: center;
}

.hero h1 { font-size: 2.4rem; margin-bottom: 12px; line-height: 1.3; }
.hero p { font-size: 1.15rem; opacity: 0.9; max-width: 600px; margin: 0 auto; }

/* Featured Post */
.featured-section { padding: 48px 0; }

.featured-post {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
}

.featured-post .featured-image {
    height: 100%;
    min-height: 280px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.featured-post .featured-image .icon-placeholder {
    font-size: 80px;
    opacity: 0.3;
}

.featured-post .featured-content { padding: 40px; }
.featured-post .featured-label {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.featured-post h2 { font-size: 1.8rem; margin-bottom: 12px; line-height: 1.3; }
.featured-post h2 a { color: var(--text); }
.featured-post h2 a:hover { color: var(--primary); }
.featured-post p { color: var(--text-light); margin-bottom: 20px; }

.btn {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 15px;
    transition: background 0.2s;
}
.btn:hover { background: var(--primary-dark); color: #fff; }

/* Post Grid */
.posts-section { padding: 48px 0; }
.posts-section h2.section-title {
    font-size: 1.6rem;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--accent);
    display: inline-block;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.post-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}
.post-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); transform: translateY(-2px); }

.post-card .card-body { padding: 20px; }

.post-card .card-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.post-card h3 { font-size: 1.15rem; margin-bottom: 8px; line-height: 1.4; }
.post-card h3 a { color: var(--text); }
.post-card h3 a:hover { color: var(--primary); }
.post-card .card-excerpt { font-size: 14px; color: var(--text-light); line-height: 1.6; }
.post-card .card-meta { font-size: 13px; color: var(--text-light); margin-top: 12px; }

/* Category Section */
.category-section { padding: 32px 0; }
.category-section + .category-section { border-top: 1px solid var(--border); }

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.category-header h2 { font-size: 1.4rem; }
.category-header a { font-size: 14px; font-weight: 500; }

/* Single Post */
.single-header { padding: 48px 0 24px; text-align: center; }
.single-header .post-category {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}
.single-header h1 { font-size: 2.2rem; max-width: 800px; margin: 0 auto 16px; line-height: 1.3; }
.single-header .post-meta { color: var(--text-light); font-size: 15px; }

.single-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 24px 48px;
}

.single-content h2 {
    font-size: 1.5rem;
    margin: 36px 0 16px;
    color: var(--primary-dark);
}

.single-content h3 {
    font-size: 1.2rem;
    margin: 28px 0 12px;
}

.single-content p { margin-bottom: 16px; }

.single-content ul, .single-content ol {
    margin: 0 0 16px 24px;
}

.single-content li { margin-bottom: 6px; }

.single-content blockquote {
    border-left: 4px solid var(--accent);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--accent-light);
    font-style: italic;
}

.single-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}

.single-content th, .single-content td {
    border: 1px solid var(--border);
    padding: 10px 14px;
    text-align: left;
}

.single-content th { background: var(--bg-light); font-weight: 600; }

.single-content strong { color: var(--text); }

/* Related Posts */
.related-posts { padding: 48px 0; background: var(--bg-light); }
.related-posts h2 { text-align: center; margin-bottom: 24px; }

/* Archive */
.archive-header {
    background: var(--bg-light);
    padding: 48px 0;
    text-align: center;
}
.archive-header h1 { font-size: 2rem; margin-bottom: 8px; }
.archive-header p { color: var(--text-light); max-width: 600px; margin: 0 auto; }

.archive-content { padding: 48px 0; }

/* Page */
.page-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 48px 24px;
}
.page-content h1 { font-size: 2rem; margin-bottom: 24px; }
.page-content h2 { font-size: 1.5rem; margin: 32px 0 16px; color: var(--primary-dark); }
.page-content p { margin-bottom: 16px; }

/* Footer */
.site-footer {
    background: var(--text);
    color: #CBD5E0;
    padding: 48px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}

.footer-section h3 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-section p { font-size: 14px; line-height: 1.6; }
.footer-section ul { list-style: none; }
.footer-section li { margin-bottom: 8px; }
.footer-section a { color: #CBD5E0; font-size: 14px; }
.footer-section a:hover { color: var(--accent); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
}

/* 404 */
.error-404 { text-align: center; padding: 80px 24px; }
.error-404 h1 { font-size: 4rem; color: var(--primary); margin-bottom: 16px; }
.error-404 p { color: var(--text-light); margin-bottom: 24px; }

/* Search */
.search-form { display: flex; gap: 8px; max-width: 500px; margin: 0 auto; }
.search-form input[type="search"] {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 15px;
}
.search-form button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
}

/* Pagination */
.pagination { text-align: center; padding: 32px 0; }
.pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 4px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 14px;
}
.pagination .page-numbers.current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* FAQ Section */
.faq-section { margin: 32px 0; }
.faq-item { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq-item strong { display: block; font-size: 1.05rem; margin-bottom: 8px; color: var(--text); }

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.8rem; }
    .featured-post { grid-template-columns: 1fr; }
    .featured-post .featured-image { min-height: 200px; }
    .posts-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .main-nav ul { display: none; }
    .main-nav.active ul {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        padding: 16px 24px;
    }
    .nav-toggle { display: block; }
    .single-header h1 { font-size: 1.7rem; }
}

/* Featured Images */
.single-featured-image { margin: 0 0 2rem; }
.single-featured-image img { width: 100%; height: auto; border-radius: 8px; }
.card-image { overflow: hidden; border-radius: 8px 8px 0 0; }
.card-image img { width: 100%; height: 200px; object-fit: cover; display: block; transition: transform 0.3s; }
.card-image:hover img { transform: scale(1.05); }
.featured-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.featured-image { min-height: 300px; overflow: hidden; border-radius: 8px; }
