/*!
Theme Name: Kadence Child
Theme URI: https://www.kadencewp.com/kadence-theme/
Template: kadence
Author: Kadence WP
Author URI: https://www.kadencewp.com/
Description: A child theme for the Kadence Theme.
Version: 1.0.0
License: GNU General Public License v3.0 (or later)
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: kadence-child
*/

/* Styling for the main grid container (DESKTOP/DEFAULT) */
.planda-taxonomy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    
    gap: 15px 20px; 
    
    max-width: 700px; 
    margin-left: auto;
    margin-right: auto;
    margin-top: 30px; 
    margin-bottom: 30px; 
    background-color: #f9f9f9; 
    border: 1px solid #e0e0e0; 
    border-radius: 6px;
    
    padding: 10px 15px; 
    
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.9em; 
    color: #333; 
}

/* -------------------------------------------------------------------------------- */
/* NEW RULE: Full-width row for combined taxonomies (Ord, Family, Genus) */
/* -------------------------------------------------------------------------------- */
.planda-taxonomy-grid .full-width-row {
    /* Make this specific box span both columns (1 to 3) on desktop */
    grid-column: 1 / 3; 
    /* Remove the vertical border divider */
    border-right: none !important;
    padding-right: 0 !important;
}


/* Styling for each individual taxonomy item (The "Rows") */
.planda-taxonomy-box {
    padding-top: 0px; 
    padding-bottom: 0px; 
    margin-bottom: 5px; 
    
    border-bottom: 1px dashed #e9e9e9; 
}

/* Column Divider */
.planda-taxonomy-grid .planda-taxonomy-box:nth-child(odd) {
    border-right: 1px solid #e0e0e0; 
    padding-right: 20px; 
}

/* Cleanup for the last row(s) in the grid */
.planda-taxonomy-grid .planda-taxonomy-box:last-child,
.planda-taxonomy-grid .planda-taxonomy-box:nth-last-child(2) {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}


/* Styling for the LABEL (strong tag) and ICON */
.planda-taxonomy-box strong {
    color: #555; 
    font-weight: 600; 
    margin-right: 4px; 
    display: inline-block;
    min-width: 0px; 
}

/* Style the icon specifically (for spacing and color) */
.planda-taxonomy-box strong i {
    color: #4a90e2; /* Icon color */
    margin-right: 4px; /* Space between icon and text */
}

/* Styling for the TERM links (Pill shape) */
.planda-taxonomy-box a.planda-term {
    color: #0073aa; 
    background-color: #e6f7ff; 
    padding: 1px 5px; 
    border-radius: 3px; 
    margin-right: 3px; 
    margin-bottom: 3px; 
    display: inline-block; 
    font-size: 0.9em; 
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Hover effect for term links */
.planda-taxonomy-box a.planda-term:hover {
    color: #ffffff; /* White text on hover */
    background-color: #00568c; /* Darker blue background on hover */
    text-decoration: none;
}


/* -------------------------------------------------------------------------------- */
/* STYLING FOR THE MONTH BAR (Flowering Period Visual) */
/* -------------------------------------------------------------------------------- */

/* Main wrapper to center the bar, matching the grid width */
.planda-month-bar-wrapper {
    max-width: 700px;
    margin: 10px auto 25px auto; /* Margin to separate it from title and grid */
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
/* Ensure the cursor turns to a pointer on hover for all month boxes */
.planda-month-bar a.month-box {
    cursor: pointer;
    text-decoration: none; /* Ensure no underline appears on hover/active states */
}


/* Optional Title Styling */
.planda-month-bar-wrapper h4 {
    text-align: center;
    font-size: 1.1em;
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
}

/* Flex container for the 12 boxes - CRITICAL RULE FOR HORIZONTAL LAYOUT */
.planda-month-bar {
    display: flex; 
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Individual month box */
.planda-month-bar .month-box {
    flex-grow: 1; /* Make all 12 boxes equal width */
    flex-basis: 0;
    height: 30px;
    background-color: #e9e9e9; /* Default background (inactive) */
    color: #777;
    font-size: 0.8em;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #ccc; /* Separator lines */
    position: relative;
    transition: background-color 0.3s ease;
    cursor: default;
}

/* Remove the border on the last box */
.planda-month-bar .month-box:last-child {
    border-right: none;
}

/* The highlighted/active month box */
.planda-month-bar .month-box.active {
    background-color: #6a9b43; /* Vivid Green for flowering */
    color: #fff;
    border-color: #4f7831;
}

/* Ensure the month letter is vertically centered */
.planda-month-bar .month-box span {
    line-height: 1;
}

/* -------------------------------------------------------------------------------- */
/* MOBILE VIEW (COMPACT STYLING) */
/* -------------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .planda-taxonomy-grid {
        grid-template-columns: 1fr; /* Single column stack */
        gap: 8px; 
        padding: 8px 10px; 
        margin-top: 15px;
        max-width: 100%;
        font-size: 1em; 
    }

    /* FIX: Force the combined taxonomy row to span only one column on mobile */
    .planda-taxonomy-grid .full-width-row {
        grid-column: 1 / 2 !important; /* Forces it back to a single column */
    }
    
    /* Remove the vertical border when stacked in a single column */
    .planda-taxonomy-grid .planda-taxonomy-box:nth-child(odd) {
        border-right: none;
        padding-right: 0;
    }

    /* Make rows even tighter on mobile */
    .planda-taxonomy-box {
        margin-bottom: 5px; 
        padding-bottom: 3px; 
        padding-top: 3px;
    }
}
