/* Characters Category - Custom Styles */

/* Import base styles from root */
@import url('/styles.css');

/* Category-specific color overrides */
:root {
    /* Override accent colors for Characters theme */
    --category-primary: #00e5ff;      /* Cyan - for human/character focus */
    --category-secondary: #4dd4e8;     /* Lighter cyan */
}

/* Custom category header styling */
.category-header {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.15), rgba(0, 0, 0, 0.95));
    border-bottom: 2px solid var(--neon-cyan);
    padding: 60px 24px;
    margin-bottom: 80px;
    text-align: center;
}

.category-header h1 {
    font-family: 'Michroma', sans-serif;
    font-size: 3rem;
    background: linear-gradient(90deg, var(--neon-cyan), var(--cosmic-white));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    letter-spacing: 4px;
}

.category-header p {
    color: var(--text-gray);
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.8;
}

/* Breadcrumb styling */
.breadcrumb {
    padding: 30px 0 20px;
    font-size: 0.95rem;
    animation: fadeIn 1s ease-out;
}

.breadcrumb a {
    color: var(--neon-cyan);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 600;
}

.breadcrumb a:hover {
    color: var(--cosmic-white);
}

.breadcrumb span {
    color: var(--text-gray);
    margin: 0 12px;
}

.breadcrumb span.current {
    color: var(--cosmic-white);
    font-weight: 600;
}

/* Characters Grid */
.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 100px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* Articles Grid (alternate layout) */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 100px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* Article Card */
.article-card {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.05), rgba(0, 0, 0, 0.9));
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--neon-cyan), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.article-card:hover {
    transform: translateY(-8px);
    border-color: var(--neon-cyan);
    box-shadow: 
        0 12px 48px rgba(0, 229, 255, 0.3),
        inset 0 0 40px rgba(0, 229, 255, 0.08);
}

.article-card:hover::before {
    opacity: 0.1;
}

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

/* Article Card Image */
.article-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(0, 0, 0, 0.8));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: transform 0.4s ease;
    filter: brightness(0.8);
}

.article-card:hover .article-image img {
    transform: scale(1.05);
    filter: brightness(1);
}

/* Article Card Content */
.article-content {
    padding: 24px;
    position: relative;
    z-index: 1;
}

.article-content h3 {
    font-family: 'Michroma', sans-serif;
    font-size: 1.4rem;
    color: var(--neon-cyan);
    margin-bottom: 8px;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.article-card:hover .article-content h3 {
    color: var(--cosmic-white);
}

.article-role {
    font-size: 0.9rem;
    color: var(--neon-cyan);
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-excerpt {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
}

/* Character Card */
.character-card {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.05), rgba(0, 0, 0, 0.9));
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.character-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--neon-cyan), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.character-card:hover {
    transform: translateY(-8px);
    border-color: var(--neon-cyan);
    box-shadow: 
        0 12px 48px rgba(0, 229, 255, 0.3),
        inset 0 0 40px rgba(0, 229, 255, 0.08);
}

.character-card:hover::before {
    opacity: 0.1;
}

/* Character Card Image */
.character-card-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(0, 0, 0, 0.8));
    position: relative;
}

.character-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    filter: brightness(0.8);
}

.character-card:hover .character-card-image img {
    transform: scale(1.05);
    filter: brightness(1);
}

/* Character Card Content */
.character-card-content {
    padding: 24px;
    position: relative;
    z-index: 1;
}

.character-card-content h3 {
    margin-bottom: 8px;
}

.character-card-content h3 a {
    font-family: 'Michroma', sans-serif;
    font-size: 1.4rem;
    color: var(--neon-cyan);
    text-decoration: none;
    transition: color 0.3s ease;
    letter-spacing: 1px;
}

.character-card-content h3 a:hover {
    color: var(--cosmic-white);
}

.character-role {
    font-size: 0.9rem;
    color: var(--category-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    font-weight: 600;
}

.character-excerpt {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .category-header {
        padding: 40px 20px;
        margin-bottom: 60px;
    }

    .category-header h1 {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }

    .category-header p {
        font-size: 1rem;
    }

    .characters-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .character-card-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .category-header h1 {
        font-size: 1.8rem;
    }

    .breadcrumb {
        padding: 20px 0 15px;
        font-size: 0.85rem;
    }

    .character-card-content {
        padding: 20px;
    }

    .character-card-content h3 a {
        font-size: 1.2rem;
    }

    /* Article responsive */
    .character-portrait {
        float: none;
        margin: 0 auto 24px;
        display: block;
        max-width: 180px;
    }

    .character-title-section h1 {
        font-size: 1.8rem;
    }

    .character-meta {
        flex-direction: column;
        gap: 8px;
    }
}

/* ===================================
   CHARACTER ARTICLE PAGE STYLES
   =================================== */

/* Character Article Container */
.character-article {
    max-width: 900px;
    margin: 0 auto 80px;
    animation: fadeIn 1s ease-out 0.3s both;
}

/* Character Header with Portrait */
.character-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid rgba(0, 229, 255, 0.2);
}

.character-portrait {
    float: left;
    width: 200px;
    height: auto;
    margin: 0 24px 16px 0;
    border-radius: 8px;
    border: 2px solid var(--neon-cyan);
    box-shadow: 0 8px 32px rgba(0, 229, 255, 0.3);
}

/* Character Image (used in article headers) */
.character-image {
    float: left;
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin: 0 24px 16px 0;
    border-radius: 8px;
    border: 2px solid var(--neon-cyan);
    box-shadow: 0 8px 32px rgba(0, 229, 255, 0.3);
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.05), rgba(0, 0, 0, 0.8));
    padding: 8px;
}

.character-title-section h1 {
    font-family: 'Michroma', sans-serif;
    font-size: 2.5rem;
    background: linear-gradient(90deg, var(--neon-cyan), var(--cosmic-white));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    letter-spacing: 2px;
    line-height: 1.2;
}

.character-subtitle {
    font-size: 1.2rem;
    color: var(--dim-cyan);
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: 1px;
}

.character-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.95rem;
    color: var(--text-gray);
}

.meta-item strong {
    color: var(--neon-cyan);
}

/* Article Body */
.article-body {
    clear: both;
    padding-top: 20px;
}

.article-section {
    margin-bottom: 40px;
}

.article-section h2 {
    font-family: 'Michroma', sans-serif;
    font-size: 1.6rem;
    color: var(--neon-cyan);
    margin-bottom: 16px;
    letter-spacing: 1px;
    padding-top: 10px;
}

.article-section h3 {
    font-size: 1.3rem;
    color: var(--dim-cyan);
    margin-bottom: 12px;
    margin-top: 24px;
    font-weight: 600;
}

.article-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--cosmic-white);
    margin-bottom: 16px;
}

.article-section ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 16px;
}

.article-section ul li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--cosmic-white);
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
}

.article-section ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--neon-cyan);
    font-size: 1.2rem;
}

.article-section ul li strong {
    color: var(--neon-cyan);
}

/* Quote Section */
.quote-section blockquote {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.05), rgba(0, 0, 0, 0.8));
    border-left: 4px solid var(--neon-cyan);
    padding: 30px 40px;
    margin: 30px 0;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--cosmic-white);
    font-style: italic;
    border-radius: 0 8px 8px 0;
    position: relative;
}

.quote-section blockquote::before {
    content: '"';
    font-size: 4rem;
    color: var(--neon-cyan);
    opacity: 0.3;
    position: absolute;
    margin-left: -30px;
    margin-top: -20px;
}

