/* ==================== CHARACTERS PAGE STYLES ==================== */

/* Characters Hero */
.characters-hero {
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(13, 13, 13, 0.95), rgba(26, 26, 46, 0.9)),
        url('../assets/images/characters-hero-bg.jpg') center/cover;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-characters-preview {
    max-width: 600px;
    margin: 0 auto;
}

.hero-characters-preview img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(143, 188, 63, 0.3);
}

@media (max-width: 768px) {
    .hero-characters-preview {
        max-width: 100%;
    }
    
    .hero-characters-preview img {
        max-height: 300px;
    }
}

@keyframes floatCharacters {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Characters Intro */
.characters-intro {
    background: var(--darker-bg);
}

/* Main Characters Section */
.main-characters {
    background: var(--dark-bg);
}

.character-section {
    padding: 80px 0;
    position: relative;
}

.character-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(143, 188, 63, 0.3), transparent);
}

.character-section:last-child::after {
    display: none;
}

/* 3D Character Card */
.character-card-3d {
    perspective: 1000px;
    position: relative;
}

.card-3d-wrapper {
    position: relative;
    width: 100%;
    padding-top: 120%;
    /* Aspect ratio */
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.character-card-3d:hover .card-3d-wrapper {
    transform: rotateY(180deg);
}

.card-3d {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.card-3d-front,
.card-3d-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 30px;
    overflow: hidden;
}

.card-3d-front {
    background: rgba(255, 255, 255, 0.05);
    border: 3px solid rgba(143, 188, 63, 0.3);
}

.card-3d-back {
    background: linear-gradient(135deg, rgba(143, 188, 63, 0.2), rgba(0, 168, 204, 0.2));
    border: 3px solid rgba(143, 188, 63, 0.5);
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Character Image */
.character-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.character-portrait {
    width: 90%;
    height: 90%;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.7));
}

.character-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    z-index: 1;
    animation: pulseGlow 3s ease-in-out infinite;
}

.amin-glow {
    background: radial-gradient(circle, rgba(143, 188, 63, 0.8), transparent);
}

.elaheh-glow {
    background: radial-gradient(circle, rgba(255, 107, 53, 0.8), transparent);
}

.sepehr-glow {
    background: radial-gradient(circle, rgba(0, 168, 204, 0.8), transparent);
}

@keyframes pulseGlow {

    0%,
    100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Character Badge */
.character-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    box-shadow: 0 5px 20px rgba(143, 188, 63, 0.5);
    z-index: 3;
}

/* Card Back Content */
.card-back-content {
    text-align: center;
    padding: 40px;
}

.card-back-icon {
    font-size: 80px;
    color: var(--primary-color);
    margin-bottom: 20px;
    filter: drop-shadow(0 5px 15px rgba(143, 188, 63, 0.5));
}

.card-back-content h4 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.card-back-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
}

