/* ===================================
   CHARACTER FILE PAGE STYLES
   =================================== */

.character-file {
    padding: 120px 2rem 4rem;
    background: linear-gradient(135deg, var(--rich-black) 0%, var(--dark-teal) 50%, var(--deep-teal) 100%);
    min-height: 100vh;
}

.file-container {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(13, 13, 13, 0.8);
    border: 2px solid rgba(201, 169, 97, 0.3);
    border-radius: 8px;
    padding: 3rem;
}

/* Character Header */
.character-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(201, 169, 97, 0.3);
}

.character-file-name {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.character-file-role {
    font-size: 1.3rem;
    color: var(--cream);
    font-style: italic;
}

/* Character Portrait with Glow Effect */
.character-portrait {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto 3rem;
}

.portrait-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(201, 169, 97, 0.4) 0%, rgba(201, 169, 97, 0.2) 40%, transparent 70%);
    border-radius: 50%;
    filter: blur(30px);
    z-index: 0;
}

.portrait-image {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    z-index: 1;
    border: 3px solid rgba(201, 169, 97, 0.5);
}

/* File Information Sections */
.file-info {
    margin-bottom: 2rem;
}

.info-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(201, 169, 97, 0.2);
}

.info-section:last-of-type {
    border-bottom: none;
}

.info-label {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--gold);
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.info-content {
    font-size: 1.1rem;
    color: var(--cream);
    line-height: 1.8;
    margin: 0;
}

/* Character Quote Box */
.character-quote-box {
    background: rgba(26, 58, 74, 0.4);
    border-left: 4px solid var(--gold);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 4px;
}

.character-quote {
    font-size: 1.3rem;
    color: var(--gold);
    font-style: italic;
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

/* Special Section */
.special-section {
    background: rgba(26, 58, 74, 0.3);
    border: 1px solid rgba(201, 169, 97, 0.3);
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.special-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.special-desc {
    font-size: 1rem;
    color: var(--cream);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.special-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--gold);
    color: var(--rich-black);
    border: 2px solid var(--gold);
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.special-button:hover {
    background: transparent;
    color: var(--gold);
}

/* Special Section Image (for Ellis's Field Guide) */
.special-image {
    max-width: 300px;
    margin: 0 auto 1.5rem;
}

.special-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Related Characters Section */
.related-section {
    margin: 3rem 0 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(201, 169, 97, 0.3);
}

.related-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 1rem;
    text-align: center;
}

.related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.related-link {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: rgba(26, 58, 74, 0.3);
    color: var(--cream);
    border: 1px solid rgba(201, 169, 97, 0.3);
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.related-link:hover {
    background: rgba(201, 169, 97, 0.2);
    border-color: var(--gold);
    color: var(--gold);
}

/* Back Links */
.back-links {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(201, 169, 97, 0.2);
}

.btn-link {
    color: var(--gold);
    text-decoration: none;
    font-size: 1rem;
    transition: opacity 0.3s ease;
}

.btn-link:hover {
    opacity: 0.7;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
    .character-file {
        padding: 100px 1.5rem 3rem;
    }

    .file-container {
        padding: 2rem 1.5rem;
    }

    .character-file-name {
        font-size: 2.2rem;
    }

    .character-file-role {
        font-size: 1.1rem;
    }

    .character-portrait {
        width: 300px;
        height: 300px;
    }

    .portrait-glow {
        width: 350px;
        height: 350px;
    }

    .info-label {
        font-size: 1.1rem;
    }

    .info-content {
        font-size: 1rem;
    }

    .character-quote {
        font-size: 1.1rem;
    }

    .back-links {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .related-links {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .character-file-name {
        font-size: 1.8rem;
    }

    .character-portrait {
        width: 250px;
        height: 250px;
    }

    .portrait-glow {
        width: 300px;
        height: 300px;
    }

    .special-button {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }
}
