/*
Theme Name: Sportmissie Theme
Theme URI: http://sportmissie.nl/
Author: Sportmissie
Author URI: http://sportmissie.nl/
Description: Custom theme voor sportmissie.nl — Nederlandse Sport & Fitness Reviews
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: sportmissie
Tags: custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
    --primary: #1B2B4B;
    --primary-light: #2A3F6B;
    --primary-dark: #111C33;
    --accent: #F57C20;
    --accent-hover: #E06A10;
    --accent-light: #FFF3E8;
    --bg: #FFFFFF;
    --bg-alt: #F7F8FA;
    --text: #2D3748;
    --text-light: #718096;
    --text-muted: #A0AEC0;
    --border: #E2E8F0;
    --border-light: #EDF2F7;
    --success: #38A169;
    --star: #F6AD55;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-lg: 12px;
    --container: 1200px;
    --header-height: 72px;
    --transition: 0.2s ease;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary);
}
h1 { font-size: 2rem; margin-bottom: 1rem; }
h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }
ul, ol { margin-bottom: 1rem; padding-left: 1.5rem; }
li { margin-bottom: 0.25rem; }
.screen-reader-text {
    clip: rect(1px,1px,1px,1px);
    position: absolute;
    height: 1px; width: 1px;
    overflow: hidden;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}
.site-main {
    min-height: calc(100vh - var(--header-height) - 300px);
    padding-top: 2rem;
    padding-bottom: 3rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    line-height: 1.5;
}
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover {
    background: var(--accent-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.85rem; }
.btn-lg { padding: 0.8rem 2rem; font-size: 1rem; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    background: #fff;
    min-height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-height);
    gap: 1rem;
}
.site-logo {
    flex-shrink: 0;
}
.site-logo img {
    height: 36px;
    width: auto;
}
.main-nav .nav-menu {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
}
.main-nav .nav-menu li a {
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5rem 0.5rem;
    border-radius: var(--radius);
    transition: all var(--transition);
    white-space: nowrap;
}
.main-nav .nav-menu li a:hover,
.main-nav .nav-menu li.current-menu-item a,
.main-nav .nav-menu li.current-menu-parent a {
    background: var(--bg-alt);
    color: var(--accent);
}
.main-nav .nav-menu > li { position: relative; }
.main-nav .nav-menu .sub-menu {
    display: none;
    position: absolute;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
    min-width: 220px;
    top: 100%;
    left: 0;
    z-index: 1001;
}
.main-nav .nav-menu li:hover > .sub-menu { display: block; }
.main-nav .nav-menu .sub-menu li a {
    color: var(--text);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    display: block;
    border-radius: 0;
}
.main-nav .nav-menu .sub-menu li a:hover {
    background: var(--bg-alt);
    color: var(--accent);
}

.header-search { position: relative; }
.header-search .search-field {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.4rem 2.2rem 0.4rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
    width: 180px;
    transition: all var(--transition);
}
.header-search .search-field::placeholder { color: var(--text-muted); }
.header-search .search-field:focus {
    outline: none;
    background: #fff;
    border-color: var(--accent);
    width: 220px;
}
.header-search .search-submit {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0.2rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 5px;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}
.menu-toggle.is-active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: var(--accent);
    opacity: 0.08;
    border-radius: 50%;
}
.hero-section h1 {
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
    position: relative;
}
.hero-section p {
    color: rgba(255,255,255,0.85);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    position: relative;
}
.hero-search {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}
.hero-search .search-field {
    width: 100%;
    padding: 0.9rem 1.25rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    box-shadow: var(--shadow-md);
}
.hero-search .search-field:focus { outline: 2px solid var(--accent); }
.hero-search .search-submit {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
}
.hero-search .search-submit:hover { background: var(--accent-hover); }

/* ==========================================================================
   Category Cards (Homepage)
   ========================================================================== */
.section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--accent);
    display: inline-block;
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}
.category-card {
    background: var(--bg-alt);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all var(--transition);
    text-decoration: none;
    display: block;
}
.category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
    color: var(--primary);
}
.category-card .cat-icon { font-size: 2rem; margin-bottom: 0.5rem; display: block; }
.category-card .cat-icon .cat-icon-img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; }
.category-card .cat-name { font-weight: 600; font-size: 0.95rem; color: var(--primary); }
.category-card .cat-count { font-size: 0.8rem; color: var(--text-light); margin-top: 0.25rem; }

