/*
Theme Name: Hardinero
Theme URI: https://hardinero.com
Description: A robust, minimalist gardening blog theme. No sidebar on homepage.
Author: kapengbarako
Version: 1.0.0
Text Domain: hardinero
*/

:root {
    --green-deep: #007a3d;
    --green-bright: #16a34a;
    --dark: #0a0a0a;
    --dark-soft: #1a1a1a;
    --muted: #555555;
    --muted-light: #a3a3a3;
    --border: #eaeaea;
    --bg: #ffffff;
    --bg-soft: #f5f5f5;
    --heading-font: 'Varela Round', sans-serif;
    --body-font: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--body-font);
    color: var(--dark-soft);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--green-deep); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--green-bright); text-decoration: underline; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header { padding: 24px 0; margin-bottom: 40px; }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.site-branding { display: flex; align-items: center; }
.custom-logo { height: 50px; width: auto; }
.site-title { margin: 0; font-family: var(--heading-font); font-size: 1.75rem; }
.site-title a { color: var(--dark-soft); }
.header-right { display: flex; align-items: center; gap: 24px; }
.main-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }
.main-navigation a { color: var(--muted); font-size: 0.95rem; font-weight: 500; }
.main-navigation a:hover { color: var(--dark-soft); }

/* Search */
.header-search { display: flex; align-items: center; }
.search-input-wrapper { position: relative; display: flex; align-items: center; }
.search-icon { position: absolute; left: 12px; pointer-events: none; }
.search-field {
    background: transparent; border: 1px solid var(--border); border-radius: 20px;
    padding: 8px 16px 8px 34px; font-size: 0.9rem; font-family: var(--body-font);
    color: var(--dark-soft); width: 160px; transition: all 0.3s;
}
.search-field:focus { outline: none; border-color: var(--muted); width: 200px; }

/* Hero */
.hero-grid-layout {
    display: grid; grid-template-columns: 1fr; gap: 40px;
    background: var(--green-deep); color: #fff;
    padding: 48px 60px; border-radius: 12px; margin-bottom: 60px;
    background-image: repeating-linear-gradient(45deg, rgba(0,0,0,0.03) 0px, rgba(0,0,0,0.03) 2px, transparent 2px, transparent 8px);
}
.hero-content-column { display: flex; flex-direction: column; justify-content: center; }
.hero-title {
    font-family: var(--heading-font); font-size: 3rem; font-weight: 700;
    line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 16px; color: #fff;
}
.hero-subtitle { font-size: 1.15rem; color: rgba(255,255,255,0.85); line-height: 1.6; margin: 0; max-width: 90%; }
.hero-image-column { display: flex; align-items: center; justify-content: flex-end; }
.hero-custom-image { max-width: 300px; height: auto; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
@media (min-width: 768px) {
    .hero-grid-layout { grid-template-columns: 1.2fr 1fr; padding: 64px 80px; }
    .hero-title { font-size: 3.5rem; }
}

/* Post Grid */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 40px; margin-bottom: 60px; }
.post-card .post-thumbnail img { width: 100%; height: auto; border-radius: 8px; aspect-ratio: 16/10; object-fit: cover; transition: opacity 0.3s; }
.post-card .post-thumbnail:hover img { opacity: 0.85; }
.entry-title { font-family: var(--heading-font); font-size: 1.35rem; font-weight: 700; margin: 18px 0 10px; line-height: 1.3; }
.entry-excerpt p { margin: 0; color: var(--muted); font-size: 1rem; }

