/*
 * Events Calendar Custom Styling
 * Custom styles for FullCalendar buttons
 */

/* FullCalendar Primary Buttons (Today, Month, Week, Day, List) */
.fc .fc-button-primary {
    background-color: #650E3D !important;
    border: 2px solid #650E3D !important;
    border-radius: 12px !important;
    color: white !important;
    padding: 8px 16px !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(101, 14, 61, 0.2) !important;
    margin: 0 2px !important;
}

.fc .fc-button-primary:hover,
.fc .fc-button-primary:focus {
    background-color: #722f37 !important;
    border-color: #722f37 !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(101, 14, 61, 0.3) !important;
}

/* Active/Disabled state for FullCalendar buttons */
.fc .fc-button-primary:disabled {
    background-color: #650E3D !important;
    border-color: #650E3D !important;
    opacity: 0.9 !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 6px rgba(101, 14, 61, 0.3) !important;
}

.fc .fc-button-primary:not(:disabled):active,
.fc .fc-button-primary:not(:disabled).fc-button-active {
    background-color: #722f37 !important;
    border-color: #722f37 !important;
    color: white !important;
    font-weight: 600 !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

/* FullCalendar button group styling */
.fc .fc-button-group {
    display: inline-flex !important;
    gap: 4px !important;
}

.fc .fc-button-group > .fc-button {
    border-radius: 12px !important;
    margin: 0 !important;
}

/* Navigation buttons (prev, next) */
.fc .fc-prev-button,
.fc .fc-next-button {
    background-color: #650E3D !important;
    border: 2px solid #650E3D !important;
    border-radius: 10px !important;
    color: white !important;
    padding: 8px 12px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(101, 14, 61, 0.2) !important;
}

.fc .fc-prev-button:hover,
.fc .fc-next-button:hover,
.fc .fc-prev-button:focus,
.fc .fc-next-button:focus {
    background-color: #722f37 !important;
    border-color: #722f37 !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 6px rgba(101, 14, 61, 0.3) !important;
}

/* Today button specific styling */
.fc .fc-today-button {
    background-color: #650E3D !important;
    border: 2px solid #650E3D !important;
    border-radius: 12px !important;
    color: white !important;
    padding: 8px 16px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(101, 14, 61, 0.2) !important;
}

.fc .fc-today-button:hover,
.fc .fc-today-button:focus {
    background-color: #722f37 !important;
    border-color: #722f37 !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(101, 14, 61, 0.3) !important;
}

/* FullCalendar toolbar styling */
.fc .fc-toolbar {
    margin-bottom: 20px !important;
}

.fc .fc-toolbar-title {
    color: #650E3D !important;
    font-weight: 600 !important;
}

/* Secondary buttons (if any) */
.fc .fc-button:not(.fc-button-primary) {
    background-color: transparent !important;
    border: 2px solid #650E3D !important;
    border-radius: 10px !important;
    color: #650E3D !important;
    padding: 6px 12px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.fc .fc-button:not(.fc-button-primary):hover,
.fc .fc-button:not(.fc-button-primary):focus {
    background-color: #650E3D !important;
    border-color: #650E3D !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(101, 14, 61, 0.2) !important;
}

/* Remove default FullCalendar focus outlines and add custom ones */
.fc .fc-button:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(101, 14, 61, 0.3) !important;
  }

/* Custom Events List Widget Styles */
.ectbe-wrapper {
    width: 100%;
    margin: 20px 0;
}

.ectbe-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ectbe-month-header {
    font-size: 24px;
    font-weight: bold;
    color: #650E3D;
    margin: 30px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #650E3D;
}

.ectbe-inner-wrapper {
    display: flex;
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.ectbe-inner-wrapper:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.ectbe-date-area {
    background: #650E3D;
    color: white;
    padding: 20px;
    text-align: center;
    min-width: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.ectbe-ev-day {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
}

.ectbe-ev-mo {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.ectbe-ev-yr {
    font-size: 12px;
    opacity: 0.8;
}

.ectbe-content-box {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ectbe-content-box .ectbe-date-area {
    background: transparent;
    color: #650E3D;
    padding: 0;
    min-width: auto;
    flex-direction: row;
    gap: 5px;
    font-size: 14px;
    font-weight: 500;
}

.ectbe-evt-title a {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ectbe-evt-title a:hover {
    color: #650E3D;
}

.ectbe-evt-venue {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

.ectbe-icon {
    color: #650E3D;
    margin-top: 2px;
}

.ectbe-venue-details a {
    color: #650E3D;
    text-decoration: none;
}

.ectbe-venue-details a:hover {
    text-decoration: underline;
}

.ectbe-evt-cost {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #650E3D;
    font-weight: bold;
}

.ectbe-evt-more-box {
    margin-top: 10px;
}

.ectbe-evt-read-more {
    background: #650E3D;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.ectbe-evt-read-more:hover {
    background: #722f37;
    color: white;
}

.ectbe-evt-img {
    width: 200px;
    overflow: hidden;
}

.ectbe-evt-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Events Pagination Styling */
.events-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px 0 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    flex-wrap: wrap;
    gap: 10px;
}

.events-pagination .nav-previous,
.events-pagination .nav-next {
    flex: 0 0 auto;
}

.events-pagination .page-numbers {
    display: flex;
    gap: 5px;
    flex: 1;
    justify-content: center;
    align-items: center;
}

.events-pagination a,
.events-pagination .page-numbers.current {
    padding: 8px 12px;
    background: white;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.events-pagination a:hover {
    background: #650E3D;
    color: white;
    border-color: #650E3D;
}

.events-pagination .page-numbers.current {
    background: #650E3D;
    color: white;
    border-color: #650E3D;
    font-weight: bold;
}

.events-summary {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background: #f0f0f0;
    border-radius: 6px;
    color: #666;
}

.events-summary p {
    margin: 0;
    font-size: 14px;
}
  
/* Responsive adjustments */
@media (max-width: 768px) {
    .fc .fc-button-primary,
    .fc .fc-prev-button,
    .fc .fc-next-button,
    .fc .fc-today-button {
        padding: 6px 10px !important;
        font-size: 12px !important;
        border-radius: 8px !important;
        margin: 0 1px !important;
    }
    
    .fc .fc-button-group {
        gap: 2px !important;
    }
    
    .fc .fc-toolbar {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .fc .fc-toolbar-chunk {
        display: flex !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 4px !important;
    }
    
    /* Responsive widget styles */
    .ectbe-inner-wrapper {
        flex-direction: column;
    }
    
    .ectbe-date-area {
        flex-direction: row;
        justify-content: center;
        padding: 15px;
    }
    
    .ectbe-ev-day {
        font-size: 24px;
        margin-right: 10px;
    }
    
    .ectbe-ev-mo {
        margin-top: 0;
        align-self: flex-end;
        margin-bottom: 5px;
    }
    
    .ectbe-evt-img {
        width: 100%;
        height: 200px;
    }
    
    .events-pagination {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .events-pagination .page-numbers {
        order: 2;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .events-pagination .nav-previous {
        order: 1;
    }
    
    .events-pagination .nav-next {
        order: 3;
    }
}
