/* Minimalist Rotating Box */
.gssf-slider-container {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    background: #f9f9f9;
    max-width: 400px;
    overflow: hidden;
    position: relative;
    height: 100px; /* Fixed height for the rotation */
}

.gssf-slide {
    animation: rotateForecast 24s infinite; /* 3 seconds per region */
    position: absolute;
    width: 100%;
}

.gssf-dot {
    height: 12px;
    width: 12px;
    display: inline-block;
    border-radius: 50%;
    margin-right: 8px;
}

.gssf-advice {
    font-size: 0.9em;
    color: #555;
    margin: 5px 0;
}

@keyframes rotateForecast {
    0%, 12.5% { opacity: 1; top: 15px; }
    15%, 100% { opacity: 0; top: -100px; }
}

/* ==========================================================
   THE COLOR-TINTED TRACTOR ANIMATION
   ========================================================== */

.gssf-tractor-box { 
    height: 70px; 
    width: 100%; 
    overflow: hidden; 
    position: relative; 
    margin-top: 15px;
    background: rgba(0,0,0,0.03); 
    border-radius: 8px;
    border-bottom: 2px solid #eee;
}

.gssf-tractor-graphic {
    font-size: 50px;
    height: 60px;
    display: block;
    width: 100%;
    position: relative;
}

/* Base Tractor Setup */
.gssf-tractor-graphic::after {
    content: "\1F69C"; 
    position: absolute;
    left: -15%; 
    transform: scaleX(-1); 
    display: inline-block;
    transition: filter 0.3s ease; /* Smooth color change */
}

/* ? GREEN: Brisk Drive (3s) + GREEN TINT */
.gssf-tractor-green .gssf-tractor-graphic::after {
    filter: sepia(1) saturate(10) hue-rotate(70deg); /* Bright Green */
    animation: tractor-drive 3s infinite linear;
}

/* ? AMBER: Slow Crawl (8s) + YELLOW TINT */
.gssf-tractor-amber .gssf-tractor-graphic::after {
    filter: sepia(1) saturate(5) hue-rotate(10deg); /* Golden Yellow */
    animation: tractor-drive 8s infinite linear, tractor-vibrate 0.5s infinite alternate;
}

/* ? RED: Parked (10%) + RED TINT */
.gssf-tractor-red .gssf-tractor-graphic::after {
    left: 10%; 
    filter: sepia(1) saturate(10) hue-rotate(320deg); /* Deep Red */
    animation: none; 
}

/* ==========================================================
   KEYFRAME ANIMATIONS
   ========================================================== */

