/**
 * Featured Events Styles - Production Version
 * 
 * Styles for featured events section displayed above main calendar.
 * Matches main calendar date formatting and visual consistency.
 * Responsive design with mobile-first optimizations.
 */

/* ===== FEATURED EVENTS CONTAINER ===== */
.featured-events-container {
    margin-bottom: 30px;
}

.featured-events-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 600;
}

.featured-events-list {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ===== INDIVIDUAL FEATURED EVENT BOX ===== */
.featured-event-box {
    width: 200px;
    text-align: center;
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-event-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

.featured-event-box a {
    display: block;
    text-decoration: none;
    color: #333;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.featured-event-box a:hover {
    color: #333;
}

/* ===== EVENT IMAGE SECTION ===== */
.featured-event-image-wrapper {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    position: relative;
    overflow: hidden;
}

.featured-event-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.featured-event-box:hover .featured-event-image {
    transform: scale(1.05);
}

/* ===== PRODUCT NAME SECTION ===== */
.featured-event-name {
    font-size: 18px;
    height: 50px;
    margin: 10px 0;
    padding: 0 5px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-weight: 500;
    line-height: 1.3;
}

/* ===== DATE DISPLAY SECTION ===== */
.featured-event-date-wrapper {
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    padding-bottom: 15px;
    flex-shrink: 0;
}

.featured-event-date {
    border: 2px solid #ccc;
    border-radius: 8px;
    padding: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: #f9f9f9;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Date components - FIXED: Now matches main calendar styling */
.event-day {
    display: block;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    color: #333;
    margin-bottom: 2px;
}

.event-date {
    display: block;
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #333;
}

.event-date sup {
    font-size: 10px;
    top: -0.5em;
}

.event-month {
    display: block;
    font-size: 12px;
    font-weight: bold; /* FIXED: Added to match main calendar */
    text-transform: uppercase;
    color: #333; /* FIXED: Changed from #555 to match main calendar */
    margin-top: 2px; /* FIXED: Added to match main calendar */
}

/* ===== CALL-TO-ACTION BUTTON ===== */
.read-more-button {
    border-top: 1px solid #e0e0e0;
    background-color: #ffffff;
    color: #000000;
    padding: 10px 0;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-top: auto;
    font-weight: 500;
}

.featured-event-box a:hover .read-more-button {
    background-color: #5bc0de;
    color: #ffffff;
}

/* ===== RESPONSIVE MOBILE STYLES ===== */
@media (max-width: 767px) {
    /* Container adjustments */
    .featured-events-title {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .featured-events-list {
        gap: 10px;
        justify-content: center;
    }
    
    /* Mobile event boxes - 3 columns layout */
    .featured-event-box {
        width: 30%;
        max-width: 120px;
    }
    
    /* Product name scaling */
    .featured-event-name {
        font-size: 12px;
        height: auto;
        min-height: 36px;
        margin: 5px 0;
        line-height: 1.2;
        padding: 2px;
    }
    
    /* Date display scaling */
    .featured-event-date-wrapper {
        width: 70px;
        height: 60px;
        padding-bottom: 5px;
    }
    
    .featured-event-date {
        padding: 3px;
    }
    
    /* Date component mobile sizing */
    .event-day {
        font-size: 9px;
        line-height: 1;
    }
    
    .event-date {
        font-size: 16px;
        line-height: 1;
    }
    
    .event-date sup {
        font-size: 7px;
    }
    
    .event-month {
        font-size: 10px;
        line-height: 1;
    }
    
    /* Button scaling */
    .read-more-button {
        font-size: 11px;
        padding: 5px 0;
    }
}