/* Pagination */
.pagination { text-align: center; margin: 40px 0 80px; }
.pagination .nav-links { display: inline-flex; gap: 6px; }
.pagination a, .pagination span {
    display: inline-block; padding: 8px 14px; border-radius: 6px;
    font-size: 0.95rem; font-weight: 600; text-decoration: none;
}
.pagination a { background: var(--bg-soft); color: var(--dark-soft); }
.pagination a:hover { background: var(--green-bright); color: #fff; }
.pagination .current { background: var(--green-bright); color: #fff; }

/* Ad Slot */
.ad-slot { margin: 40px 0; display: flex; justify-content: center; }
.ad-placeholder {
    width: 728px; max-width: 100%; height: 90px;
    border: 2px dashed var(--border); border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-soft);
}
.ad-label { color: var(--muted-light); font-size: 0.85rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; }

/* Single Post */
.single-post-container { margin: 0 auto; padding-bottom: 60px; }
.single-title { font-family: var(--heading-font); font-size: 2.5rem; font-weight: 700; line-height: 1.2; margin-bottom: 16px; }
.single-thumbnail { margin: 32px 0; }
.single-thumbnail img { width: 100%; height: auto; border-radius: 12px; }
.post-content { font-size: 1.1rem; line-height: 1.8; color: var(--dark-soft); max-width: 720px; }
.post-content h2, .post-content h3 { margin-top: 40px; font-family: var(--heading-font); }

/* Archive */
.archive-header { margin-bottom: 40px; max-width: 800px; }
.archive-description { margin-top: 12px; color: var(--muted); }

/* Footer Widgets */
.footer-widgets-area { background: var(--dark); padding: 60px 0; color: var(--muted-light); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.widget-title { color: #d4d4d4; font-family: var(--heading-font); font-size: 1rem; font-weight: 600; margin-bottom: 20px; }
.footer-column ul { list-style: none; padding: 0; margin: 0; }
.footer-column li { margin-bottom: 12px; }
.footer-column a { color: var(--muted-light); }
.footer-column a:hover { color: #fff; }

/* Footer Bottom */
.site-footer { border-top: 0; }
.footer-inner { padding: 24px 0; text-align: center; color: var(--muted); font-size: 0.9rem; }

/* Comments */
.comments-area { background: var(--bg-soft); border-radius: 8px; padding: 32px; margin-top: 40px; }
.comment-list { list-style: none; padding: 0; }
.comment-body { background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 20px; margin-bottom: 16px; }
.comment-author .fn { font-weight: 600; }
.comment-meta { font-size: 0.85rem; color: var(--muted); margin-bottom: 12px; }
.comment-form label { display: block; font-size: 0.9rem; font-weight: 500; margin-bottom: 4px; }
.comment-form input, .comment-form textarea {
    width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px;
    font-family: var(--body-font); font-size: 0.95rem; margin-bottom: 16px; box-sizing: border-box;
}
.comment-form .submit { background: var(--green-deep); color: #fff; border: none; padding: 10px 24px; border-radius: 6px; font-weight: 600; cursor: pointer; }
.comment-form .submit:hover { background: var(--green-bright); }

/* Sidebar */
.single-layout { display: flex !important; flex-direction: row !important; gap: 40px; align-items: flex-start; flex-wrap: nowrap; }
.content-area { flex: 1; min-width: 0; }
.sidebar-single {
    width: 300px; flex-shrink: 0; position: relative;
    background: var(--bg-soft); border: 1px solid var(--border);
    border-radius: 8px; padding: 20px;
    transition: width 0.3s ease, padding 0.3s ease;
}
.sidebar-single.collapsed {
    width: 0 !important; padding: 20px 0; overflow: hidden;
    border-color: transparent;
}
.sidebar-single.collapsed .sidebar-inner { display: none; }
.sidebar-toggle {
    position: absolute; top: 12px; left: -36px; z-index: 10;
    background: var(--bg-soft); border: 1px solid var(--border);
    border-right: 0; border-radius: 6px 0 0 6px;
    padding: 8px 10px; cursor: pointer; font-size: 12px;
    line-height: 1; color: var(--muted);
}
.sidebar-toggle:hover { background: var(--border); }
.sidebar-inner { min-width: 260px; }
.sidebar-inner .widget { margin-bottom: 24px; font-size: 0.95rem; }
.sidebar-inner .ad-slot { margin: 0 0 24px; }
.sidebar-inner .ad-placeholder { height: 90px; }

/* Responsive */
@media (max-width: 768px) {
    .header-inner { flex-direction: column; align-items: flex-start; }
    .header-right { width: 100%; flex-direction: column; align-items: flex-start; }
    .main-navigation ul { flex-wrap: wrap; gap: 12px; }
    .search-field { width: 100%; }
    .search-field:focus { width: 100%; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .single-title { font-size: 1.75rem; }
    .single-layout { flex-direction: column !important; }
    .sidebar-single { width: 100%; }
    .sidebar-toggle { display: none; }
}