/* ==========================================================================
   Post Cards / Grid
   ========================================================================== */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.post-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}
.post-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}
.post-card .post-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/2;
}
.post-card .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.post-card:hover .post-thumbnail img { transform: scale(1.05); }
.post-card .post-thumbnail .card-category {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--accent);
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.post-card .post-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.post-card .post-content h2,
.post-card .post-content h3 {
    font-size: 1.05rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}
.post-card .post-content h2 a,
.post-card .post-content h3 a { color: var(--primary); }
.post-card .post-content h2 a:hover,
.post-card .post-content h3 a:hover { color: var(--accent); }
.post-card .post-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    flex: 1;
    margin-bottom: 1rem;
    line-height: 1.5;
}
.post-card .post-content .btn { align-self: flex-start; }

/* ==========================================================================
   Single Post
   ========================================================================== */
.single-post { max-width: 800px; margin: 0 auto; }
.single-post .hero-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 2rem;
}
.single-post .hero-image img { width: 100%; height: auto; }
.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-light);
}
.post-meta .post-cats a {
    background: var(--accent-light);
    color: var(--accent);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 0.25rem;
}
.post-meta .post-cats a:hover { background: var(--accent); color: #fff; }

/* Entry Content */
.entry-content { font-size: 1.05rem; line-height: 1.8; }
.entry-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--border);
}
.entry-content h3 { margin-top: 2rem; margin-bottom: 0.75rem; }
.entry-content a { color: var(--accent); font-weight: 500; }
.entry-content a:hover { text-decoration: underline; }
.entry-content img { border-radius: var(--radius); margin: 1.5rem 0; }
.entry-content blockquote {
    border-left: 4px solid var(--accent);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--bg-alt);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--text-light);
}

/* Comparison Tables */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.entry-content thead { background: var(--primary); }
.entry-content thead th {
    color: #fff;
    font-weight: 600;
    padding: 0.85rem 1rem;
    text-align: left;
    font-size: 0.9rem;
}
.entry-content tbody tr { border-bottom: 1px solid var(--border-light); }
.entry-content tbody tr:nth-child(even) { background: var(--bg-alt); }
.entry-content tbody tr:hover { background: var(--accent-light); }
.entry-content tbody td {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    vertical-align: middle;
}
.entry-content tbody td:first-child { font-weight: 600; color: var(--primary); }

