/* Character Library Styles */

.site-nav {
    position: fixed;
    top: 28px;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(10, 10, 15, 0.95);
    border-bottom: 1px solid rgba(255, 26, 26, 0.3);
    backdrop-filter: blur(10px);
}

.nav-logo {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-red);
    text-decoration: none;
    text-shadow: 0 0 10px var(--primary-red);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-family: 'Special Elite', monospace;
    color: var(--text-secondary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-red);
    border-bottom-color: var(--primary-red);
    text-shadow: 0 0 10px rgba(255, 26, 26, 0.5);
}

/* Library Container */
.library-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 2rem 2rem;
    position: relative;
    z-index: 1;
}

.library-header {
    text-align: center;
    margin-bottom: 4rem;
    padding-top: 2rem;
}

.library-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--primary-red);
    text-shadow: 
        0 0 10px var(--primary-red),
        0 0 20px var(--primary-red),
        0 0 40px var(--dark-red);
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.library-subtitle {
    font-family: 'Special Elite', monospace;
    font-size: 1.2rem;
    color: var(--text-secondary);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.library-intro {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Character Grid */
.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.character-card {
    background: linear-gradient(145deg, rgba(30, 25, 45, 0.9), rgba(15, 12, 25, 0.95));
    border: 1px solid rgba(255, 26, 26, 0.2);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.character-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-red);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(255, 26, 26, 0.2);
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Card Icon (replaces image) */
.card-icon-wrapper {
    position: relative;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(20, 15, 30, 0.9), rgba(10, 8, 15, 0.95));
}

.card-icon {
    font-family: 'Cinzel', serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-red);
    text-shadow: 0 0 30px var(--primary-red);
    transition: all 0.3s ease;
}

.character-card:hover .card-icon {
    transform: scale(1.1);
    text-shadow: 0 0 50px var(--primary-red);
}

.card-content {
    padding: 1.5rem;
    position: relative;
}

.card-name {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--primary-red);
    margin-bottom: 0.25rem;
    text-shadow: 0 0 10px rgba(255, 26, 26, 0.3);
}

.card-alias {
    font-family: 'Special Elite', monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}

.card-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.card-cta {
    display: inline-block;
    font-family: 'Special Elite', monospace;
    font-size: 0.9rem;
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

.character-card:hover .card-cta {
    text-shadow: 0 0 10px var(--primary-red);
    transform: translateX(5px);
}

/* Library CTA */
.library-cta {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(145deg, rgba(30, 25, 45, 0.8), rgba(15, 12, 25, 0.9));
    border: 1px solid rgba(255, 26, 26, 0.3);
    border-radius: 24px;
    margin-bottom: 2rem;
}

.library-cta h2 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(255, 26, 26, 0.3);
}

.library-cta p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Site Footer */
.site-footer {
    border-top: 1px solid rgba(255, 26, 26, 0.2);
    padding: 2rem;
    text-align: center;
    background: rgba(10, 10, 15, 0.8);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-disclaimer {
    font-size: 0.9rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
    font-weight: bold;
}

.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--primary-red);
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.5;
}

/* Profile Page Styles */
.profile-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 8rem 2rem 2rem;
    position: relative;
    z-index: 1;
}

.profile-header {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: start;
}

/* Profile Icon (replaces image) */
.profile-icon-wrapper {
    position: relative;
}

.profile-icon {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cinzel', serif;
    font-size: 5rem;
    font-weight: 700;
    color: var(--primary-red);
    background: linear-gradient(145deg, rgba(30, 25, 45, 0.95), rgba(15, 12, 25, 0.98));
    border-radius: 20px;
    border: 3px solid var(--primary-red);
    box-shadow: 
        0 0 20px rgba(255, 26, 26, 0.3),
        0 20px 50px rgba(0, 0, 0, 0.5),
        inset 0 0 30px rgba(255, 26, 26, 0.1);
    text-shadow: 0 0 30px var(--primary-red);
}

.profile-icon-glow {
    position: absolute;
    inset: -20px;
    border-radius: 30px;
    background: radial-gradient(circle, rgba(255, 26, 26, 0.15), transparent 70%);
    z-index: -1;
    animation: pulseGlow 3s infinite alternate;
}

.profile-info h1 {
    font-family: 'Cinzel', serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--primary-red);
    text-shadow: 
        0 0 10px var(--primary-red),
        0 0 20px var(--dark-red);
    margin-bottom: 0.5rem;
}

