/*
Theme Name: Verdant
Theme URI: https://example.com/verdant
Author: Verdant Theme
Author URI: https://example.com
Description: A clean, responsive WordPress theme with a nature-inspired design. Built with forest-green accents, custom color controls via the Customizer, and full support for custom logos, menus, widgets, and post thumbnails.
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: verdant
Tags: custom-logo, custom-menu, custom-colors, featured-images, theme-options, blog, two-columns
*/

/* ============================================
   CSS CUSTOM PROPERTIES (driven by Customizer)
   ============================================ */
:root {
    --verdant-primary: #1e7a4c;
    --verdant-footer-bg: #0a1f14;
    --verdant-badge: #d4edda;
    --verdant-heading: #1a1a1a;
    --verdant-body: #333333;
    --verdant-link: #1e7a4c;
    --verdant-bg: #ffffff;
}

/* ============================================
   BASE / RESET
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--verdant-body);
    background-color: var(--verdant-bg);
    line-height: 1.6;
}

a {
    color: var(--verdant-link);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--verdant-heading);
    line-height: 1.3;
    margin-top: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.site-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background-color: var(--verdant-bg);
    border-bottom: 2px solid var(--verdant-primary);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-logo-link img {
    max-height: 50px;
    width: auto;
}

.site-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--verdant-primary);
    margin: 0;
    text-decoration: none;
}

.site-title a {
    color: var(--verdant-primary);
}

.site-title a:hover {
    text-decoration: none;
}

/* Text logo fallback with leaf-icon wordmark */
.text-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--verdant-primary);
}

.text-logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: inherit;
}

.text-logo a:hover {
    text-decoration: none;
}

.text-logo .leaf-icon {
    display: inline-block;
    width: 26px;
    height: 26px;
    background-color: var(--verdant-primary);
    border-radius: 0 50% 50% 50%;
    transform: rotate(-45deg);
    flex-shrink: 0;
}

/* Primary Menu */
.primary-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 24px;
}

.primary-menu li a {
    color: var(--verdant-heading);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 5px 0;
    position: relative;
}

.primary-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--verdant-primary);
    transition: width 0.3s ease;
}

.primary-menu li a:hover::after {
    width: 100%;
}

.primary-menu li.current-menu-item a {
    color: var(--verdant-primary);
}

/* Search toggle */
.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--verdant-heading);
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.search-toggle:hover {
    color: var(--verdant-primary);
}

.search-toggle svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.search-form-header {
    display: none;
    position: absolute;
    top: 100%;
    right: 20px;
    background: var(--verdant-bg);
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 200;
}

.search-form-header.active {
    display: block;
}

.search-form-header .search-field {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    width: 220px;
    font-size: 0.95rem;
}

.search-form-header .search-submit {
    background: var(--verdant-primary);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 5px;
}

/* Hamburger */
.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger-menu span {
    display: block;
    width: 26px;
    height: 3px;
    background-color: var(--verdant-heading);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger-menu.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ============================================
   HERO SECTION (front page)
   ============================================ */
.hero-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin: 40px 0;
    align-items: stretch;
}

.hero-featured {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
    min-height: 420px;
    display: flex;
}

.hero-featured .post-thumbnail {
    width: 100%;
}

.hero-featured .post-thumbnail img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.hero-featured .hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    color: #fff;
}

.hero-featured .hero-overlay h2 {
    margin: 0 0 8px 0;
    font-size: 1.6rem;
}

.hero-featured .hero-overlay h2 a {
    color: #fff;
}

.hero-featured .hero-overlay h2 a:hover {
    text-decoration: none;
    opacity: 0.9;
}

.hero-featured .hero-overlay p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-side .hero-small-card {
    display: flex;
    gap: 16px;
    background: #f9f9f9;
    border-radius: 12px;
    overflow: hidden;
    align-items: center;
    flex: 1;
}

.hero-side .hero-small-card .post-thumbnail {
    flex-shrink: 0;
}

.hero-side .hero-small-card .post-thumbnail img {
    width: 130px;
    height: 100px;
    object-fit: cover;
}

.hero-side .hero-small-card .card-content {
    padding: 10px 10px 10px 0;
}

.hero-side .hero-small-card .card-content h3 {
    margin: 0 0 6px 0;
    font-size: 1rem;
}

.hero-side .hero-small-card .card-content h3 a {
    color: var(--verdant-heading);
}

