/* Chromatic Profile Page Styles */

.chromatic-main {
    min-height: calc(100vh - 80px);
    margin-top: 80px;
    background: var(--darker-bg);
    position: relative;
    overflow-x: hidden;
}

/* Hero Section */
.chromatic-hero {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.4;
}

.hero-image {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    z-index: 1;
}

.hero-image-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.1);
    clip-path: polygon(
        20px 0%,
        calc(100% - 20px) 0%,
        100% 20px,
        100% calc(100% - 20px),
        calc(100% - 20px) 100%,
        20px 100%,
        0% calc(100% - 20px),
        0% 20px
    );
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Lithian Full-Width Hero */
.lithian-hero {
    position: relative;
    max-width: 100%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60vh;
    min-height: 500px;
}

.lithian-hero .hero-content {
    z-index: 2;
    text-align: center;
    align-items: center;
}

.hero-traits-overlay {
    position: absolute;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 400px;
}

.hero-trait-card {
    max-width: clamp(200px, 18vw, 280px);
    min-width: 0;
    flex: 1 1 auto;
    padding: clamp(0.75rem, 1vw, 1rem);
    font-size: clamp(0.75rem, 0.9vw, 0.9rem);
}

.hero-trait-card .trait-category-title {
    font-size: clamp(0.95rem, 1.1vw, 1.1rem);
    margin-bottom: clamp(0.75rem, 1vw, 1rem);
    padding-bottom: clamp(0.4rem, 0.5vw, 0.5rem);
}

.hero-trait-card .trait-name {
    font-size: clamp(0.7rem, 0.85vw, 0.85rem);
}

.hero-trait-card .trait-desc {
    font-size: clamp(0.65rem, 0.8vw, 0.8rem);
    line-height: 1.4;
}

.hero-trait-card .trait-item {
    margin-bottom: clamp(0.75rem, 1vw, 1rem);
}

.hero-background-wide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    z-index: 0;
}

.hero-background-jahn {
    object-position: center 80%;
}

.hero-background-ivory {
    object-position: center 75%;
}

.hero-background-zane {
    object-position: center 80%;
}

.hero-background-contain {
    object-fit: contain;
}

.rhea-gradient-bg {
    transform: scaleX(-1);
}

.lithian-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 1;
}

.rhea-hero::after {
    display: none;
}

.varek-hero::after {
    display: none;
}

