/**
 * Agri Growth Engine X: The Design System
 * Focus: Glassmorphism, Premium Gradients, Fluid Layouts
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

/* Reset and Global Polish */
#page, .site {
    background: radial-gradient(1200px 1200px at 50% -10%, #f0fdf4, #ffffff);
    font-family: 'Inter', -apple-system, system-ui, sans-serif !important;
}

/* Premium Containers: Glassmorphism */
article.post, .widget, .card, .entry-content, .ez-toc-container {
    background: var(--agex-glass) !important;
    backdrop-filter: blur(var(--agex-blur)) saturate(160%);
    -webkit-backdrop-filter: blur(var(--agex-blur)) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: var(--agex-radius) !important;
    box-shadow: var(--agex-shadow) !important;
    padding: 30px !important;
    margin-bottom: 24px !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

article.post:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px -15px rgba(0, 147, 69, 0.12) !important;
}

/* Typography Hyper-Polish */
h1, h2, h3, h4 {
    color: #0f172a !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.2 !important;
}

.entry-content {
    font-size: 1.15rem !important;
    line-height: 1.75 !important;
    color: #334155 !important;
}

/* Mobile-First Domination */
@media (max-width: 782px) {
    .agex-mobile-search-bar {
        display: flex !important;
        position: sticky;
        top: 10px;
        z-index: 9999;
        background: var(--agex-glass);
        backdrop-filter: blur(10px);
        margin: 10px;
        padding: 5px;
        border-radius: 50px;
        box-shadow: 0 15px 30px -10px rgba(0,0,0,0.1);
        border: 1px solid rgba(255,255,255,0.5);
    }

    .agex-mobile-search-bar input {
        border: none !important;
        background: transparent !important;
        height: 50px !important;
        font-size: 16px !important;
        width: 100% !important;
        padding: 0 20px !important;
    }
}

/* Progressive UX: Scroll Progress */
.agex-progress-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 10000;
}

.agex-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--agex-green), #00c46a);
    width: 0%;
}

/* Premium Buttons */
.wp-block-button__link, button, .agex-cta-btn {
    background: var(--agex-green) !important;
    color: #fff !important;
    border-radius: 100px !important;
    padding: 14px 28px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    box-shadow: 0 10px 25px -5px rgba(0, 147, 69, 0.4) !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    border: none !important;
}

.wp-block-button__link:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px -5px rgba(0, 147, 69, 0.5) !important;
}

/* Hide Redundant UI */
.search-toggle, .main-navigation .search-form { display: none !important; }
