/*
 Theme Name:   Hello Elementor Child
 Description:  Child theme for the Hello Elementor theme
 Author:       Your Name
 Template:     hello-elementor
 Version:      1.0.0
*/

/* --- Hendersonville Bites Calendar Theme --- */

:root {
    --primary-red: #b92b27;
    --primary-green: #388e3c;
    --orange: #f39c12;
    --bg-light: #fdfbf7;
    --text-dark: #333;
    --border-color: #e0dcd3;
    --font-main: 'Roboto', sans-serif;
    --font-heading: 'Oswald', sans-serif;
}

.hb-monthly-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    font-family: var(--font-main);
}

/* --- Navigation & Header --- */
.hb-calendar-header h2 {
    font-family: var(--font-heading);
    text-align: center;
    font-size: 32px;
    color: var(--text-dark);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hb-calendar-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid var(--bg-light);
}

.hb-calendar-selector select {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background: #fff;
    font-family: var(--font-main);
    color: var(--text-dark);
    font-size: 14px;
    outline: none;
}

.hb-calendar-selector button {
    font-family: var(--font-heading);
    background-color: var(--orange);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    text-transform: uppercase;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 0 #b9770e;
    /* Matching your btn-orange style */
    transition: transform 0.1s ease;
}

.hb-calendar-selector button:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #b9770e;
}

/* --- The Grid --- */
.hb-calendar-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    background: white;
}

.hb-calendar-table th {
    font-family: var(--font-heading);
    background-color: var(--bg-light);
    color: var(--text-muted);
    padding: 15px;
    font-size: 14px;
    text-transform: uppercase;
    border: 1px solid var(--border-color);
}

.hb-calendar-table td {
    height: 130px;
    border: 1px solid var(--border-color);
    vertical-align: top;
    padding: 10px;
}

.hb-calendar-table td:hover {
    background-color: var(--bg-light);
}

.hb-calendar-table td.hb-empty {
    background: #f9f7f2;
}

/* --- Date & Event Styling --- */
.day-num {
    font-family: var(--font-heading);
    color: #999;
    font-size: 16px;
    display: block;
    margin-bottom: 8px;
}

.event-pill {
    background: var(--primary-red);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    border-left: 3px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    white-space: normal !important;
    /* Allows text to wrap to the next line */
    height: auto !important;
    /* Let the box grow with the text */
    min-height: 20px;
    padding: 2px 5px !important;
    font-size: 13px !important;
    /* Adjust size for better readability */
    line-height: 1.2 !important;
}

.event-pill:hover {
    background: #d32f2f;
    cursor: pointer;
}



/* --- Responsive Layout --- */
@media (max-width: 768px) {
    .hb-calendar-selector {
        flex-direction: column;
    }

    .hb-calendar-selector select,
    .hb-calendar-selector button {
        width: 100%;
    }

    .hb-calendar-table td {
        height: 90px;
        padding: 5px;
    }

    .event-pill {
        font-size: 9px;
        padding: 2px 4px;
    }
}