/* Rotate Hint */
.rotate-hint {
    text-align: center;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.rotate-hint i {
    color: var(--primary-color);
    margin-left: 8px;
    animation: rotateIcon 2s linear infinite;
}

@keyframes rotateIcon {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Character Info */
.character-info {
    padding: 20px;
}

.character-name {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
}

.name-highlight {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.elaheh-color {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sepehr-color {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mystery-color {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.character-role {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    margin-top: 10px;
}

/* Character Description */
.character-description {
    background: rgba(255, 255, 255, 0.03);
    border-right: 4px solid var(--primary-color);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
}

.character-description h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 15px;
}

.character-description p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin: 0;
}

/* Character Traits */
.character-traits {
    margin-bottom: 25px;
}

.character-traits h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 15px;
}

.traits-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.trait-badge {
    background: rgba(143, 188, 63, 0.2);
    border: 2px solid rgba(143, 188, 63, 0.4);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.trait-badge:hover {
    background: rgba(143, 188, 63, 0.3);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(143, 188, 63, 0.3);
}

.elaheh-badge {
    background: rgba(255, 107, 53, 0.2);
    border-color: rgba(255, 107, 53, 0.4);
    color: var(--secondary-color);
}

.elaheh-badge:hover {
    background: rgba(255, 107, 53, 0.3);
    border-color: var(--secondary-color);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.sepehr-badge {
    background: rgba(0, 168, 204, 0.2);
    border-color: rgba(0, 168, 204, 0.4);
    color: var(--accent-color);
}

.sepehr-badge:hover {
    background: rgba(0, 168, 204, 0.3);
    border-color: var(--accent-color);
    box-shadow: 0 5px 15px rgba(0, 168, 204, 0.3);
}

/* Character Food */
.character-food {
    background: rgba(0, 168, 204, 0.1);
    border-right: 4px solid var(--accent-color);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
}

.character-food h4 {
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 15px;
}

.character-food p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin: 0;
}

/* Character Quote */
.character-quote {
    background: rgba(255, 107, 53, 0.1);
    border: 2px solid rgba(255, 107, 53, 0.3);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    position: relative;
}

.character-quote i {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 3rem;
    color: var(--secondary-color);
    opacity: 0.2;
}

.character-quote p {
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Button Variants */
.elaheh-btn {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border: none;
}

.elaheh-btn:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

.sepehr-btn {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    border: none;
}

.sepehr-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 168, 204, 0.4);
}

/* Mystery Character Styles */
.character-mystery {
    opacity: 0.8;
}

.mystery-card {
    filter: grayscale(60%) brightness(0.7);
}

.mystery-front {
    background: rgba(30, 30, 30, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
}

.mystery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 13, 13, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 4;
}

.mystery-icon {
    font-size: 100px;
    color: rgba(255, 255, 255, 0.3);
    animation: mysteryPulse 2s ease-in-out infinite;
}

@keyframes mysteryPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

.mystery-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
    margin-top: 20px;
}

.mystery-portrait {
    filter: brightness(0.3) grayscale(100%);
}

.mystery-badge {
    background: rgba(80, 80, 80, 0.5);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.mystery-back {
    background: linear-gradient(135deg, rgba(50, 50, 50, 0.9), rgba(30, 30, 30, 0.9));
    border-color: rgba(255, 255, 255, 0.2);
}

.mystery-locked {
    margin-top: 30px;
}

.mystery-locked i {
    font-size: 50px;
    color: rgba(255, 255, 255, 0.3);
}

.mystery-locked p {
    color: rgba(255, 255, 255, 0.5);
    margin-top: 10px;
}

.mystery-hint {
    color: rgba(255, 255, 255, 0.4);
}

.mystery-hint i {
    animation: none;
}

.mystery-info {
    opacity: 0.8;
}

.mystery-description {
    border-right-color: rgba(255, 255, 255, 0.3);
    background: rgba(50, 50, 50, 0.3);
}

.mystery-description h4 {
    color: rgba(255, 255, 255, 0.5);
}

/* Mystery Clues */
.mystery-clues {
    margin-bottom: 25px;
}

.mystery-clues h4 {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 700;
    margin-bottom: 20px;
}

.clues-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.clue-item {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.clue-item i {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
}

.clue-item p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 0.9rem;
}

.locked-clue {
    opacity: 0.4;
    cursor: not-allowed;
}

.mystery-quote {
    background: rgba(50, 50, 50, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.mystery-quote i {
    color: rgba(255, 255, 255, 0.2);
}

.mystery-quote p {
    color: rgba(255, 255, 255, 0.7);
}

.quote-source {
    display: block;
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    font-style: normal;
}

.mystery-warning {
    background: rgba(255, 193, 7, 0.1);
    border: 2px solid rgba(255, 193, 7, 0.3);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
}

.mystery-warning i {
    color: rgba(255, 193, 7, 0.8);
    font-size: 1.5rem;
    margin-left: 10px;
}

.mystery-warning p {
    display: inline;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.mystery-btn {
    cursor: not-allowed;
    opacity: 0.5;
}

/* Relationships Section */
.relationships-section {
    background: var(--darker-bg);
}

.relationships-diagram {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(143, 188, 63, 0.2);
    border-radius: 30px;
}

.relationship-svg {
    width: 100%;
    height: auto;
}

.center-circle {
    fill: var(--dark-bg);
    stroke: var(--primary-color);
    stroke-width: 4;
    filter: drop-shadow(0 0 20px rgba(143, 188, 63, 0.5));
}

.center-text {
    fill: var(--primary-color);
    font-size: 24px;
    font-weight: 700;
    text-anchor: middle;
    dominant-baseline: middle;
}

.char-circle {
    fill: var(--darker-bg);
    stroke-width: 3;
    transition: all 0.3s ease;
    cursor: pointer;
}

.char-circle:hover {
    filter: drop-shadow(0 0 20px currentColor);
    transform: scale(1.1);
}

.amin-circle {
    stroke: var(--primary-color);
}

.elaheh-circle {
    stroke: var(--secondary-color);
}

.sepehr-circle {
    stroke: var(--accent-color);
}

.char-text {
    fill: white;
    font-size: 20px;
    font-weight: 600;
    text-anchor: middle;
    dominant-baseline: middle;
    pointer-events: none;
}

.connection-line {
    stroke: rgba(143, 188, 63, 0.4);
    stroke-width: 2;
}

.connection-dashed {
    stroke: rgba(255, 107, 53, 0.4);
}

/* Relationship Cards */
.relationship-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(143, 188, 63, 0.2);
    border-radius: 20px;
    padding: 30px;
    height: 100%;
    transition: all 0.4s ease;
}

.relationship-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(143, 188, 63, 0.3);
}

.relationship-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.relationship-header i {
    font-size: 2rem;
    color: var(--primary-color);
}

.relationship-header h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin: 0;
}

.relationship-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin: 0;
}

.mystery-rel {
    border-color: rgba(255, 255, 255, 0.2);
    opacity: 0.7;
}

.mystery-rel:hover {
    border-color: rgba(255, 193, 7, 0.5);
    box-shadow: 0 15px 40px rgba(255, 193, 7, 0.2);
}

.mystery-rel .relationship-header i,
.mystery-rel .relationship-header h4 {
    color: rgba(255, 193, 7, 0.8);
}

/* Responsive */
@media (max-width: 768px) {
    .character-name .name-highlight {
        font-size: 2.5rem;
    }

    .card-3d-wrapper {
        padding-top: 140%;
    }

    .character-quote p {
        font-size: 1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .clues-grid {
        grid-template-columns: 1fr;
    }

    .relationships-diagram {
        padding: 20px;
    }
}

.btn-lg {
    font-size: 1.1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    color: #000;
    background-color: #ffc107;
    border-color: #ffc107;
}

.char-circle {
    transition: fill 0.3s ease, stroke 0.3s ease;
    transform-box: fill-box;
    transform-origin: center center;
}

.amin-circle:hover {
    transform: none;
    fill: #ebb2075d;
}

.elaheh-circle:hover {
    transform: none;
    fill: #eb5e075d;
}

.sepehr-circle:hover {
    transform: none;
    fill: #07a7eb5d;
}

#particles-map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.map-hero>.container {
    position: relative;
    z-index: 1;
}

.map-hero {
    background: linear-gradient(135deg, #0b0b0b 0%, #1a1a2e 100%);
    overflow: hidden;
}

/* CHARACTER PAGE TEXT COLOR FIX */
/* Add this to the end of characters.css or in a style tag */

.main-characters * {
    color: inherit;
}

.main-characters {
    color: rgba(255, 255, 255, 0.9);
}

.character-info h2,
.character-info h3,
.character-info h4,
.character-info h5,
.character-info p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.character-description p,
.character-food p,
.character-quote p {
    color: rgba(255, 255, 255, 0.85) !important;
}

.character-description h4,
.character-traits h4,
.character-food h4 {
    color: var(--primary-color) !important;
}

.trait-badge {
    color: rgba(255, 255, 255, 0.95) !important;
}

.character-role {
    color: rgba(255, 255, 255, 0.7) !important;
}

.character-section {
    margin-bottom: 100px
}

.character-name {
    font-size: 4rem;
    font-weight: 900;
    color: #ffd700;
    text-align: center;
    margin-bottom: 10px
}

.character-role {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, .7);
    text-align: center;
    margin-bottom: 50px
}

.character-card {
    background: linear-gradient(135deg, rgba(30, 30, 30, .9), rgba(20, 20, 20, .9));
    border: 2px solid rgba(143, 188, 63, .3);
    border-radius: 25px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .5)
}

.character-card img {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    margin-bottom: 30px
}

.character-icon {
    font-size: 5rem;
    color: #8fbc3f;
    margin-bottom: 20px
}

.card-title {
    font-size: 1.8rem;
    color: #8fbc3f;
    margin-bottom: 15px;
    font-weight: 700
}

.card-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, .7);
    margin-bottom: 30px
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px
}

