/* Event Popup Styles */

.event-popup-content {
    border: none;
    border-radius: 12px;
    background-color: transparent;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
}

.event-popup-content .modal-body {
    position: relative;
    padding: 0;
    max-height: 90vh;
    overflow: hidden;
}

.event-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1060;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    opacity: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.event-popup-close:hover {
    background-color: #fff;
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.event-popup-close:focus {
    box-shadow: 0 0 0 3px rgba(158, 84, 52, 0.4);
}

/* Modal backdrop */
#anniversaryEventModal .modal-backdrop {
    background-color: rgba(0, 0, 0, 0.75);
}

/* Event Poster Design - Compact & Responsive */
.event-poster {
    background: linear-gradient(135deg, #9e5434 0%, #8a4a2f 50%, #9e5434 100%);
    color: #fff;
    padding: 30px 30px 25px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    position: relative;
    overflow: hidden;
    max-height: 90vh;
}

/* Decorative background element */
.event-poster::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    pointer-events: none;
}

.event-poster::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 350px;
    height: 350px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

/* Header Section */
.event-header {
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
}

.event-year {
    font-size: 40px;
    font-weight: 900;
    letter-spacing: 0.05em;
    margin: 0 0 5px 0;
    text-transform: uppercase;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    line-height: 1;
}

.event-studio {
    font-size: 44px;
    font-weight: 900;
    letter-spacing: 0.02em;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    line-height: 1;
}

.event-subtitle {
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
    opacity: 0.95;
    font-weight: 400;
}

.event-date {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
    margin: 10px 0 15px 0;
    letter-spacing: 2px;
}

/* Schedule Section */
.event-schedule {
    background: rgba(237, 232, 204, 0.15);
    padding: 20px 20px;
    border-radius: 8px;
    margin: 15px 0;
    position: relative;
    z-index: 1;
}

.schedule-title {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.05em;
    margin: 0 0 12px 0;
    color: #ede8cc;
}

.class-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.class-item {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 5px 0;
    text-align: center;
}

/* Footer Section */
.event-footer {
    position: relative;
    z-index: 1;
    margin-top: 15px;
}

.event-refreshments {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 15px 0;
    letter-spacing: 0.03em;
}

.event-tagline {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Mobile optimization - Tablet */
@media (max-width: 768px) {
    .event-popup-content {
        margin: 10px;
    }
    
    .modal-lg {
        max-width: calc(100% - 20px);
    }
    
    .event-poster {
        padding: 25px 20px 20px 20px;
    }
    
    .event-header {
        margin-bottom: 15px;
    }
    
    .event-year {
        font-size: 32px;
        margin-bottom: 4px;
    }
    
    .event-studio {
        font-size: 36px;
        margin-bottom: 12px;
    }
    
    .event-subtitle {
        font-size: 13px;
        line-height: 1.4;
    }
        .event-date {
        font-size: 24px;
        margin: 8px 0 12px 0;
    }
        .event-schedule {
        padding: 15px;
        margin: 12px 0;
    }
    
    .schedule-title {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .class-item {
        font-size: 15px;
        padding: 4px 0;
        padding-left: 12px;
        
    
    .event-footer {
        margin-top: 12px;
    }
    
    .event-refreshments {
        font-size: 13px;
        line-height: 1.3;
        margin-bottom: 12px;
    }
    
    .event-tagline {
        font-size: 14px;
        line-height: 1.3;
    }
    
    .event-popup-close {
        width: 32px;
        height: 32px;
        top: 8px;
        right: 8px;
    }
}

/* Mobile optimization - Phone */
@media (max-width: 576px) {
    .event-popup-content {
        margin: 5px;
        max-height: 95vh;
    }
    
    .modal-lg {
        max-width: calc(100% - 10px);
    }
    
    .event-poster {
        padding: 20px 15px 15px 15px;
        max-height: 95vh;
    }
    
    .event-header {
        margin-bottom: 12px;
    }
    
    .event-year {
        font-size: 28px;
        margin-bottom: 3px;
    }
    
    .event-studio {
        font-size: 32px;
        margin-bottom: 10px;
    }
    
    .event-subtitle {
        font-size: 12px;
        line-height: 1.35;
    }
        .event-date {
        font-size: 22px;
        margin: 6px 0 10px 0;
    }
        .event-schedule {
        padding: 12px;
        margin: 10px 0;
    }
    
    .schedule-title {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    .class-list {
        gap: 5px;
    }
    
    .class-item {
        font-size: 13px;
        padding: 3px 0;
        padding-left: 10px;
    
    .event-footer {
        margin-top: 10px;
    }
    
    .event-refreshments {
        font-size: 12px;
        line-height: 1.25;
        margin-bottom: 10px;
    }
    
    .event-tagline {
        font-size: 13px;
        line-height: 1.25;
    }
    
    .event-popup-close {
        width: 30px;
        height: 30px;
        top: 6px;
        right: 6px;
    }
}

/* Extra small phones */
@media (max-height: 700px) {
    .event-poster {
        padding: 15px 15px 12px 15px;
    }
    
    .event-year {
        font-size: 24px;
    }
    
    .event-studio {
        font-size: 28px;
        margin-bottom: 8px;
    }
    
    .event-subtitle {
        font-size: 11px;
    }
    
    .event-date {
        font-size: 18px;
        margin: 4px 0 6px 0;
    }
    
    .event-header {
        margin-bottom: 10px;
    }
    
    .event-schedule {
        padding: 10px;
        margin: 8px 0;
    }
    
    .schedule-title {
        font-size: 11px;
        margin-bottom: 6px;
    }
    
    .class-list {
        gap: 4px;
    }
    
    .class-item {
        font-size: 12px;
        padding: 2px 0;
    }
    
    .event-footer {
        margin-top: 8px;
    }
    
    .event-refreshments {
        font-size: 11px;
        margin-bottom: 8px;
    }
    
    .event-tagline {
        font-size: 12px;
    }
}

/* Animation for modal appearance */
#anniversaryEventModal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
}

#anniversaryEventModal.show .modal-dialog {
    transform: scale(1);
}
