/* bcagenda CSS - css/bcagenda.css - Monthly Grouping Support */

/* Date display styling */
.item-date-display {
    text-align: center;
    margin-bottom: 8px;
}

.date-day {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
}

.date-month {
    font-size: 12px;
    text-transform: uppercase;
    color: #666;
}

/* Custom time styling - positioned below date */
.item-custom-time {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    padding: 4px 8px;
    background-color: #e8f4f8;
    border-radius: 12px;
    font-size: 11px;
    color: #5a9fd4;
    border: 1px solid #b8d4e3;
    min-width: fit-content;
}

.item-custom-time .time-icon {
    margin-right: 4px;
    font-size: 12px;
    color: #5a9fd4;
}

.item-custom-time .time-text {
    font-weight: 500;
    white-space: nowrap;
}

/* Make sure the left column accommodates both elements */
.item-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

/* Month Group Styling */
.month-group {
    margin-bottom: 50px;
}

.month-header {
    margin-bottom: 30px;
    position: relative;
}

.month-title {
    font-size: 36px;
    font-weight: bold;
    color: #2c5aa0;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    padding: 20px 0;
    text-align: center;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.month-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.month-separator {
    height: 2px;
    background: linear-gradient(90deg, transparent, #2c5aa0, transparent);
    margin: 15px 0;
    border-radius: 1px;
}

.month-items {
    position: relative;
}

/* Individual Item Styling */
.bcagenda-item {
    background: linear-gradient(135deg, #e8f4f8 0%, #d1e9f0 100%);
    border-radius: 20px;
    padding: 30px;
    margin: 0 0 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.bcagenda-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #FFD700, #FFC107);
    border-radius: 0 2px 2px 0;
    opacity: 0;
}

.bcagenda-item:hover {
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.bcagenda-item:hover::before {
    opacity: 1;
}

.item-content {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.item-left {
    flex-shrink: 0;
    text-align: center;
}

.item-date-display {
    background: white;
    border-radius: 10px;
    padding: 15px 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    min-width: 60px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.bcagenda-item:hover .item-date-display {
    border-color: #FFD700;
    box-shadow: 0 6px 15px rgba(255, 215, 0, 0.3);
}

.date-day {
    font-size: 28px;
    font-weight: bold;
    color: #2c5aa0;
    line-height: 1;
}

.date-month {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    margin-top: 5px;
}

.item-middle {
    flex: 1;
    padding-right: 20px;
}

.item-title {
    font-size: 32px;
    font-weight: bold;
    color: #2c5aa0;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.bcagenda-item:hover .item-title {
    color: #1a4480;
}

.item-category {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

.category-badge {
    display: inline-block;
    background: #4CAF50;
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.bcagenda-item:hover .category-badge {
    background: #45a049;
}

.item-time {
    color: #666;
    font-size: 14px;
    white-space: nowrap;
}

.item-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 16px;
}

.item-action {
    margin-top: 20px;
}

/* Hide mobile action on desktop */
.mobile-action {
    display: none;
}

a.btn-billetterie{
    color: #F1F1F1 !important;
}

a.btn-billetterie:hover{
    color: #FFFFFF !important;
}

.btn-billetterie {
    background: linear-gradient(45deg, #FFD700, #FFC107);
    color: #333;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-billetterie:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.6);
    text-decoration: none;
    color: #333;
}

.btn-billetterie .icon-ticket::before {
    content: "🎫";
    font-size: 16px;
}

.item-right {
    flex-shrink: 0;
    width: 50%;
    position: relative;
}

.item-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.bcagenda-item:hover .item-image {
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

.item-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}


/* Video Styles */
.item-video {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    position: relative;
    background: #000;
    transition: all 0.3s ease;
}

.bcagenda-item:hover .item-video {
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

.item-video video {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    background: #000;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.item-video:hover .video-overlay {
    opacity: 0;
}

.play-button {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.play-button:hover {
    transform: scale(1.1);
    background: white;
}

.play-icon {
    font-size: 20px;
    color: #333;
    margin-left: 3px; /* Slight offset to center the triangle */
}

/* Video controls styling */
.item-video video::-webkit-media-controls-panel {
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.item-video video::-webkit-media-controls-current-time-display,
.item-video video::-webkit-media-controls-time-remaining-display {
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

/* Desktop wrapper - hidden on desktop */
.item-left-middle-wrapper {
    display: contents; /* On desktop, this acts as if the wrapper doesn't exist */
}

/* Monthly Navigation (Optional) */
.month-navigation {
    position: sticky;
    top: 20px;
    background: white;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    z-index: 10;
}

.month-nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.month-nav-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 8px 15px;
    font-size: 14px;
    font-weight: 600;
    color: #2c5aa0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.month-nav-item:hover,
.month-nav-item.active {
    background: #2c5aa0;
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .item-date-display{
        display: none;
    }

    .month-title {
        font-size: 28px;
        padding: 15px 0;
    }
}

@media (max-width: 767px) {
    .month-group {
        margin-bottom: 40px;
    }

    .month-title {
        font-size: 24px;
        padding: 15px 10px;
        letter-spacing: 1px;
    }

    .bcagenda-item {
        padding: 20px;
        margin-bottom: 25px;
    }

    .item-content {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 20px;
    }

    /* Mobile wrapper - shows as flex on mobile */
    .item-left-middle-wrapper {
        display: flex;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 20px;
    }

    .item-left {
        flex-shrink: 0;
        margin-bottom: 0;
    }

    .item-middle {
        flex: 1;
        padding-right: 0;
    }

    .item-right {
        width: 100%;
        margin-bottom: 20px;
    }

    /* Hide desktop action, show mobile action */
    .desktop-action {
        display: none;
    }

    .mobile-action {
        display: block;
        text-align: center;
        margin-top: 0;
        padding: 15px;
        background: rgba(255,255,255,0.3);
        border-radius: 15px;
        margin: 0 -10px;
    }

    .item-title {
        font-size: 24px;
    }

    .item-video video,
    .item-image img {
        height: 180px;
    }

    .item-date-display {
        padding: 10px 8px;
        min-width: 50px;
    }

    .date-day {
        font-size: 24px;
    }

    /* Mobile category layout adjustment */
    .item-category {
        gap: 10px;
    }

    .item-time {
        white-space: normal;
    }

    /* Mobile month navigation */
    .month-navigation {
        position: relative;
        top: auto;
    }

    .month-nav-list {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 5px;
    }

    .month-nav-item {
        flex-shrink: 0;
        font-size: 12px;
        padding: 6px 12px;
    }
}