/* Bootstrap-Style Carousel for Theatre Shows */
/* Namespace: bc-* (Bootstrap Carousel) */

/* === MAIN CAROUSEL CONTAINER === */
.bc-carousel {
    position: relative;
    width: 100%;
    margin: 2rem 0;
}

.bc-carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0.75rem;
    background: white;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.bc-carousel-track {
    display: flex;
    transition: transform 0.6s ease-in-out;
    will-change: transform;
}

/* === CAROUSEL ITEMS === */
.bc-carousel-item {
    position: relative;
    display: none;
    width: 100%;
    min-height: 400px;
}

.bc-carousel-item.active {
    display: flex;
    gap: 1rem;
    padding: 1rem;
}

/* === PREMIUM SHOW CARDS === */
.bc-show-card {
    flex: 1;
    position: relative;
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.07),
        0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.bc-show-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 25px rgba(0, 0, 0, 0.1),
        0 10px 10px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

/* === SHOW CARD IMAGE === */
.bc-card-img-top {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.bc-card-img-fallback {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    font-weight: bold;
}

/* === PREMIUM BADGE/RIBBON === */
.bc-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 0.375rem;
    z-index: 10;
    letter-spacing: 0.05em;
    box-shadow: 
        0 4px 12px rgba(220, 38, 38, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    animation: bc-badge-glow 2s ease-in-out infinite alternate;
}

@keyframes bc-badge-glow {
    0% {
        box-shadow: 
            0 4px 12px rgba(220, 38, 38, 0.3),
            0 0 0 1px rgba(255, 255, 255, 0.1);
    }
    100% {
        box-shadow: 
            0 6px 20px rgba(220, 38, 38, 0.4),
            0 0 0 1px rgba(255, 255, 255, 0.2),
            0 0 20px rgba(220, 38, 38, 0.2);
    }
}

/* Special badge for limited time offers */
.bc-badge.bc-badge-urgent {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    animation: bc-badge-pulse 1.5s ease-in-out infinite;
}

@keyframes bc-badge-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 
            0 4px 12px rgba(245, 158, 11, 0.3),
            0 0 0 1px rgba(255, 255, 255, 0.1);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 
            0 6px 20px rgba(245, 158, 11, 0.5),
            0 0 0 1px rgba(255, 255, 255, 0.2),
            0 0 25px rgba(245, 158, 11, 0.3);
    }
}

/* === PREMIUM CARD BODY === */
.bc-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 160px;
    background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
}

.bc-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
    line-height: 1.2;
    letter-spacing: -0.025em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.bc-card-text {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
    flex-grow: 1;
    line-height: 1.4;
    font-weight: 500;
}

.bc-card-text.bc-offer-text {
    color: #dc2626;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin-bottom: 0.75rem;
    animation: bc-text-highlight 3s ease-in-out infinite;
}

@keyframes bc-text-highlight {
    0%, 100% {
        color: #dc2626;
        text-shadow: 0 0 5px rgba(220, 38, 38, 0.2);
    }
    50% {
        color: #b91c1c;
        text-shadow: 0 0 10px rgba(220, 38, 38, 0.3);
    }
}

.bc-price {
    font-size: 1.125rem;
    color: #059669;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bc-price::before {
    content: '💷';
    font-size: 1rem;
    opacity: 0.8;
}

.bc-price-original {
    font-size: 0.875rem;
    color: #9ca3af;
    text-decoration: line-through;
    font-weight: 400;
    margin-left: 0.5rem;
}

.bc-price-save {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin-left: auto;
}

/* === PREMIUM CALL TO ACTION BUTTON === */
.bc-btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.bc-btn-primary {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    box-shadow: 
        0 4px 12px rgba(220, 38, 38, 0.3),
        0 0 0 1px rgba(220, 38, 38, 0.2);
}

.bc-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.bc-btn-primary:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 8px 25px rgba(220, 38, 38, 0.4),
        0 0 0 1px rgba(220, 38, 38, 0.3);
}

.bc-btn-primary:hover::before {
    left: 100%;
}

.bc-btn-primary:active {
    transform: translateY(0) scale(0.98);
}

/* Special urgent button style */
.bc-btn-urgent {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    animation: bc-btn-glow 2s ease-in-out infinite alternate;
}

.bc-btn-urgent:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 
        0 12px 30px rgba(245, 158, 11, 0.5),
        0 0 0 1px rgba(245, 158, 11, 0.3);
}

