/* Lore Category - Custom Styles */

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

/* Category-specific color overrides */
:root {
    /* Override accent colors for Lore theme */
    --category-primary: #ffd60a;      /* Gold - for knowledge/history */
    --category-secondary: #ffc300;    /* Darker gold */
}

/* Custom category header styling */
.category-header {
    background: linear-gradient(135deg, rgba(255, 214, 10, 0.15), rgba(0, 0, 0, 0.95));
    border-bottom: 2px solid var(--category-primary);
    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(--category-primary), 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(--category-primary);
    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;
}

/* Timeline Section */
.timeline-section {
    margin-bottom: 100px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.timeline-title {
    font-family: 'Michroma', sans-serif;
    font-size: 2rem;
    text-align: center;
    background: linear-gradient(90deg, var(--category-primary), var(--cosmic-white));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    letter-spacing: 3px;
}

.timeline-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 1rem;
    margin-bottom: 60px;
}

/* Timeline Container */
.timeline-container {
    position: relative;
    padding: 80px 0;
}

/* Timeline Markers */
.timeline-marker {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.timeline-marker-start {
    left: -60px;
    top: 50%;
    transform: translateY(-50%);
}

.timeline-marker-end {
    right: -60px;
    top: 50%;
    transform: translateY(-50%);
}

.marker-icon {
    font-size: 2rem;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 10px rgba(255, 214, 10, 0.6));
}

.marker-label {
    font-size: 0.75rem;
    color: var(--category-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    text-align: center;
}

/* Timeline Track */
.timeline-track {
    display: flex;
    gap: 4px;
    position: relative;
    background: linear-gradient(90deg, 
        rgba(255, 214, 10, 0.2) 0%, 
        rgba(255, 214, 10, 0.4) 50%, 
        rgba(255, 214, 10, 0.2) 100%);
    padding: 4px;
    border-radius: 8px;
}

/* Timeline Era Cards */
.timeline-era {
    flex: 1;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(10, 10, 18, 0.95));
    border: 2px solid rgba(255, 214, 10, 0.3);
    border-radius: 8px;
    padding: 24px 16px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 180px;
    display: flex;
    align-items: center;
}

.timeline-era::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--category-primary), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.timeline-era:hover {
    transform: translateY(-8px);
    border-color: var(--category-primary);
    box-shadow: 0 12px 40px rgba(255, 214, 10, 0.4);
}

.timeline-era:hover::before {
    opacity: 0.15;
}

.era-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.era-title {
    font-family: 'Michroma', sans-serif;
    font-size: 1.1rem;
    color: var(--category-primary);
    margin-bottom: 8px;
    letter-spacing: 1px;
    line-height: 1.3;
}

.era-dates {
    font-size: 0.85rem;
    color: var(--category-secondary);
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.era-description {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.5;
}

/* Section Subtitle */
.section-subtitle {
    font-family: 'Michroma', sans-serif;
    font-size: 1.8rem;
    text-align: center;
    background: linear-gradient(90deg, var(--category-primary), var(--cosmic-white));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 50px;
    letter-spacing: 3px;
    grid-column: 1 / -1; /* Span all columns in grid */
}

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

/* Make sure the heading is above the grid items */
.lore-grid > h2 {
    grid-column: 1 / -1;
}

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

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

.lore-card:hover {
    transform: translateY(-8px);
    border-color: var(--category-primary);
    box-shadow: 
        0 12px 48px rgba(255, 214, 10, 0.3),
        inset 0 0 40px rgba(255, 214, 10, 0.08);
}

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

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

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

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

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

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

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

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

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .timeline-marker-start {
        left: -50px;
    }
    
    .timeline-marker-end {
        right: -50px;
    }
    
    .marker-icon {
        font-size: 1.5rem;
    }
    
    .marker-label {
        font-size: 0.7rem;
    }
}

@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;
    }

    .timeline-section {
        margin-bottom: 80px;
    }

    /* Stack timeline vertically on mobile */
    .timeline-container {
        padding: 60px 20px;
    }

    .timeline-marker-start {
        left: 50%;
        top: -50px;
        transform: translateX(-50%);
    }

    .timeline-marker-end {
        right: auto;
        left: 50%;
        top: auto;
        bottom: -50px;
        transform: translateX(-50%);
    }

    .timeline-track {
        flex-direction: column;
        gap: 16px;
    }

    .timeline-era {
        min-height: auto;
        padding: 20px 16px;
    }

    .era-title {
        font-size: 1rem;
    }

    .era-dates {
        font-size: 0.8rem;
    }

    .era-description {
        font-size: 0.85rem;
    }

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

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

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

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

    .timeline-title {
        font-size: 1.5rem;
    }

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

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

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

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

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

    .timeline-event h3 {
        font-size: 1.2rem;
    }
}

/* ===================================
   LORE ARTICLE PAGE STYLES
   =================================== */

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

/* Lore Header with Image */
.lore-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid rgba(255, 214, 10, 0.2);
}

.lore-image {
    float: left;
    width: 200px;
    height: auto;
    margin: 0 24px 16px 0;
    border-radius: 8px;
    border: 2px solid var(--category-primary);
    box-shadow: 0 8px 32px rgba(255, 214, 10, 0.3);
}

.lore-title-section h1 {
    font-family: 'Michroma', sans-serif;
    font-size: 2.5rem;
    background: linear-gradient(90deg, var(--category-primary), 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;
}

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

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

.meta-item strong {
    color: var(--category-primary);
}

/* 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(--category-primary);
    margin-bottom: 16px;
    letter-spacing: 1px;
    padding-top: 10px;
}

.article-section h3 {
    font-size: 1.3rem;
    color: var(--category-secondary);
    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(--category-primary);
    font-size: 1.2rem;
}

.article-section ul li strong {
    color: var(--category-primary);
}

/* Timeline Section */
.timeline-section {
    background: linear-gradient(135deg, rgba(255, 214, 10, 0.03), rgba(0, 0, 0, 0.9));
    border-left: 4px solid var(--category-primary);
    padding: 30px;
    margin: 40px 0;
    border-radius: 0 8px 8px 0;
}

.timeline-event {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 214, 10, 0.15);
}

.timeline-event:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.timeline-event h3 {
    font-family: 'Michroma', sans-serif;
    font-size: 1.4rem;
    color: var(--category-primary);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.timeline-event p {
    margin-bottom: 12px;
}

.timeline-event ul {
    margin-top: 12px;
}

/* Related Links Section */
.related-section {
    background: linear-gradient(135deg, rgba(255, 214, 10, 0.05), rgba(0, 0, 0, 0.8));
    border-left: 4px solid var(--category-primary);
    padding: 30px;
    margin: 40px 0;
    border-radius: 0 8px 8px 0;
}

.related-section h2 {
    margin-top: 0;
    padding-top: 0;
}

.related-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.related-links li {
    padding-left: 0;
}

.related-links li::before {
    display: none;
}

.related-links a {
    color: var(--category-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: block;
    padding: 8px 12px;
    background: rgba(255, 214, 10, 0.05);
    border-radius: 4px;
}

.related-links a:hover {
    color: var(--cosmic-white);
    background: rgba(255, 214, 10, 0.1);
}