/* Pros/Cons Lists */
.entry-content .pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}
.entry-content .pros, .entry-content .cons { padding: 1rem 1.25rem; border-radius: var(--radius); }
.entry-content .pros { background: #F0FFF4; border: 1px solid #C6F6D5; }
.entry-content .cons { background: #FFF5F5; border: 1px solid #FED7D7; }
.entry-content .pros h4 { color: var(--success); }
.entry-content .cons h4 { color: #E53E3E; }
.entry-content .pros ul, .entry-content .cons ul { list-style: none; padding: 0; margin: 0; }
.entry-content .pros li::before { content: '\2713 '; color: var(--success); font-weight: 700; }
.entry-content .cons li::before { content: '\2717 '; color: #E53E3E; font-weight: 700; }

/* FAQ Section */
.entry-content .faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    overflow: hidden;
}
.entry-content .faq-item h3,
.entry-content .faq-item h4 {
    background: var(--bg-alt);
    padding: 1rem 1.25rem;
    margin: 0;
    font-size: 1rem;
}
.entry-content .faq-item p { padding: 1rem 1.25rem; margin: 0; }

/* Rating Badge */
.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--success);
    color: #fff;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */
.breadcrumbs {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    padding: 0.5rem 0;
}
.breadcrumbs a { color: var(--text-light); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .separator { margin: 0 0.4rem; }

/* ==========================================================================
   Archive / Category
   ========================================================================== */
.archive-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}
.archive-header h1 { margin-bottom: 0.5rem; }
.archive-description { font-size: 1.05rem; color: var(--text-light); max-width: 700px; }

/* ==========================================================================
   Page
   ========================================================================== */
.page-content { max-width: 800px; margin: 0 auto; }
.page-content .hero-image { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 2rem; }

/* ==========================================================================
   404
   ========================================================================== */
.error-404 { text-align: center; padding: 4rem 2rem; max-width: 600px; margin: 0 auto; }
.error-404 h1 { font-size: 2.5rem; margin-bottom: 1rem; }
.error-404 .error-code {
    font-size: 6rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 1rem;
}
.error-404 p { color: var(--text-light); font-size: 1.1rem; margin-bottom: 2rem; }

/* ==========================================================================
   Search
   ========================================================================== */
.search-form { display: flex; gap: 0.5rem; max-width: 500px; }
.search-field {
    flex: 1;
    padding: 0.6rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color var(--transition);
}
.search-field:focus { outline: none; border-color: var(--accent); }
.search-submit {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background var(--transition);
}
.search-submit:hover { background: var(--accent-hover); }

/* ==========================================================================
   Related Posts
   ========================================================================== */
.related-posts { margin-top: 3rem; padding-top: 2rem; border-top: 2px solid var(--border); }
.related-posts h2 { margin-bottom: 1.5rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.8);
    padding-top: 3rem;
    margin-top: 3rem;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
}
.footer-col h4 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
}
.footer-logo img {
    height: 36px;
    width: auto;
    background: #fff;
    border-radius: 6px;
    padding: 4px 8px;
    margin-bottom: 1rem;
}
.footer-col p { font-size: 0.9rem; line-height: 1.6; margin-bottom: 0.5rem; }
.footer-col a { color: rgba(255,255,255,0.7); }
.footer-col a:hover { color: var(--accent); }
.footer-menu { list-style: none; padding: 0; margin: 0; }
.footer-menu li { margin-bottom: 0.4rem; }
.footer-menu li a { font-size: 0.9rem; padding: 0.15rem 0; display: inline-block; }
.footer-categories { list-style: none; padding: 0; margin: 0; }
.footer-categories li { margin-bottom: 0.4rem; }
.footer-categories li a { font-size: 0.9rem; }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 1.25rem 0;
    text-align: center;
}
.footer-bottom p { font-size: 0.85rem; color: rgba(255,255,255,0.5); margin: 0; }

/* ==========================================================================
   Pagination
   ========================================================================== */
.nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}
.nav-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition);
}
.nav-links .page-numbers.current,
.nav-links .page-numbers:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* ==========================================================================
   Homepage Sections
   ========================================================================== */
.home-section { margin-bottom: 3rem; }
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.section-header .view-all { font-size: 0.9rem; font-weight: 600; color: var(--accent); }
.section-header .view-all:hover { text-decoration: underline; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    :root { --header-height: 60px; }
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.3rem; }
    .menu-toggle { display: flex; }
    .main-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid var(--border);
        padding: 1rem;
        box-shadow: var(--shadow-lg);
    }
    .main-nav.is-open { display: block; }
    .main-nav .nav-menu { flex-direction: column; gap: 0; }
    .main-nav .nav-menu li a { display: block; padding: 0.75rem 1rem; }
    .main-nav .nav-menu .sub-menu {
        position: static;
        box-shadow: none;
        background: var(--bg-alt);
        border-radius: 0;
        padding: 0;
    }
    .main-nav .nav-menu .sub-menu li a { padding-left: 2rem; font-size: 0.85rem; }
    .header-search { display: none; }
    .hero-section { padding: 2rem 1.5rem; }
    .hero-section h1 { font-size: 1.6rem; }
    .hero-section p { font-size: 1rem; }
    .post-grid { grid-template-columns: 1fr; }
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .entry-content .pros-cons { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
    .single-post, .page-content { max-width: 100%; }
}
@media (max-width: 480px) {
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .post-grid { grid-template-columns: 1fr; }
    .container { padding: 0 1rem; }
}

/* ==========================================================================
   WordPress Core Styles
   ========================================================================== */
.alignleft { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }
.aligncenter { display: block; margin: 1.5rem auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: var(--text-light); text-align: center; padding-top: 0.5rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.5rem; }

/* Yoast breadcrumbs */
.yoast-breadcrumbs { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.yoast-breadcrumbs a { color: var(--text-light); }
.yoast-breadcrumbs a:hover { color: var(--accent); }