.hero-side .hero-small-card .card-content h3 a:hover {
    color: var(--verdant-primary);
}

.hero-side .hero-small-card .card-content .excerpt {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================
   BLOG LAYOUT (content + sidebar)
   ============================================ */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    margin: 40px 0;
    align-items: start;
}

/* ============================================
   NIEUWSTE SECTION
   ============================================ */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 24px 0;
    color: var(--verdant-heading);
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--verdant-primary);
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ============================================
   CONTENT CARD (template-part)
   ============================================ */
.content-card {
    background: var(--verdant-bg);
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.content-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.content-card .post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.content-card .card-body {
    padding: 18px;
}

.card-category {
    display: inline-block;
    background-color: var(--verdant-badge);
    color: var(--verdant-primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.content-card .card-body h3 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}

.content-card .card-body h3 a {
    color: var(--verdant-heading);
}

.content-card .card-body h3 a:hover {
    color: var(--verdant-primary);
}

.card-excerpt {
    font-size: 0.88rem;
    color: #666;
    margin: 0 0 14px 0;
    line-height: 1.5;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: #888;
}

.card-author {
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-author .avatar {
    border-radius: 50%;
    width: 24px;
    height: 24px;
}

.card-author .avatar-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--verdant-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
}

/* ============================================
   NU POPULAIR LIST
   ============================================ */
.popular-list {
    list-style: none;
    padding: 0;
    margin: 40px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 40px;
    counter-reset: popular-counter;
}

.popular-list li {
    counter-increment: popular-counter;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    position: relative;
}

.popular-list li::before {
    content: counter(popular-counter);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--verdant-primary);
    min-width: 30px;
    line-height: 1;
}

.popular-list li a {
    color: var(--verdant-heading);
    font-weight: 500;
    font-size: 0.95rem;
    flex: 1;
}

.popular-list li a:hover {
    color: var(--verdant-primary);
}

.popular-list li .popular-meta {
    font-size: 0.8rem;
    color: #999;
    white-space: nowrap;
}

/* ============================================
   SINGLE POST
   ============================================ */
.single-hero {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 0;
    min-height: 400px;
    margin: 40px 0;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
}

.single-hero .hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
}

.single-hero .hero-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--verdant-primary);
    color: #fff;
}

.single-hero .hero-info .card-category {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    align-self: flex-start;
}

.single-hero .hero-info h1 {
    font-size: 1.8rem;
    margin: 14px 0;
    color: #fff;
}

.single-hero .hero-info .post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.88rem;
    opacity: 0.9;
}

.post-content {
    max-width: 780px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.post-content p {
    margin: 0 0 20px 0;
}

/* Post pagination (wp_link_pages) */
.post-pagination {
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    max-width: 780px;
}

.post-pagination .pagination-progress {
    font-size: 0.88rem;
    color: #888;
    margin-bottom: 12px;
}

.post-pagination .pagination-links {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.post-pagination .pagination-links a {
    display: inline-block;
    padding: 10px 24px;
    background: var(--verdant-primary);
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.post-pagination .pagination-links a:hover {
    background: #14633b;
    text-decoration: none;
}

.post-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 500;
}

.post-pagination .page-numbers.current {
    background: var(--verdant-primary);
    color: #fff;
}

.post-pagination .page-numbers:not(.current) {
    color: var(--verdant-heading);
    background: #f0f0f0;
}

/* ============================================
   COMMENTS
   ============================================ */
.comments-section {
    margin: 40px 0;
    max-width: 780px;
}

.comments-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 24px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--verdant-primary);
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment {
    padding: 16px 0;
    border-bottom: 1px solid #eee;
}

.comment .comment-body {
    font-size: 0.92rem;
    line-height: 1.6;
}

.comment .comment-meta {
    font-size: 0.82rem;
    color: #888;
    margin-bottom: 8px;
}

.comment .comment-author {
    font-weight: 600;
    color: var(--verdant-heading);
}

.comment .comment-content p {
    margin: 0 0 8px 0;
}

.comment-reply-link {
    font-size: 0.85rem;
    color: var(--verdant-link);
}

.comment-respond {
    margin-top: 24px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
}

.comment-reply-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 16px 0;
}

.comment-form label {
    display: block;
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--verdant-heading);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--verdant-primary);
    box-shadow: 0 0 0 3px rgba(30, 122, 76, 0.15);
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