@keyframes bc-btn-glow {
    0% {
        box-shadow: 
            0 4px 12px rgba(245, 158, 11, 0.3),
            0 0 0 1px rgba(245, 158, 11, 0.2);
    }
    100% {
        box-shadow: 
            0 6px 20px rgba(245, 158, 11, 0.4),
            0 0 0 1px rgba(245, 158, 11, 0.3),
            0 0 20px rgba(245, 158, 11, 0.2);
    }
}

/* === NAVIGATION CONTROLS === */
.bc-carousel-control-prev,
.bc-carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    text-decoration: none;
    font-size: 1.25rem;
    z-index: 20;
    transition: all 0.15s ease-in-out;
    cursor: pointer;
}

.bc-carousel-control-prev:hover,
.bc-carousel-control-next:hover {
    background-color: white;
    color: #1f2937;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
    transform: translateY(-50%) scale(1.05);
}

.bc-carousel-control-prev {
    left: -1.5rem;
}

.bc-carousel-control-next {
    right: -1.5rem;
}

.bc-carousel-control-prev-icon,
.bc-carousel-control-next-icon {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
}

.bc-carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23374151'%3e%3cpath fill-rule='evenodd' d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

.bc-carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23374151'%3e%3cpath fill-rule='evenodd' d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* === INDICATORS === */
.bc-carousel-indicators {
    position: absolute;
    bottom: -2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.bc-carousel-indicators [data-bc-slide-to] {
    width: 0.75rem;
    height: 0.75rem;
    background-color: rgba(156, 163, 175, 0.5);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.bc-carousel-indicators [data-bc-slide-to]:hover {
    background-color: rgba(156, 163, 175, 0.8);
    transform: scale(1.1);
}

.bc-carousel-indicators .active {
    background-color: #dc2626;
    transform: scale(1.2);
}

/* === RESPONSIVE DESIGN === */

/* Large Desktop */
@media (min-width: 1200px) {
    .bc-carousel-item.active {
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .bc-show-card {
        max-width: none;
    }
}

/* Desktop */
@media (min-width: 992px) and (max-width: 1199px) {
    .bc-card-img-top,
    .bc-card-img-fallback {
        height: 220px;
    }
    
    .bc-card-body {
        padding: 1.25rem;
    }
}

/* Tablet */
@media (max-width: 991px) {
    .bc-carousel-item.active {
        flex-direction: row;
        gap: 0.75rem;
        padding: 0.75rem;
    }
    
    .bc-show-card {
        min-width: calc(50% - 0.375rem);
    }
    
    .bc-show-card:nth-child(3) {
        display: none;
    }
    
    .bc-card-img-top,
    .bc-card-img-fallback {
        height: 200px;
    }
    
    .bc-carousel-control-prev,
    .bc-carousel-control-next {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .bc-carousel-control-prev {
        left: -1.25rem;
    }
    
    .bc-carousel-control-next {
        right: -1.25rem;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .bc-carousel-item.active {
        flex-direction: column;
        gap: 0;
        padding: 0;
    }
    
    .bc-show-card {
        min-width: 100%;
        margin-bottom: 1rem;
    }
    
    .bc-show-card:nth-child(2),
    .bc-show-card:nth-child(3) {
        display: none;
    }
    
    .bc-card-img-top,
    .bc-card-img-fallback {
        height: 180px;
    }
    
    .bc-carousel-control-prev,
    .bc-carousel-control-next {
        display: none;
    }
    
    .bc-carousel-indicators {
        bottom: -2rem;
    }
}

/* === LOADING STATES === */
.bc-card-img-top.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: bc-shimmer 1.5s infinite;
}

@keyframes bc-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.bc-card-img-top.error {
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 0.875rem;
}

.bc-card-img-top.error::after {
    content: '🖼️ Image unavailable';
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
    .bc-carousel-track,
    .bc-show-card,
    .bc-btn,
    .bc-carousel-control-prev,
    .bc-carousel-control-next,
    .bc-carousel-indicators [data-bc-slide-to] {
        transition: none;
    }
    
    .bc-card-img-top.loading {
        animation: none;
    }
}

/* === FOCUS STYLES === */
.bc-carousel-control-prev:focus,
.bc-carousel-control-next:focus,
.bc-carousel-indicators [data-bc-slide-to]:focus,
.bc-btn:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* === PRINT STYLES === */
@media print {
    .bc-carousel-control-prev,
    .bc-carousel-control-next,
    .bc-carousel-indicators {
        display: none;
    }
    
    .bc-carousel-item {
        display: flex !important;
    }
}