/* Driving Path */
@keyframes tractor-drive {
    0% { 
        left: -15%; 
        transform: scaleX(-1); 
        opacity: 0; 
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { 
        left: 115%; 
        transform: scaleX(-1); 
        opacity: 0; 
    }
}

/* Engine Vibration */
@keyframes tractor-vibrate {
    from { transform: translateY(0) scaleX(-1); }
    to { transform: translateY(-2px) scaleX(-1); }
}


/* Status Card Colors */
.gssf-status-red { background: #f8d7da; border-color: #dc3545; color: #721c24; }
.gssf-status-amber { background: #fff3cd; border-color: #ffc107; color: #856404; }
.gssf-status-green { background: #d4edda; border-color: #28a745; color: #155724; }
/* You would add staggered delays for each child slide in the full version */

/* Ensure the header looks good on small phones */
@media (max-width: 400px) {
    .gssf-wrapper div[style*="display:flex"] {
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left;
    }
    .gssf-wrapper div[style*="width:150px"] {
        margin-bottom: 15px;
        margin-right: 0 !important;
    }
}

.ux-key {
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    border-right: 2px solid #808080;
    border-bottom: 2px solid #808080;
    box-shadow: 1px 1px 0px #000;
    background: radial-gradient(circle at 50% 35%, #e0e0e0, #c0c0c0 70%);
    cursor: pointer;
    transition: all 0.1s ease-in-out;
    position: relative;
    text-align: center;
}

.ux-key:active {
    border-top: 2px solid #808080;
    border-left: 2px solid #808080;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    box-shadow: inset 1px 1px 2px #000;
    background: radial-gradient(circle at 50% 35%, #c0c0c0, #a0a0a0 70%);
}

.ux-key p {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.6em;
    font-weight: bold;
    color: #000;
    text-transform: uppercase;
    line-height: 1.1;
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
	pointer-events: none;
}

/* 1. The Container - Put this class on the SECTION holding all the regional blocks */
.region-container {
    position: relative;
    min-height: 400px; /* Adjust this to the height of your tallest weather block */
}

/* 2. The Vault - Ghost mode */
.hide-me {
    position: absolute; /* This pulls them out of the "stack" so they don't push each other down */
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease-in-out;
    z-index: 1;
}

/* 3. The Reveal - Solid mode */
.hide-me.show-now {
    position: relative; /* This makes the active one "real" again so the footer stays below it */
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}
/* Target the Column specifically */
.column.weather-display-area {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important; 
    text-align: center !important;
    margin: 0 auto !important;
    float: none !important; /* Prevents the column from leaning left */
}

/* Ensure the regional block inside doesn't shrink */
.weather-display-area > .hide-me {
    width: 100% !important;
    display: block !important;
}
/* ============================================================
   SOWING HUB: UI TIGHTENING & GAP KILLER
   Location: Main Plugin CSS or Flatsome Custom CSS
   ============================================================ */

/* 1. THE MAGNET (The area where the tractor appears)
   Ensures this area takes up ZERO pixels when empty. */
.column.weather-display-area:empty,
.region-row-shell:not(.show-now) {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: none !important;
}

/* 2. THE REVEAL LOGIC
   When a region is clicked and moved to the magnet, 
   this resets the height so the tractor is visible. */
.region-row-shell.show-now {
    display: block !important;
    height: auto !important;
    margin-bottom: 30px !important; /* Space above the FAQ when active */
}

/* 3. THE FAQ ROW (The new [gssf_ai_faq] block)
   This forces the FAQ row to "kiss" the buttons above it. */
.sowing-faq-row {
    padding-top: 0 !important;
    margin-top: -30px !important; /* Negative margin pulls the FAQ UP */
    position: relative;
    z-index: 10;
    clear: both;
}

/* 4. THE 150PX GAP KILLER
   If the magnet area is empty, we pull the FAQ up even 
   further to kill the Flatsome row whitespace. */
.weather-display-area:empty + .sowing-faq-row,
.region-row-shell:empty + .sowing-faq-row {
    margin-top: -120px !important; /* Adjust this until the 150px gap disappears */
}

/* 5. SMOOTH TRANSITION
   When the advice appears, the FAQ will slide down 
   smoothly instead of jumping. */
.weather-display-area .show-now + .sowing-faq-row {
    margin-top: 20px !important; 
    transition: margin-top 0.4s ease;
}

/* 6. FAQ INTERNAL STYLING
   Adds a clean separator inside the FAQ box. */
.sowing-faq-row .gssf-ai-faq-wrapper {
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 20px;
}

/* ============================================================
   THE 7-REGION CRUSH: Removes the 'stacked' gaps from 7 rows
   ============================================================ */

/* 1. Target every single regional row shell at once */
.region-row-shell {
    display: none !important;      /* Removes from layout */
    visibility: hidden !important; /* Ensures no ghosting */
    height: 0 !important;          /* Zero height */
    max-height: 0 !important;      /* Double safety */
    margin: 0 !important;          /* No top/bottom margins */
    padding: 0 !important;         /* No top/bottom padding */
    overflow: hidden !important;   /* Prevents content bleed */
    border: none !important;       /* No border gaps */
    line-height: 0 !important;     /* Kills text-line spacing */
}

/* 2. ONLY the active row gets its life back */
.region-row-shell.show-now {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    max-height: none !important;
    margin-top: 20px !important;    /* Space below buttons */
    margin-bottom: 40px !important; /* Space above FAQ */
    line-height: normal !important;
}

/* 3. The FAQ "Magnet" Pull-Up */
/* This pulls the FAQ row up to cover the 'corpse' of the 7 hidden rows */
.sowing-faq-row {
    margin-top: -80px !important; /* Adjust this: it counteracts the button-row's bottom margin */
    padding-top: 0 !important;
    position: relative;
    z-index: 10;
}

/* 4. Flatsome Specific: Kill the Row-Level Spacing */
.region-row-shell .row, 
.region-row-shell .col {
    margin: 0 !important;
    padding: 0 !important;
}