/* --- CHAMS CHARACTER PAGE SPECIFIC STYLES --- */
/* --- File: chams_specific.css --- */

/* --- Simplified Header Styles (Centered Logo, No Menu) --- */
/* Ensure html and body don't cause overflow */
html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Ensure the main content wrapper doesn't cause overflow */
#main-content {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Ensure the particle container fits perfectly */
#particles-js {
    width: 100vw;
    max-width: 100%;
    left: 0;
}
.section-header {
        user-select: none; /* Prevent text selection */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    cursor: default; /* Keep default arrow cursor */
    pointer-events: none; /* Prevent any mouse interactions */
}
.simple-header-centered {
    padding: var(--spacing-md) 0;
    text-align: center;
    background-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container-centered {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.centered-logo {
    height: 60px;
    width: auto;
    transition: transform var(--transition-speed) ease;
    will-change: transform;
}

.centered-logo:hover {
    transform: scale(1.05);
}

/* --- Character Hero Section --- */
.character-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)),
        url('images/chams_hero_background.jpg') center/cover no-repeat fixed;
}

.character-hero .hero-content {
    z-index: 1;
    text-align: center;
    padding: 0 var(--spacing-md);
    width: 90%;
    max-width: 1200px;
}

.character-title {
        user-select: none; /* Prevent text selection */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    cursor: default; /* Keep default arrow cursor */
    pointer-events: none; /* Prevent any mouse interactions */
    font-size: clamp(3rem, 10vw, 6rem);
    margin-bottom: var(--spacing-xs);
    color: var(--color-text-primary);
    text-shadow: 0 0 10px rgba(255, 17, 0, 0.5);
}

.character-subtitle {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    letter-spacing: 0.2em;
    color: var(--color-accent-primary);
    text-shadow: 0 0 5px rgba(0,0,0,0.7);
}

/* --- Character Gallery --- */
.character-gallery {
    background-color: var(--color-bg-secondary);
    position: relative;
}

.character-gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(10, 10, 10, 0.3);
    backdrop-filter: blur(4px);
    z-index: -1;
    border-radius: var(--border-radius);
    margin: calc(var(--spacing-sm) * -1);
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
}

.grid-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
    background-color: var(--color-bg-tertiary);
    aspect-ratio: 1 / 1;
    transition: 
        transform var(--transition-speed-slow) ease, 
        box-shadow var(--transition-speed-slow) ease,
        opacity 0.3s ease;
    cursor: pointer;
    will-change: transform, opacity;
}

.grid-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-depth);
}

.grid-item:focus {
    outline: 2px solid var(--color-accent-primary);
    outline-offset: 2px;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-speed) ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.grid-item:hover .gallery-image {
    transform: scale(1.05);
}

/* --- Character Video --- */
.character-video {
    background-color: var(--color-bg-primary);
    position: relative;
}

.character-video::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(13, 13, 13, 0.3);
    backdrop-filter: blur(4px);
    z-index: -1;
    border-radius: var(--border-radius);
    margin: calc(var(--spacing-sm) * -1);
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-depth);
    background-color: var(--color-bg-tertiary);
    padding-bottom: 56.25%;
    height: 0;
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Character Description --- */
.character-description {
    background-color: var(--color-bg-secondary);
    position: relative;
}

.character-description::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(17, 17, 17, 0.25);
    backdrop-filter: blur(3px);
    z-index: -1;
    border-radius: var(--border-radius);
    margin: calc(var(--spacing-sm) * -1);
}

.description-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.profile-text p {
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    max-width: 75ch;
}

.profile-text p:first-child strong {
    font-size: 1.3rem;
    color: var(--color-text-primary);
    display: block;
    margin-bottom: var(--spacing-xs);
}

.process-visual {
    text-align: center;
}

.process-visual .glitch-frame {
    margin-bottom: var(--spacing-xs);
}

.caption {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--color-text-secondary);
}

@media (min-width: 768px) {
    .description-content {
        flex-direction: row;
        align-items: flex-start;
    }

    .profile-text {
        flex: 2;
    }

    .process-visual {
        flex: 1;
    }
}

/* --- Lightbox Styles --- */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 1;
    visibility: visible;
    transition: opacity var(--transition-speed) ease, visibility var(--transition-speed) ease;
    backdrop-filter: blur(10px);
}

.lightbox-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.lightbox-content {
    position: relative;
    width: 90%;
    max-width: 95vw;
    max-height: 90vh;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 50%;
    transition: color var(--transition-speed) ease, background-color var(--transition-speed) ease;
    z-index: 10001;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--color-accent-primary);
    background-color: rgba(255, 255, 255, 0.1);
    outline: 1px solid var(--color-accent-primary);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    border-radius: 50%;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-depth);
    object-fit: contain;
}

.lightbox-caption {
    margin-top: var(--spacing-sm);
    color: var(--color-text-secondary);
    font-family: var(--font-heading);
    font-size: 1rem;
    text-align: center;
    max-width: 100%;
    word-wrap: break-word;
}

/* --- Responsive Adjustments --- */
@media (max-width: 767px) {
    .character-hero {
        height: 60vh;
        min-height: 300px;
    }

    .character-title {
        font-size: clamp(2rem, 12vw, 4rem);
    }

    .character-subtitle {
        font-size: clamp(1rem, 3vw, 1.4rem);
    }

    .image-grid {
        grid-template-columns: 1fr;
    }

    .lightbox-content {
        width: 95%;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 1.5rem;
    }

    .description-content {
        flex-direction: column-reverse;
    }
}

@media (max-width: 480px) {
    .character-hero {
        height: 50vh;
        min-height: 250px;
    }

    .centered-logo {
        height: 40px;
    }
}