.jahn-hero::after {
    display: none;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.variant-title {
    font-family: 'Heliosext', sans-serif;
    font-size: 3rem;
    font-weight: bold;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.variant-subtitle {
    font-family: 'Hudson', sans-serif;
    font-size: 1rem;
    color: var(--text-light);
    text-align: center;
    letter-spacing: 0.1em;
}

/* Section Divider */
.section-divider {
    width: 100%;
    text-align: center;
    margin: 4rem 0 2rem;
    position: relative;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.divider-label {
    background: var(--darker-bg);
    padding: 0 2rem;
    color: var(--text-white);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-family: 'Hudson', sans-serif;
    position: relative;
    z-index: 1;
}

/* Description Section */
.description-section {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding: 0 2rem;
}

.description-section .section-divider {
    margin: 2rem 0 2rem;
}

.description-content {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem;
    clip-path: polygon(
        20px 0%,
        calc(100% - 20px) 0%,
        100% 20px,
        100% calc(100% - 20px),
        calc(100% - 20px) 100%,
        20px 100%,
        0% calc(100% - 20px),
        0% 20px
    );
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.description-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(192, 49, 78, 0.05) 0%,
        transparent 50%,
        rgba(66, 133, 244, 0.05) 100%
    );
    pointer-events: none;
    z-index: 0;
}

.description-text {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.description-text:last-child {
    margin-bottom: 0;
}

/* Gallery Section */
.gallery-section {
    max-width: 100%;
    margin: 2rem auto 0;
    padding: 0;
    width: 100%;
}

.gallery-section .section-divider {
    max-width: 1400px;
    margin: 2rem auto 2rem;
    padding: 0 2rem;
}

.governance-section {
    max-width: 100%;
    margin: 0;
    padding: 2rem 0;
    width: 100%;
    background: #000;
}

.governance-section .section-divider {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.gallery-single-image {
    position: relative;
    width: 100%;
    margin-bottom: 0;
}

.gallery-background-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.rhea-traits-gradient {
    transform: scaleX(-1);
}

.rhea-traits-bg .gallery-large-image {
    position: relative;
    z-index: 1;
}

.gallery-large-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.aquatic-cropped {
    clip-path: inset(2px);
}

.gallery-traits-overlay {
    position: absolute;
    top: 50%;
    right: 2%;
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    flex-direction: row;
    gap: clamp(0.5rem, 1vw, 1rem);
    max-width: 60%;
    width: auto;
    justify-content: flex-end;
}

.verdant-traits-left,
.aquatic-traits-left,
.sara-traits-left,
.kai-traits-left,
.refi-traits-left {
    right: auto;
    left: 2%;
    justify-content: flex-start;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    clip-path: polygon(
        15px 0%,
        calc(100% - 15px) 0%,
        100% 15px,
        100% calc(100% - 15px),
        calc(100% - 15px) 100%,
        15px 100%,
        0% calc(100% - 15px),
        0% 15px
    );
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
}

.gallery-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

/* Characters Section */
.characters-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.characters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.character-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    clip-path: polygon(
        20px 0%,
        calc(100% - 20px) 0%,
        100% 20px,
        100% calc(100% - 20px),
        calc(100% - 20px) 100%,
        20px 100%,
        0% calc(100% - 20px),
        0% 20px
    );
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.character-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.character-image {
    width: 200px;
    height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    clip-path: polygon(
        10px 0%,
        calc(100% - 10px) 0%,
        100% 10px,
        100% calc(100% - 10px),
        calc(100% - 10px) 100%,
        10px 100%,
        0% calc(100% - 10px),
        0% 10px
    );
}

.character-name {
    font-family: 'Heliosext', sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.character-title {
    font-family: 'Hudson', sans-serif;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Traits Section */
.traits-section {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.traits-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.trait-category {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    clip-path: polygon(
        20px 0%,
        calc(100% - 20px) 0%,
        100% 20px,
        100% calc(100% - 20px),
        calc(100% - 20px) 100%,
        20px 100%,
        0% calc(100% - 20px),
        0% 20px
    );
}

.trait-category-title {
    font-family: 'Heliosext', sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.trait-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.trait-item {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.trait-item:last-child {
    margin-bottom: 0;
}

.trait-name {
    font-family: 'Heliosext', sans-serif;
    font-size: 1rem;
    font-weight: bold;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.trait-desc {
    font-family: 'Hudson', sans-serif;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Info Sections */
.info-sections {
    max-width: 100%;
    margin: 0;
    padding: 0 2rem 4rem;
    position: relative;
    background-image: url('images/lithian woman.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-start;
    min-height: 600px;
}

.arcadian-info-no-bg {
    background-image: none;
}

.paragon-statue-bg {
    background-image: url('images/paragon statue.png') !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.chromatic-statue-bg {
    background-image: url('images/chromatic statue.png') !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.verdant-statue-bg {
    background-image: url('images/verdant statue.png') !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.solari-statue-bg {
    background-image: url('images/solari statue.png') !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.kindred-statue-bg {
    background-image: url('images/tetris.png') !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.jahn-statue-bg {
    background-image: url('images/kindred statue.png') !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.varek-clon-statue-bg {
    background-image: url('images/solari statue.png') !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.luna-kade-statue-bg {
    background-image: url('images/convergent 2.png') !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.rhea-voss-statue-bg {
    background-image: url('images/aquatic statue.png') !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.kael-drax-statue-bg {
    background-image: url('images/lithian woman.png') !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.dr-saphra-yune-statue-bg {
    background-image: url('images/verdant statue.png') !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.ivory-vale-statue-bg {
    background-image: url('images/chromatic statue.png') !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.kindred-variant-statue-bg {
    background-image: url('images/kindred statue.png') !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.aquatic-statue-bg {
    background-image: url('images/aquatic statue.png') !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.info-sections::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

.info-sections .info-grid {
    position: relative;
    z-index: 1;
    max-width: 975px;
    width: 100%;
    margin: 8rem 0 0 0;
    margin-right: auto;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    min-width: 300px;
    clip-path: polygon(
        15px 0%,
        calc(100% - 15px) 0%,
        100% 15px,
        100% calc(100% - 15px),
        calc(100% - 15px) 100%,
        15px 100%,
        0% calc(100% - 15px),
        0% 15px
    );
}

.info-title {
    font-family: 'Heliosext', sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    font-family: 'Hudson', sans-serif;
    font-size: 0.95rem;
    color: var(--text-light);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-list li:last-child {
    border-bottom: none;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .gallery-traits-overlay {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        max-width: 100%;
        margin-top: 2rem;
        padding: 0 2rem;
        justify-content: center;
    }
}

@media (max-width: 1024px) {
    .traits-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid,
    .characters-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .traits-container {
        grid-template-columns: 1fr;
    }
    
    .chromatic-hero {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1rem;
    }
    
    .lithian-hero {
        height: 50vh;
        min-height: 400px;
    }
    
    .hero-traits-overlay {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        max-width: 100%;
        padding: 2rem 1rem;
    }
    
    .gallery-traits-overlay {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        max-width: 100%;
        padding: 2rem 1rem;
    }
    
    .hero-image {
        height: 400px;
    }
    
    .hero-content {
        align-items: center;
        text-align: center;
    }
    
    .variant-title {
        font-size: 2.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .description-section,
    .traits-section,
    .info-sections {
        padding: 0 1rem;
    }
    
    .gallery-section {
        padding: 0;
    }
    
    .gallery-section .section-divider {
        padding: 0 1rem;
    }
    
    .governance-section .section-divider {
        padding: 0 1rem;
    }
}

