/* ===== CHARACTERS PAGE ===== */
.characters-page {
    min-height: 100vh;
    background: var(--bg);
}

.characters-hero {
    padding: clamp(40px, 12vw, 40px) 0 clamp(40px, 6vw, 60px);
    background: var(--bg);
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.characters-hero__title {
    font-size: clamp(42px, 8vw, 72px);
    font-weight: 800;
    color: var(--paper);
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.characters-hero__intro {
    max-width: 780px;
    margin: 0 auto;
    color: var(--muted);
    font-size: clamp(16px, 1.2vw, 18px);
    line-height: 1.7;
}

/* ===== CHARACTERS SECTION ===== */
.characters-section {
    width: 100%;
    position: relative;
    padding: 60px 0 80px;
    background-image: 
        url('https://promare-movie.com/wp-content/themes/promare-theme_v1/asset/img/top/bg-dots.png'),
        linear-gradient(135deg, rgba(147, 51, 234, 0.7) 0%, rgba(249, 115, 22, 0.7) 100%),
        url('https://iamwaar.com/assets/img/ismael-lira-final-horizontal.jpg');
    background-size: 90px, cover, cover;
    background-position: center, center, center;
    background-repeat: repeat, no-repeat, no-repeat;
    background-attachment: scroll, scroll, fixed;
    overflow-x: hidden;
}

.characters-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(189, 232, 242, 0.3);
    pointer-events: none;
}

.characters-inner {
    width: min(1200px, 92vw);
    margin: 0 auto;
    position: relative;
    overflow-x: hidden;
}

.characters-loading,
.characters-empty {
    text-align: center;
    padding: 80px 20px;
    color: #000;
    background: #ffffff;
    border: 6px solid #000;
    box-shadow: -6px -6px 0 rgba(255, 0, 0, 0.9), 6px 6px 0 rgba(0, 255, 255, 0.9);
}

.characters-loading p {
    margin: 12px 0 0;
    font-weight: 700;
}

.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border: 3px solid rgba(0, 0, 0, 0.2);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.is-hidden {
    display: none;
}

.slide-character {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.slide-item {
    display: grid;
    grid-template-columns: 1fr 1fr 350px;
    gap: 30px;
    align-items: center;
    min-height: 500px;
}

/* Thumbnails */
.thumb-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: #FFFFFF;
    padding: 10px;
    border: 6px solid #000000;
    height: 100%;
}

.thumb-column h2 {
    margin: 0;
    padding: 0;
    text-align: center;
    letter-spacing: 2px;
    font-size: 2rem;
    color: #000;
}

.anaglifo {
    text-shadow: -2px 0 0 rgba(255, 0, 0, 0.9), 2px 0 0 rgba(0, 255, 255, 0.9);
    font-weight: 900;
}

.thumb {
    margin: 0;
}

.thumb-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 750px;
    margin: 0 auto;
    padding: 0;
}

.thumb-list-item {
    width: 100px;
    margin: 0 10px 10px;
    list-style: none;
}

.thumb-list-item img {
    width: 100%;
}

.thumb-list-item a {
    display: block;
    opacity: 0.6;
    transition: opacity 0.3s;
    border-top: 2px solid red;
    border-left: 2px solid red;
    border-right: 2px solid cyan;
    border-bottom: 2px solid cyan;
}

.thumb-list-item a.active {
    opacity: 1;
}

.thumb-list-item a:hover {
    opacity: 1;
}

/* Pagination */
.pagination-arrows {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: auto;
}

.pagination-arrows button {
    background: transparent;
    color: #000000;
    border: none;
    font-size: 3rem;
    font-weight: 900;
    padding: 5px 15px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    text-shadow: -2px 0 0 rgba(255, 0, 0, 0.9), 2px 0 0 rgba(0, 255, 255, 0.9);
    transition: opacity 0.3s;
}

.pagination-arrows button:hover:not(:disabled) {
    text-shadow: -3px 0 0 rgba(255, 0, 0, 1), 5px 0 0 rgba(0, 255, 255, 1);
}

.pagination-arrows button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    text-shadow: none;
}

.page-indicator {
    font-size: 1.2rem;
    font-weight: 700;
    color: #000000;
    min-width: 60px;
    text-align: center;
}

/* Text Slide */
.text-slide {
    background: #FFFFFF;
    padding: 30px;
    border: 6px solid #000000;
    position: relative;
    box-shadow: 
        -6px -6px 0 rgba(255, 0, 0, 0.9),
        6px 6px 0 rgba(0, 255, 255, 0.9);
}

.text-slide::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 2px solid #000000;
    pointer-events: none;
}

.text-slide::after {
    content: '///';
    position: absolute;
    top: 10px;
    right: 30px;
    font-size: 2rem;
    font-weight: 900;
    color: #000;
    opacity: 0.2;
}

.text-slide h2 {
    color: #FFFFFF;
    font-size: 3rem;
    margin-bottom: 20px;
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 900;
    border: none;
    padding: 10px 15px;
    background: #000;
    display: inline-block;
    transform: skew(-5deg);
}

.text-slide p {
    color: #000000;
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.6;
    font-weight: 700;
}

.character-story {
    margin-top: 12px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 900;
    color: #000;
    background: #f5f5f5;
    border: 2px solid #000;
    padding: 6px 10px;
    display: inline-block;
    box-shadow: -2px -2px 0 rgba(255, 0, 0, 0.8), 2px 2px 0 rgba(0, 255, 255, 0.8);
}

/* Image Slide */
.image-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-slide img {
    max-width: 400px;
    width: 100%;
    height: 800px;
    object-fit: contain;
}

/* Mobile */
@media screen and (max-width: 900px) {
    .slide-item {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .thumb-column {
        order: -2;
    }

    .image-slide {
        order: -1;
    }

    .text-slide {
        order: 0;
    }

    .image-slide img {
        max-width: 300px;
        height: auto;
    }

    .thumb-list-item {
        width: 22%;
        margin: 0 1.5% 10px;
    }
}

/* Animations */
@keyframes slideOutLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-out-left {
    animation: slideOutLeft 0.4s ease-in-out forwards;
}

.slide-in-right {
    animation: slideInRight 0.4s ease-in-out forwards;
}

.slide-out-right {
    animation: slideOutRight 0.4s ease-in-out forwards;
}

.slide-in-left {
    animation: slideInLeft 0.4s ease-in-out forwards;
}
