/* Lifeburn Theme - Dark Fantasy Color Scheme */

.lifeburn-page {
    --accent: #c92a2a;
    --accent-hover: #e53935;
    --accent-glow: rgba(201, 42, 42, 0.3);
    --bg-primary: #080808;
    --bg-secondary: #0f0f0f;
    --bg-tertiary: #141414;
    --bg-card: #0c0c0c;
    --border: #1f1f1f;
    --border-light: #2a2a2a;
    --gradient-primary: linear-gradient(135deg, #e53935 0%, #8b2520 100%);
}

/* Hero Styling */
.lifeburn-hero .hero-overlay {
    background: linear-gradient(to bottom,
        rgba(8, 8, 8, 0.25) 0%,
        rgba(8, 8, 8, 0.6) 100%);
}

.lifeburn-hero .video-bg video {
    filter: grayscale(30%) blur(6px);
    opacity: 0.6;
}

.lifeburn-title-img {
    max-width: 500px;
    width: 100%;
    height: auto;
    margin-bottom: 24px;
}

.lifeburn-page .project-hero-title {
    display: none;
}

/* Card Showcase Gallery */
.card-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto 60px;
}

.card-item {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-item:hover {
    transform: translateY(-8px) scale(1.02);
}

.card-item.card-green:hover {
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.6);
}

.card-item.card-brown:hover {
    box-shadow: 0 4px 16px rgba(141, 110, 69, 0.6);
}

.card-item.card-blue:hover {
    box-shadow: 0 4px 16px rgba(66, 165, 245, 0.6);
}

.card-item.card-red:hover {
    box-shadow: 0 4px 16px rgba(211, 47, 47, 0.6);
}

.card-item.card-purple:hover {
    box-shadow: 0 4px 16px rgba(156, 39, 176, 0.6);
}

.card-item img {
    width: 100%;
    height: auto;
    display: block;
}

.card-item.featured {
    grid-column: span 1;
}

/* Gallery Carousel */
.lifeburn-page .gallery-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
}

.lifeburn-page .carousel-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 450px;
    overflow: hidden;
}

.lifeburn-page .carousel-slide {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 450px;
}

.lifeburn-page .carousel-slide.active {
    display: flex;
}

.lifeburn-page .carousel-video {
    max-width: 100%;
    max-height: 380px;
    border-radius: 8px;
    border: 2px solid var(--border);
}

.lifeburn-page .slide-caption {
    color: var(--accent-hover);
    font-size: 1.1rem;
    margin-top: 16px;
    text-align: center;
}

.lifeburn-page .carousel-btn {
    background: var(--bg-card);
    border: 2px solid var(--border);
    color: var(--accent);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.lifeburn-page .carousel-btn:hover {
    border-color: var(--accent);
    background: rgba(201, 42, 42, 0.1);
}

.lifeburn-page .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.lifeburn-page .carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lifeburn-page .carousel-dot.active {
    background: var(--accent);
}

/* Card showcase in carousel */
.lifeburn-page .card-showcase {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    max-width: 700px;
}

.lifeburn-page .card-showcase .card-item {
    width: 120px;
}

/* Booster Pack Showcase */
.booster-showcase {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.booster-img {
    max-width: 250px;
    max-height: 350px;
    height: auto;
    filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.5));
}

/* Card back showcase */
.cardback-showcase {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.cardback-showcase img {
    max-height: 350px;
    width: auto;
    filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.5));
}

/* Override accent colors for tech stack tags */
.lifeburn-page .project-tech-stack span {
    background: rgba(201, 42, 42, 0.15);
    border-color: rgba(201, 42, 42, 0.3);
    color: #e53935;
}

/* Override architecture cards */
.lifeburn-page .arch-card {
    background: var(--bg-card);
    border-color: var(--border);
}

.lifeburn-page .arch-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 30px rgba(201, 42, 42, 0.15);
}

.lifeburn-page .arch-card h3 {
    color: var(--accent-hover);
}

/* Override section titles */
.lifeburn-page .section-title::after {
    background: var(--gradient-primary);
}

/* Override code preview */
.lifeburn-page .code-preview {
    border-color: var(--border);
    background: var(--bg-card);
}

/* Override badges */
.lifeburn-page .badge {
    background: rgba(201, 42, 42, 0.15);
    border-color: rgba(201, 42, 42, 0.3);
    color: var(--accent-hover);
}

/* Override story stats */
.lifeburn-page .story-stat-number {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Video container */
.lifeburn-page .video-container {
    border-color: var(--border);
}

/* Alt background sections */
.lifeburn-page .alt-bg {
    background: var(--bg-secondary);
}

/* Footer link */
.lifeburn-page .back-link:hover {
    color: var(--accent-hover);
}

@media (max-width: 768px) {
    .lifeburn-title-img {
        max-width: 300px;
    }

    .card-showcase {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}
