/* carousel.css - 遊戲活動視窗風格 */
.carousel-section {
    margin-top: 24px;
    margin-bottom: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    position: relative;
    padding: 2.5rem 0;
}



.carousel-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 38.5%;
    background: linear-gradient(135deg, #3E2723, #5D4037);
    border-radius: 20px;
    border: 5px solid var(--border-color);
    box-shadow: 
        0 10px 0 rgba(0, 0, 0, 0.2),
        inset 0 0 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.carousel-container::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 3px solid rgba(255, 158, 44, 0.3);
    border-radius: 15px;
    z-index: 1;
    pointer-events: none;
}



#mainCarousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-item {
    position: relative;
    height: 100%;
}

.carousel-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 標題說明文字 */
.carousel-caption {
    background: linear-gradient(135deg, rgba(255, 158, 44, 0.95), rgba(150, 200, 57, 0.95));
    border-radius: 15px;
    border: 3px solid var(--border-color);
    padding: 1rem;
    max-width: 500px;
    margin: 0 auto;
    bottom: 2rem;
    z-index: 2;
    box-shadow: 0 5px 0 rgba(0, 0, 0, 0.3);
}

.carousel-caption h3 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5);
    color: white;
}

.carousel-caption p {
    font-size: 1rem;
    margin-bottom: 0;
    font-weight: 600;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
    color: white;
}

/* 控制按鈕 - 遊戲按鈕風格 */
.carousel-control-prev,
.carousel-control-next {
    width: 10%;
    opacity: 1;
    z-index: 3;
}

.carousel-control-btn {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    border: 4px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: 0 5px 0 rgba(0, 0, 0, 0.3);
}

.carousel-control-btn i {
    font-size: 24px;
    color: white;
    transition: transform 0.3s ease;
    filter: drop-shadow(2px 2px 0 rgba(0,0,0,0.5));
}

.carousel-control-prev:hover .carousel-control-btn,
.carousel-control-next:hover .carousel-control-btn {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    transform: scale(1.15);
    box-shadow: 0 7px 0 rgba(0, 0, 0, 0.35);
}

.carousel-control-prev:hover .carousel-control-btn i {
    transform: translateX(-5px);
}

.carousel-control-next:hover .carousel-control-btn i {
    transform: translateX(5px);
}

.carousel-control-prev:active .carousel-control-btn,
.carousel-control-next:active .carousel-control-btn {
    transform: scale(1.05);
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3);
}

/* 指示器 - 寶石風格 */
.carousel-indicators {
    margin-bottom: 1rem;
    z-index: 2;
}

.carousel-indicators button {
    width: 50px !important;
    height: 12px !important;
    border-radius: 10px !important;
    margin: 0 8px !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.4)) !important;
    border: 2px solid var(--border-color) !important;
    opacity: 1 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.2) !important;
}

.carousel-indicators button.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    width: 70px !important;
    height: 14px !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 0 rgba(0, 0, 0, 0.3) !important;
}

.carousel-indicators button:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color)) !important;
    transform: translateY(-2px) scale(1.1);
}

/* 響應式調整 */
@media (max-width: 768px) {
    .carousel-section {
        margin-top: 62px;
        padding: 1rem 0;
    }

    .carousel-section::before {
        font-size: 1rem;
        padding: 0.4rem 1.5rem;
    }

    .carousel-container {
        border-width: 4px;
    }

    .carousel-caption {
        padding: 0.8rem;
        bottom: 1.5rem;
        border-width: 2px;
    }

    .carousel-caption h3 {
        font-size: 1.5rem;
    }

    .carousel-caption p {
        font-size: 0.9rem;
    }

    .carousel-control-btn {
        width: 45px;
        height: 45px;
        border-width: 3px;
    }

    .carousel-control-btn i {
        font-size: 18px;
    }

    .carousel-indicators {
        margin-bottom: 0.8rem;
    }

    .carousel-indicators button {
        width: 30px !important;
        height: 8px !important;
        margin: 0 5px !important;
        border-width: 2px !important;
    }

    .carousel-indicators button.active {
        width: 45px !important;
        height: 10px !important;
    }
}