/*
 * Motorsport Manager - Calendar Shortcode
 * Version 5.0.0 - ENHANCED with shimmer effects and dramatic hovers
 */
.mm-calendar-container {
    font-family: "Titillium Web", sans-serif;
    max-width: 900px;
    margin: 2.5em auto;
    padding: 1rem;
}

.mm-calendar-event {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #2d2d2d 0%, #1d1d1d 100%);
    color: #fff;
    margin-bottom: 18px;
    border-radius: 14px;
    padding: 22px;
    border-left: 6px solid #444;
    transition: all .4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.mm-calendar-event::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(225, 6, 0, 0.15), transparent);
    transition: left 0.7s ease;
}

.mm-calendar-event::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(225, 6, 0, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mm-calendar-event.past-event {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    opacity: 0.65;
    border-color: #333;
}

.mm-calendar-event:hover {
    border-left-color: #e10600;
    border-left-width: 8px;
    transform: translateX(12px) scale(1.03);
    box-shadow: 0 16px 50px rgba(225, 6, 0, 0.45), 
                0 0 50px rgba(225, 6, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.mm-calendar-event:hover::before {
    left: 100%;
}

.mm-calendar-event:hover::after {
    opacity: 1;
}

.mm-event-date {
    text-align: center;
    margin-right: 24px;
    border-right: 2px solid #444;
    padding-right: 24px;
    flex-shrink: 0;
    min-width: 80px;
}

.mm-event-date .month {
    display: block;
    font-size: 0.85em;
    text-transform: uppercase;
    font-weight: 700;
    color: #e10600;
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.mm-event-date .day {
    display: block;
    font-size: 2.2em;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, #fff 0%, #ccc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 6px rgba(255, 255, 255, 0.3));
}

.mm-event-details {
    flex-grow: 1;
}

.mm-event-title {
    margin: 0 0 8px;
}

.mm-event-title a {
    color: #fff;
    text-decoration: none;
    font-size: 1.3em;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    display: inline-block;
}

.mm-event-title a:hover {
    color: #e10600;
    transform: translateX(4px);
}

.mm-event-meta {
    margin: 0;
    font-size: 0.95em;
    color: #aaa;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.mm-event-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.mm-event-meta i {
    color: #e10600;
    font-size: 0.9em;
}

.mm-event-status {
    text-align: right;
    flex-shrink: 0;
    padding-left: 20px;
}

.mm-results-link {
    background: linear-gradient(135deg, #444 0%, #2a2a2a 100%);
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid #555;
    transition: all 0.3s ease;
    display: inline-block;
}

.mm-results-link:hover {
    background: linear-gradient(135deg, #e10600 0%, #c10500 100%);
    border-color: #e10600;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(225, 6, 0, 0.4);
}

.winner {
    font-weight: 700;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05em;
}

.winner .fa-trophy {
    color: #FFD700;
    font-size: 1.2em;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.6));
    animation: trophySpin 10s linear infinite;
}

@keyframes trophySpin {
    0%, 90% { transform: rotate(0deg); }
    95% { transform: rotate(20deg); }
    100% { transform: rotate(0deg); }
}

.upcoming {
    color: #aaa;
    font-style: italic;
    font-weight: 600;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

@media (max-width: 768px) {
    .mm-calendar-event {
        flex-direction: column;
        text-align: left;
        padding: 18px;
    }
    
    .mm-event-date {
        border-right: none;
        border-bottom: 2px solid #444;
        padding-right: 0;
        padding-bottom: 12px;
        margin-right: 0;
        margin-bottom: 12px;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .mm-event-date .month {
        font-size: 1em;
    }
    
    .mm-event-date .day {
        font-size: 2em;
    }
    
    .mm-event-status {
        padding-left: 0;
        margin-top: 12px;
        text-align: left;
    }
}