/* Character Page - Image Slider and Audio Player Styles */

.image-slider-container {
    position: relative;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
}

.image-slider {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    background: #f0f0f0;
}

.slider-track {
    display: flex;
    transition: transform 0.3s ease;
    height: 100%;
}

.slider-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
}

.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
}

.slider-placeholder svg {
    width: 48px;
    height: 48px;
    color: #adb5bd;
}

.back-button-overlay {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 10;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.back-button-overlay svg {
    width: 20px;
    height: 20px;
    color: #333;
}

.slider-indicators {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.slider-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s;
    cursor: pointer;
}

.slider-indicator.active {
    background: white;
    transform: scale(1.2);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.slider-arrow svg {
    width: 20px;
    height: 20px;
    color: #333;
}

.slider-arrow-left {
    left: 12px;
}

.slider-arrow-right {
    right: 12px;
}

.slider-arrow:hover {
    background: white;
}

/* Slide Audio Player */
.slide-audio-player {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.95);
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    box-sizing: border-box;
}

.slide-play-button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #76d7c4 0%, #5cbfad 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(118, 215, 196, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.slide-play-button:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(118, 215, 196, 0.6);
}

.slide-play-icon {
    width: 0;
    height: 0;
    border-left: 12px solid white;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    margin-left: 3px;
}

.slide-play-icon.playing {
    border: none;
    width: 12px;
    height: 14px;
    margin-left: 0;
    background: linear-gradient(to right,
            white 0%, white 35%,
            transparent 35%, transparent 65%,
            white 65%, white 100%);
}

.slide-progress {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.slide-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.slide-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #76d7c4 0%, #5cbfad 100%);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}

.slide-time {
    font-size: 12px;
    color: #a0a0a0;
    text-align: right;
    font-family: monospace;
}

.slide-audio-player audio {
    display: none;
}

/* Mobile Responsive Styles */
@media (max-width: 480px) {
    .slider-arrow {
        width: 32px;
        height: 32px;
        opacity: 0.7;
    }

    .slider-arrow svg {
        width: 16px;
        height: 16px;
    }

    .slider-arrow-left {
        left: 8px;
    }

    .slider-arrow-right {
        right: 8px;
    }

    .back-button-overlay {
        top: 12px;
        left: 12px;
        width: 32px;
        height: 32px;
    }

    .back-button-overlay svg {
        width: 18px;
        height: 18px;
    }

    .slider-indicators {
        bottom: 8px;
        gap: 5px;
    }

    .slider-indicator {
        width: 6px;
        height: 6px;
    }

    .slide-audio-player {
        padding: 12px 16px;
        gap: 12px;
    }

    .slide-play-button {
        width: 40px;
        height: 40px;
    }

    .slide-play-icon {
        border-left-width: 10px;
        border-top-width: 6px;
        border-bottom-width: 6px;
    }

    .slide-play-icon.playing {
        width: 10px;
        height: 12px;
    }

    .slide-time {
        font-size: 11px;
    }
}

@media (max-width: 360px) {
    .slider-arrow {
        display: none;
    }

    .slide-audio-player {
        padding: 10px 12px;
        gap: 10px;
    }

    .slide-play-button {
        width: 36px;
        height: 36px;
    }
}
