/**
 * OZARK ORACLE - Resource War Slideshow Styles
 * Page-specific CSS for resource/timeline slideshows
 *
 * Used by: resource_history_slideshow.html, resource_timeline_slideshow.html,
 *          timeline_slideshow.html, fiction_timeline.html
 * Requires: quantum-theme.css loaded first
 */

/* === SLIDESHOW CONTAINER === */
#slideshow {
    width: 100%;
    max-width: 100vw;
    height: calc(100vh - 60px);
    position: relative;
    margin-top: 50px;
    overflow: hidden;
}

/* === SLIDES === */
.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background: #0a0a0a;
    padding: 20px 30px 60px;
    overflow-y: auto;
}

.slide.active {
    opacity: 1;
    z-index: 10;
}

/* === ERA HEADER === */
.era-header {
    text-align: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #d4af37;
    padding-bottom: 10px;
}

.era-title {
    font-size: var(--text-2xl);
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
    margin-bottom: 8px;
}

.era-year {
    font-size: var(--text-lg);
    color: #fff;
    margin-bottom: 10px;
}

.era-narrative {
    font-size: var(--text-sm);
    color: #ccc;
    max-width: 900px;
    text-align: center;
    line-height: 1.5;
    margin-bottom: 15px;
}

.era-resources {
    font-size: var(--text-xs);
    color: #aaa;
    margin-bottom: 10px;
    max-width: 900px;
    text-align: center;
    line-height: 1.5;
}

.era-count {
    font-size: var(--text-sm);
    color: #888;
}

.era-pattern {
    font-style: italic;
    color: #d4af37;
    margin-top: 10px;
    font-size: var(--text-sm);
    max-width: 900px;
    text-align: center;
    line-height: 1.4;
}

/* === GENOCIDE / CONVERGENCE SLIDES === */
.slide.genocide {
    background: #1a0000;
}

.slide.genocide .era-title {
    color: #ff0000;
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0%, 100% { opacity: 0.8; text-shadow: 0 0 10px rgba(255, 0, 0, 0.6); }
    50% { opacity: 1; text-shadow: 0 0 20px rgba(255, 0, 0, 0.9); }
}

/* === DEATH TOLL === */
.death-toll {
    font-size: var(--text-xl);
    color: #ff0000;
    font-weight: bold;
    margin: 8px 0;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.6);
}

/* === RESOURCE GRID === */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
    overflow-y: auto;
    flex: 1;
    padding: 10px;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
}

.resource-card {
    background: rgba(212, 175, 55, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 10px;
    transition: all 0.3s;
}

.resource-card:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.5);
}

.resource-card.genocide {
    border-color: rgba(255, 0, 0, 0.4);
    background: rgba(255, 0, 0, 0.05);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.resource-name {
    font-size: var(--text-xs);
    color: #d4af37;
    font-weight: bold;
    margin-bottom: 4px;
    text-decoration: none;
}

a.resource-name {
    text-decoration: underline;
}

a.resource-name:hover {
    color: #fff;
}

.resource-type {
    font-size: var(--text-xs);
    color: #ccc;
    margin-bottom: 4px;
    line-height: 1.4;
}

.resource-controller {
    font-size: var(--text-2xs);
    color: #888;
    line-height: 1.3;
}

.resource-deaths {
    font-size: var(--text-2xs);
    color: #ff6666;
    margin-top: 4px;
    line-height: 1.3;
}

/* === CONTROLS === */
.controls {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    background: rgba(0, 0, 0, 0.95);
    padding: 8px 20px;
    border: 1px solid #d4af37;
    display: flex;
    gap: 12px;
    align-items: center;
}

.controls .btn {
    background: #1a1a1a;
    border: 1px solid rgba(212, 175, 55, 0.5);
    color: #d4af37;
    padding: 6px 14px;
    cursor: pointer;
    font-size: var(--text-xs);
    text-transform: uppercase;
    transition: all 0.3s;
}

.controls .btn:hover {
    background: #d4af37;
    color: #000;
}

.controls .btn.active {
    background: #d4af37;
    color: #000;
}

.progress {
    color: #d4af37;
    font-size: var(--text-xs);
    min-width: 60px;
    text-align: center;
}

/* === MOBILE === */
@media (max-width: 768px) {
    #slideshow {
        height: calc(100vh - 50px);
        margin-top: 45px;
    }

    .slide {
        padding: 12px 15px 50px;
    }

    .era-title {
        font-size: var(--text-lg);
        letter-spacing: 1px;
    }

    .era-year {
        font-size: var(--text-sm);
    }

    .era-narrative {
        font-size: var(--text-xs);
    }

    .era-pattern {
        font-size: var(--text-xs);
    }

    .death-toll {
        font-size: var(--text-lg);
    }

    .resource-grid {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 6px;
    }

    .resource-card {
        padding: 8px;
    }

    .controls {
        padding: 6px 12px;
        gap: 8px;
        bottom: 5px;
    }

    .controls .btn {
        padding: 5px 10px;
        font-size: var(--text-2xs);
    }
}

/* === CATEGORY TAGS (Arkansas Slideshow) === */
.cat-tag {
    display: inline-block;
    padding: 2px 8px;
    font-size: var(--text-2xs);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
    margin-bottom: 8px;
}
.cat-burn { background: rgba(255,80,0,0.2); border: 1px solid rgba(255,80,0,0.5); color: #ff5000; }
.cat-purge { background: rgba(255,0,0,0.2); border: 1px solid rgba(255,0,0,0.5); color: #ff3333; }
.cat-gerry { background: rgba(200,50,255,0.2); border: 1px solid rgba(200,50,255,0.5); color: #c832ff; }
.cat-governor { background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.4); color: #ffffff; }
.cat-ltgov { background: rgba(180,200,255,0.15); border: 1px solid rgba(180,200,255,0.4); color: #b4c8ff; }
.cat-admin { background: rgba(100,150,255,0.2); border: 1px solid rgba(100,150,255,0.5); color: #6496ff; }
.cat-mining { background: rgba(255,200,0,0.2); border: 1px solid rgba(255,200,0,0.5); color: #ffc800; }
.cat-water { background: rgba(0,180,255,0.2); border: 1px solid rgba(0,180,255,0.5); color: #00b4ff; }
.cat-capture { background: rgba(255,100,100,0.2); border: 1px solid rgba(255,100,100,0.5); color: #ff6464; }
.cat-default { background: rgba(192,192,192,0.2); border: 1px solid rgba(192,192,192,0.5); color: #c0c0c0; }

.era-link {
    display: inline-block;
    margin-top: 12px;
    color: #d4af37;
    font-size: var(--text-xs);
    text-decoration: underline;
}
.era-link:hover { color: #fff; }

.slide-counter {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #555;
    font-size: var(--text-2xs);
}