.stat-box {
    background: rgba(20, 20, 20, .6);
    border: 2px solid rgba(143, 188, 63, .4);
    border-radius: 15px;
    padding: 20px 10px;
    text-align: center
}

.stat-value {
    font-size: 2rem;
    font-weight: 900;
    color: #8fbc3f;
    display: block
}

.stat-label {
    font-size: .9rem;
    color: rgba(255, 255, 255, .8);
    margin-top: 5px;
    display: block
}

.info-section {
    background: linear-gradient(135deg, rgba(20, 30, 20, .4), rgba(15, 25, 15, .4));
    border-right: 4px solid #8fbc3f;
    border-radius: 15px;
    padding: 25px 30px;
    margin-bottom: 20px
}

.info-section h4 {
    color: #8fbc3f;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px
}

.info-section h4 i {
    margin-left: 10px
}

.info-section p {
    color: rgba(255, 255, 255, .9);
    line-height: 1.9;
    font-size: 1.05rem;
    text-align: justify
}

.traits-section {
    margin-bottom: 20px
}

.traits-section h4 {
    color: #8fbc3f;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px
}

.traits-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px
}

.trait-badge {
    background: rgba(143, 188, 63, .2);
    border: 2px solid rgba(143, 188, 63, .5);
    color: #8fbc3f;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600
}

