/**
 * Calendar Shortcode CSS
 * Styles for both carousel and column displays
 */

/* Base Calendar Container */
.calendar-container {
    width: 100%;
    margin: 20px 0;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.calendar-loading {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #666;
}

.calendar-error {
    background-color: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.no-events {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 18px;
}

/* Carousel Display Styles */
.calendar-carousel {
    position: relative;
    width: 100%;
    min-height: 700px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.carousel-slide .event-description br {
	display: none;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 700px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #cb2e2f 0%, #183a68 100%);
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide .event-content {
    max-width: 800px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    color: #333;
}

.carousel-slide .event-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #2c3e50;
    line-height: 1.2;
}

.carousel-slide .event-time {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 20px;
}

.carousel-slide .event-description {
    font-size: 1.1rem;
    line-height: 1.6;
    max-height: 300px;
    overflow-y: auto;
}

/* Carousel Controls */
.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.carousel-prev,
.carousel-next {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background: white;
    border-color: white;
}

.carousel-indicator:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.7);
}

/* Column Display Styles */
.calendar-columns {
    width: 100%;
}

.events-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}

.event-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e1e1e1;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.event-card .event-content {
    padding: 25px;
}

.event-card .event-title {
    font-size: 2em;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
    line-height: 1.3;
}

.event-card .event-time {
    font-size: 1.25em;
    color: #666;
    margin-bottom: 15px;
    font-weight: 500;
}

.event-card .event-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

/* Responsive Design */
@media (min-width: 768px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
a.view-button {
    background: #b51222;
    display: inline-block;
    color: white;
    padding: 10px 50px;
    width: auto;
    margin: 1.5em 0px;
    font-weight: bold;
    letter-spacing: 2px;
}

@media (max-width: 767px) {
    .carousel-slide .event-content {
        padding: 20px;
        margin: 10px;
    }
    
    .carousel-slide .event-title {
        font-size: 1.8rem;
    }
    
    .carousel-slide .event-time {
        font-size: 1rem;
    }
    
    .carousel-controls {
        padding: 0 10px;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .event-card .event-content {
        padding: 20px;
    }
    
    .event-card .event-title {
        font-size: 1.3rem;
    }
}

/* Image handling in descriptions */
.event-description img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
}

.event-description p {
    margin-bottom: 15px;
    font-size: 1.5em;
}

.event-description ul,
.event-description ol {
    padding-left: 20px;
    margin-bottom: 15px;
}



/* Animation classes */
.fadeIn {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Loading animation */
.calendar-loading {
    position: relative;
}

.calendar-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}
.carousel-slide img {
    float: left;
    max-width: 40%;
    margin-bottom: 20px;
}
