/* Character Slide Section - Hollow Knight Style */
.character-slide-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

/* Dark atmospheric background */
.character-slide-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 69, 19, 0.08) 0%, transparent 50%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

/* Main container */
.character-slide-container {
    position: relative;
    z-index: 2;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Character slide wrapper */
.character-slide-wrapper {
    position: relative;
    width: 100%;
    max-width: 1400px;
    height: 80vh;
    margin: 0 auto;
    perspective: 1000px;
}

/* Individual character slide */
.character-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    opacity: 0;
    transform: translateX(100px) rotateY(15deg);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

.character-slide.active {
    opacity: 1;
    transform: translateX(0) rotateY(0);
    pointer-events: all;
}

.character-slide.prev {
    opacity: 0.3;
    transform: translateX(-100px) rotateY(-15deg) scale(0.9);
}

.character-slide.next {
    opacity: 0.3;
    transform: translateX(100px) rotateY(15deg) scale(0.9);
}

/* Character image container */
.character-slide-image {
    position: relative;
    height: 600px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.1), transparent);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.character-slide-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(212, 175, 55, 0.05) 50%,
        transparent 70%
    );
    z-index: 1;
    pointer-events: none;
}

.character-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: contrast(1.2) saturate(1.1) brightness(0.9);
    transition: all 0.6s ease;
}

.character-slide.active .character-slide-image img {
    filter: contrast(1.3) saturate(1.3) brightness(1);
}

/* Character info panel */
.character-slide-info {
    padding: 2rem;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    position: relative;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.character-slide.active .character-slide-info {
    transform: translateY(0);
}

.character-slide-info::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, rgba(212, 175, 55, 0.3), transparent, rgba(212, 175, 55, 0.3));
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.character-slide.active .character-slide-info::before {
    opacity: 1;
}

/* Character name */
.character-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    letter-spacing: 2px;
}

/* Character title */
.character-title {
    font-size: 1.2rem;
    color: rgba(212, 175, 55, 0.8);
    margin-bottom: 2rem;
    font-style: italic;
    letter-spacing: 1px;
}

/* Character description */
.character-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 2rem;
    text-align: justify;
}

/* Character stats */
.character-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.character-stat {
    background: rgba(212, 175, 55, 0.1);
    padding: 1rem;
    border-radius: 10px;
    border-left: 3px solid var(--primary-color);
    transition: all 0.3s ease;
}

.character-stat:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: translateX(5px);
}

.character-stat-label {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.character-stat-value {
    font-size: 1rem;
    color: var(--text-muted);
}

/* Navigation controls */
.character-slide-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.slide-nav-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid rgba(212, 175, 55, 0.3);
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.slide-nav-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.slide-nav-btn:active {
    transform: scale(0.95);
}

/* Slide indicators */
.character-slide-indicators {
    position: absolute;
    bottom: 6rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.slide-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.slide-indicator.active {
    background: var(--primary-color);
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

.slide-indicator:hover {
    background: rgba(212, 175, 55, 0.6);
    transform: scale(1.1);
}

/* Responsive design */
@media (max-width: 1024px) {
    .character-slide {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem;
    }
    
    .character-slide-image {
        height: 400px;
    }
    
    .character-name {
        font-size: 2.5rem;
    }
    
    .character-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .character-slide-section {
        padding: 2rem 1rem;
    }
    
    .character-slide-container {
        height: auto;
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    .character-slide-wrapper {
        height: auto;
        min-height: 80vh;
    }
    
    .character-slide-image {
        height: 300px;
    }
    
    .character-name {
        font-size: 2rem;
    }
    
    .character-description {
        font-size: 1rem;
    }
}

/* Animation keyframes */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100px) rotateY(15deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100px) rotateY(-15deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotateY(0);
    }
}

/* Floating particles effect */
.character-slide-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(212, 175, 55, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(212, 175, 55, 0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(212, 175, 55, 0.4), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(212, 175, 55, 0.2), transparent);
    background-repeat: repeat;
    background-size: 200px 150px;
    animation: float 20s linear infinite;
    pointer-events: none;
    opacity: 0.3;
}

@keyframes float {
    from {
        transform: translateY(0) translateX(0);
    }
    to {
        transform: translateY(-100px) translateX(50px);
    }
}
