/*
 Theme Name:   LetsGardening GeneratePress Child Theme
 Theme URI:    https://generatepress.com
 Description:  A premium, high-readability gardening blog child theme combining modern, cottage, organic, and luxury aesthetics.
 Author:       Antigravity
 Template:     generatepress
 Version:      1.0.0
 Text Domain:  letsgardening-child
*/

/* ==========================================================================
   Design System & Custom Properties
   ========================================================================== */
:root {
    /* Color Palette */
    --bg-color: #FAF9F6;              /* Warm Alabaster/Cream */
    --primary-color: #1E3F20;         /* Deep Forest Green */
    --secondary-color: #4A7C59;       /* Soft Sage Green */
    --accent-color: #C86B45;          /* Warm Terracotta */
    --text-color: #2D3531;            /* Dark Slate Charcoal */
    --text-muted: #6B7270;            /* Soft Muted Sage Gray */
    --white: #FFFFFF;
    --border-color: #E6E4DD;
    --light-green-bg: #F0F4F1;

    /* Fonts */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* Spacing & Borders */
    --border-radius: 12px;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-subtle: 0 4px 20px rgba(74, 124, 89, 0.06);
    --shadow-hover: 0 10px 30px rgba(30, 63, 32, 0.12);
}

/* ==========================================================================
   Global Layout & Typography
   ========================================================================== */
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 700;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--primary-color);
}

/* ==========================================================================
   Navigation Styling
   ========================================================================== */
.main-navigation {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
}

.main-navigation .main-nav ul li a {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--primary-color);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 13px;
    position: relative;
}

.main-navigation .main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

.main-navigation .main-nav ul li:hover > a::after,
.main-navigation .main-nav ul li.current-menu-item > a::after {
    width: 60%;
}

/* ==========================================================================
   Homepage / Archive Blog Grid
   ========================================================================== */
.generate-columns-container .article {
    margin-bottom: 40px;
}

.inside-article {
    background-color: var(--white);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-subtle);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.inside-article:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary-color);
}

/* Featured Images */
.post-image img {
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    transition: var(--transition-smooth);
    display: block;
    width: 100%;
    object-fit: cover;
}

.inside-article:hover .post-image img {
    transform: scale(1.03);
}

/* Post Contents */
.entry-header {
    padding: 24px 24px 10px 24px;
}

.entry-summary {
    padding: 0 24px 24px 24px;
    color: var(--text-muted);
    font-size: 15px;
}

.entry-meta {
    font-family: var(--font-body);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.entry-title a {
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 22px;
    line-height: 1.3;
}

.entry-title a:hover {
    color: var(--secondary-color);
}

/* Read More Button */
.read-more {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: var(--white) !important;
    border-radius: 30px;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.03em;
    box-shadow: 0 4px 10px rgba(30, 63, 32, 0.15);
}

.read-more:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(200, 107, 69, 0.25);
}

/* ==========================================================================
   Sidebar & Widget Styling
   ========================================================================== */
#right-sidebar, #left-sidebar {
    padding: 20px;
}

.sidebar .widget {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-subtle);
    margin-bottom: 30px;
}

.sidebar .widget .widget-title {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar .widget .widget-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

/* Search Widget Styling */
.widget_search input[type="search"] {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    background-color: var(--bg-color);
    font-family: var(--font-body);
    transition: var(--transition-smooth);
}

.widget_search input[type="search"]:focus {
    outline: none;
    border-color: var(--secondary-color);
    background-color: var(--white);
    box-shadow: 0 0 10px rgba(74, 124, 89, 0.1);
}

/* Categories List Styling */
.sidebar .widget ul {
    list-style-type: none;
    padding-left: 0;
}

.sidebar .widget ul li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
    font-size: 15px;
}

.sidebar .widget ul li:last-child {
    border-bottom: none;
}

.sidebar .widget ul li a {
    color: var(--text-color);
    display: inline-block;
    transition: var(--transition-smooth);
}

.sidebar .widget ul li a:hover {
    color: var(--accent-color);
    transform: translateX(3px);
}

/* About Author Widget (Custom Layout Helper) */
.widget_about_author {
    text-align: center;
}

.widget_about_author img {
    border-radius: 50%;
    width: 120px;
    height: 120px;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--secondary-color);
}

.widget_about_author p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ==========================================================================
   Footer Styling
   ========================================================================== */
.site-footer,
.site-info {
    background-color: var(--primary-color) !important;
    color: var(--light-green-bg) !important;
}

.site-footer {
    padding: 20px 0 !important;
    margin-top: 40px !important;
}

.site-info,
.inside-site-info {
    padding: 8px 0 !important;
    margin: 0 !important;
}


.site-footer a,
.site-info a {
    color: var(--white) !important;
}

.site-footer a:hover,
.site-info a:hover {
    color: var(--accent-color) !important;
}

.footer-widgets {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 30px;
    margin-bottom: 30px;
}

/* ==========================================================================
   404 Page Styling
   ========================================================================== */
.gardening-404-container {
    padding: 80px 20px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-subtle);
    max-width: 700px;
    margin: 60px auto;
    text-align: center;
}

.gardening-404-content {
    max-width: 500px;
    margin: 0 auto;
}

.gardening-404-illustration {
    width: 150px;
    height: 150px;
    margin: 0 auto 10px auto;
    animation: swaySprout 6s ease-in-out infinite alternate;
}

@keyframes swaySprout {
    0% { transform: rotate(-3deg); }
    100% { transform: rotate(3deg); }
}

.gardening-404-title {
    font-size: 80px;
    line-height: 1;
    margin: 0 0 10px 0;
    color: var(--accent-color);
    font-weight: 800;
}

.gardening-404-subtitle {
    font-size: 26px;
    margin: 0 0 15px 0;
    color: var(--primary-color);
}

.gardening-404-text {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.6;
}

.gardening-404-search {
    margin-bottom: 35px;
    background-color: var(--light-green-bg);
    padding: 24px;
    border-radius: var(--border-radius);
}

.gardening-search-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gardening-404-search form {
    margin: 0;
}

.gardening-home-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--white) !important;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.03em;
    box-shadow: 0 4px 12px rgba(30, 63, 32, 0.15);
    transition: var(--transition-smooth);
}

.gardening-home-btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(200, 107, 69, 0.25);
}
