/*
Theme Name: TecnoAgroBras
Theme URI: https://tecnoagrobras.shop
Description: Professional agricultural technology blog theme with green minimalist design
Version: 1.0.0
Author: TecnoAgroBras
Author URI: https://tecnoagrobras.shop
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tecnoagrobras
Domain Path: /languages
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Open+Sans:wght@400;500;600&display=swap');

:root {
    --primary-green: #1B7C3A;
    --dark-green: #0D4620;
    --light-green: #E8F5E9;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --border-color: #E0E0E0;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
}

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

html, body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    background: #fafafa;
    line-height: 1.6;
}

/* HEADER */
.site-header {
    background: white;
    border-bottom: 4px solid var(--primary-green);
    padding: 20px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 40px;
    flex: 0 0 auto;
}

.custom-logo {
    height: 50px;
    width: auto;
}

.site-title {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-green);
    margin: 0;
    text-decoration: none;
}

.site-title a {
    color: var(--primary-green);
    text-decoration: none;
}

.site-description {
    display: none;
}

/* NAVIGATION */
.site-navigation {
    flex: 1;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.main-navigation li {
    margin: 0;
}

.main-navigation a {
    display: block;
    padding: 15px 18px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.main-navigation a:hover,
.main-navigation li.current-menu-item a {
    color: var(--primary-green);
    border-bottom-color: var(--primary-green);
    background-color: var(--light-green);
}

/* MAIN CONTENT */
main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* POSTS GRID */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* POST CARD */
article {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

article:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}

.post-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.entry-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

h2.entry-title {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 12px 0;
    line-height: 1.3;
}

h2.entry-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

h2.entry-title a:hover {
    color: var(--primary-green);
}

.entry-summary {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 15px 0;
    flex: 1;
}

.entry-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #999;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.more-link {
    display: inline-block;
    background-color: var(--primary-green);
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-green);
    align-self: flex-start;
}

.more-link:hover {
    background-color: var(--dark-green);
    border-color: var(--dark-green);
    transform: translateX(4px);
}

/* FOOTER */
.site-footer {
    background-color: var(--dark-green);
    color: white;
    padding: 50px 20px 30px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 30px;
}

.footer-widget h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
}

.footer-widget li {
    margin-bottom: 10px;
}

.footer-widget a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-widget a:hover {
    color: white;
}

.site-info {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.8);
}

/* SINGLE POST */
.single-post {
    background-color: #fafafa;
}

.single .entry-content {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.single h1.entry-title {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.single .entry-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* PAGES */
.page .entry-content {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.page h1.entry-title {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page .entry-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        gap: 15px;
        padding: 15px 0;
    }
    
    .site-branding {
        padding: 0 20px;
        width: 100%;
    }
    
    .site-navigation {
        padding: 0;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
    }
    
    .main-navigation a {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .single h1.entry-title,
    .page h1.entry-title {
        font-size: 24px;
    }
}