.profile-alias {
    font-family: 'Special Elite', monospace;
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.meta-tag {
    padding: 0.5rem 1rem;
    background: rgba(255, 26, 26, 0.15);
    border: 1px solid var(--primary-red);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.profile-intro {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.profile-section {
    background: linear-gradient(145deg, rgba(30, 25, 45, 0.8), rgba(15, 12, 25, 0.9));
    border: 1px solid rgba(255, 26, 26, 0.2);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.profile-section h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--primary-red);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 26, 26, 0.3);
}

.profile-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.profile-section p:last-child {
    margin-bottom: 0;
}

.profile-section ul {
    list-style: none;
    padding: 0;
}

.profile-section li {
    color: var(--text-secondary);
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-section li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-red);
}

.profile-section li:last-child {
    border-bottom: none;
}

.profile-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 26, 26, 0.2);
}

.profile-nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 26, 26, 0.1);
    border: 1px solid rgba(255, 26, 26, 0.3);
    border-radius: 30px;
    color: var(--text-secondary);
    text-decoration: none;
    font-family: 'Special Elite', monospace;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.profile-nav a:hover {
    background: rgba(255, 26, 26, 0.2);
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.back-to-library {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-family: 'Special Elite', monospace;
    transition: color 0.3s ease;
}

.back-to-library:hover {
    color: var(--primary-red);
}

/* FAQ Page Styles */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 8rem 2rem 2rem;
    position: relative;
    z-index: 1;
}

.faq-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 2rem;
}

.faq-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--primary-red);
    text-shadow: 
        0 0 10px var(--primary-red),
        0 0 20px var(--primary-red),
        0 0 40px var(--dark-red);
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.faq-subtitle {
    font-family: 'Special Elite', monospace;
    font-size: 1.1rem;
    color: var(--text-secondary);
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.faq-section {
    margin-bottom: 3rem;
}

.faq-section h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--primary-red);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 26, 26, 0.3);
}

.faq-item {
    background: linear-gradient(145deg, rgba(30, 25, 45, 0.8), rgba(15, 12, 25, 0.9));
    border: 1px solid rgba(255, 26, 26, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(255, 26, 26, 0.4);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.faq-question {
    font-family: 'Special Elite', monospace;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.faq-answer {
    color: var(--text-secondary);
    line-height: 1.8;
}

.faq-answer p {
    margin-bottom: 1rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.faq-answer li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
}

.faq-answer li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-red);
}

.faq-answer a {
    color: var(--primary-red);
    text-decoration: none;
    transition: all 0.3s ease;
}

.faq-answer a:hover {
    text-shadow: 0 0 10px var(--primary-red);
}

.faq-cta {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(145deg, rgba(30, 25, 45, 0.8), rgba(15, 12, 25, 0.9));
    border: 1px solid rgba(255, 26, 26, 0.3);
    border-radius: 24px;
    margin-top: 2rem;
}

.faq-cta h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
    border: none;
    padding: 0;
}

.faq-cta p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Legal Page Styles */
.legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 8rem 2rem 2rem;
    position: relative;
    z-index: 1;
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 2rem;
}

.legal-header h1 {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--primary-red);
    text-shadow: 
        0 0 10px var(--primary-red),
        0 0 20px var(--dark-red);
    margin-bottom: 1rem;
}

.legal-updated {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.legal-content {
    background: linear-gradient(145deg, rgba(30, 25, 45, 0.8), rgba(15, 12, 25, 0.9));
    border: 1px solid rgba(255, 26, 26, 0.2);
    border-radius: 20px;
    padding: 2rem;
}

.legal-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 26, 26, 0.1);
}

.legal-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.legal-section h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.legal-section h3 {
    font-family: 'Special Elite', monospace;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-section ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.legal-section li {
    color: var(--text-secondary);
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    line-height: 1.6;
}

.legal-section li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-red);
}

.legal-section a {
    color: var(--primary-red);
    text-decoration: none;
    transition: all 0.3s ease;
}

.legal-section a:hover {
    text-shadow: 0 0 10px var(--primary-red);
}

.legal-cta {
    text-align: center;
    margin-top: 2rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .site-nav {
        padding: 1rem;
        top: 28px;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .nav-links a {
        font-size: 0.8rem;
    }
    
    .library-container,
    .profile-container,
    .faq-container,
    .legal-container {
        padding: 7rem 1rem 1rem;
    }
    
    .character-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-header {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .profile-icon-wrapper {
        max-width: 200px;
        margin: 0 auto;
    }
    
    .profile-meta {
        justify-content: center;
    }
    
    .profile-nav {
        flex-direction: column;
    }
    
    .footer-nav {
        gap: 1rem;
    }
}