.trait-badge i {
    margin-left: 8px
}

.food-section {
    background: linear-gradient(135deg, rgba(0, 60, 60, .3), rgba(0, 40, 40, .3));
    border-right: 4px solid #00a8cc;
    border-radius: 15px;
    padding: 25px 30px;
    margin-bottom: 20px
}

.food-section h4 {
    color: #00a8cc;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px
}

.food-section h4 i {
    margin-left: 10px
}

.food-section p {
    color: rgba(255, 255, 255, .9);
    line-height: 1.9;
    font-size: 1.05rem;
    text-align: justify
}

.quote-section {
    background: linear-gradient(135deg, rgba(60, 30, 20, .4), rgba(40, 20, 15, .4));
    border: 2px solid rgba(255, 107, 53, .4);
    border-radius: 20px;
    padding: 30px 35px;
    position: relative;
    margin-bottom: 20px
}

.quote-icon {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 3rem;
    color: rgba(255, 107, 53, .2)
}

.quote-section p {
    font-style: italic;
    font-size: 1.3rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, .95);
    margin: 0
}

.missing-alert {
    background: rgba(255, 193, 7, .1);
    border: 2px solid #ffc107;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px
}

.missing-alert i {
    font-size: 2rem;
    color: #ffc107
}

.missing-alert strong {
    color: #ffc107;
    font-size: 1.2rem
}

.hero-characters-preview {
    max-width: 600px;
    margin: 0 auto;
}

.hero-characters-preview img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(143, 188, 63, 0.3);
}

@media (max-width: 50px) {
    .hero-characters-preview {
        max-width: 100%;
    }
    
    .hero-characters-preview img {
        max-height: 50px;
    }
}
/* Character Card - New Layout */
.character-card {
    background: linear-gradient(135deg, rgba(30, 30, 30, .9), rgba(20, 20, 20, .9));
    border: 2px solid rgba(143, 188, 63, .3);
    border-radius: 25px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Traits Container - Above Image */
.character-traits-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
    width: 100%;
}

.character-traits-top .trait-badge {
    background: rgba(143, 188, 63, .15);
    border: 2px solid rgba(143, 188, 63, .4);
    color: #8fbc3f;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.character-traits-top .trait-badge:hover {
    background: rgba(143, 188, 63, .25);
    border-color: #8fbc3f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(143, 188, 63, 0.3);
}

.character-traits-top .trait-badge i {
    margin-left: 6px;
}

/* Character Image - Centered */
.character-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 0;
}

.character-card img.character-portrait {
    width: 100%;
    max-width: 450px;
    border-radius: 20px;
    border: 3px solid rgba(143, 188, 63, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    transition: all 0.4s ease;
}

.character-card img.character-portrait:hover {
    transform: scale(1.02);
    border-color: rgba(143, 188, 63, 0.6);
    box-shadow: 0 20px 50px rgba(143, 188, 63, 0.3);
}

/* Remove old stats grid from card */
.character-card .stats-grid {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .character-traits-top {
        gap: 8px;
    }

    .character-traits-top .trait-badge {
        padding: 6px 14px;
        font-size: 0.85rem;
    }

    .character-card img.character-portrait {
        max-width: 280px;
    }

    .hero-characters-preview img {
        border-radius: 20px;
    }
}

@media (max-width: 480px) {
    .character-traits-top .trait-badge {
        padding: 5px 12px;
        font-size: 0.8rem;
    }

    .character-card img.character-portrait {
        max-width: 220px;
    }
}