.comment-form .form-submit input[type="submit"] {
    background: var(--verdant-primary);
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.comment-form .form-submit input[type="submit"]:hover {
    background: #14633b;
}

.comment-notes {
    font-size: 0.85rem;
    color: #888;
    margin: 0 0 16px 0;
}

.comment-plain-notice {
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
    margin: 0 0 16px 0;
}

/* ============================================
   SIDEBAR
   ============================================ */
.site-sidebar {
    position: sticky;
    top: 20px;
}

.sidebar-widget {
    margin-bottom: 32px;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 12px;
}

.sidebar-widget .widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--verdant-primary);
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-widget li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    gap: 12px;
    align-items: center;
}

.sidebar-widget li:last-child {
    border-bottom: none;
}

.sidebar-widget li .post-thumbnail img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.sidebar-widget li .widget-post-title {
    font-size: 0.88rem;
    font-weight: 600;
    display: block;
    color: var(--verdant-heading);
}

.sidebar-widget li .widget-meta {
    font-size: 0.75rem;
    color: #999;
    display: block;
    margin-top: 2px;
}

/* Sidebar recent comments */
.sidebar-widget .comment-item {
    align-items: flex-start;
}

.sidebar-widget .comment-item .avatar-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--verdant-primary);
    color: #fff;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 600;
    flex-shrink: 0;
}

.sidebar-widget .comment-item .comment-headline {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--verdant-heading);
    margin-bottom: 2px;
}

.sidebar-widget .comment-item .comment-time {
    font-size: 0.72rem;
    color: #999;
}

.sidebar-widget .comment-item .comment-excerpt {
    font-size: 0.8rem;
    color: #666;
    margin-top: 4px;
}

.sidebar-widget .comment-item .comment-on {
    font-size: 0.72rem;
    color: #999;
    font-style: italic;
}

.sidebar-widget .empty-fallback {
    font-size: 0.85rem;
    color: #999;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background-color: var(--verdant-footer-bg);
    color: rgba(255, 255, 255, 0.8);
    padding: 48px 0 24px;
    margin-top: 60px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-widget h3 {
    color: #fff;
    font-size: 1.05rem;
    margin: 0 0 16px 0;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget li {
    margin-bottom: 8px;
}

.footer-widget li a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-widget li a:hover {
    color: #fff;
}

.footer-bottom {
    max-width: 1200px;
    margin: 32px auto 0;
    padding: 16px 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }

    .hero-section {
        grid-template-columns: 1fr;
    }

    .hero-featured .post-thumbnail img {
        height: 300px;
    }

    .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .popular-list {
        grid-template-columns: 1fr;
    }

    .single-hero {
        grid-template-columns: 1fr;
    }

    .single-hero .hero-image img {
        min-height: 250px;
        max-height: 300px;
    }

    .footer-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
    }

    .primary-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--verdant-bg);
        border-bottom: 2px solid var(--verdant-primary);
        flex-direction: column;
        padding: 16px 20px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        z-index: 150;
    }

    .primary-menu.active {
        display: flex;
    }

    .primary-menu li a {
        padding: 10px 0;
    }

    .hero-side .hero-small-card {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .hero-side .hero-small-card .post-thumbnail img {
        width: 100%;
        height: 180px;
    }

    .hero-side .hero-small-card .card-content {
        padding: 0 16px 16px;
    }

    .post-grid {
        grid-template-columns: 1fr;
    }

    .popular-list {
        grid-template-columns: 1fr;
    }

    .sidebar-widget li {
        flex-wrap: wrap;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .hero-featured .post-thumbnail img {
        height: 220px;
    }

    .single-hero .hero-image img {
        min-height: 200px;
        max-height: 200px;
    }

    .single-hero .hero-info {
        padding: 24px;
    }

    .single-hero .hero-info h1 {
        font-size: 1.3rem;
    }

    .search-form-header {
        right: 10px;
        left: 10px;
    }

    .search-form-header .search-field {
        width: 100%;
    }

    .site-sidebar {
        position: static;
    }
}

@media (max-width: 480px) {
    .site-title,
    .text-logo {
        font-size: 1.2rem;
    }

    .custom-logo-link img {
        max-height: 36px;
    }

    .section-title {
        font-size: 1.2rem;
    }
}

/* ============================================================
   RECIPE STYLES - See assets/css/recipe.css
   (All recipe-related CSS has been consolidated there.
   Do NOT duplicate these rules in this file.)
   ============================================================ */
