/* css/museum.css - Museum Carousel & Gallery */

.museum-body {
    background: linear-gradient(to bottom, #0f0f1e 0%, #1a1a2e 50%, #0a0a0a 100%);
    min-height: 100vh;
}

.view-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    gap: 0.5rem;
    background: var(--glass-bg);
    padding: 0.5rem;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
}

.toggle-btn {
    padding: 0.5rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--empire-text-muted);
    font-size: 0.9rem;
}

.toggle-btn.active {
    background: var(--empire-gold);
    color: var(--empire-dark);
    border-radius: 20px;
}

/* Carousel Mode */
.carousel-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    height: 80vh;
    align-items: center;
    gap: 2rem;
    padding: 0 5vw;
}

.carousel-slide {
    flex: 0 0 80vw;
    max-width: 1200px;
    height: 70vh;
    position: relative;
    border: 2px solid var(--empire-gold);
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.2);
    background: var(--glass-bg);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.carousel-slide.featured {
    transform: scale(1.05);
    border-width: 3px;
    box-shadow: 0 0 60px rgba(212, 175, 55, 0.4);
}

.carousel-slide.pinned {
    border-color: #ff4444;
    box-shadow: 0 0 40px rgba(255, 68, 68, 0.3);
}

.slide-image {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.slide-info {
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.slide-info h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.collection-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--empire-gold);
    color: var(--empire-dark);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.7);
    border: 1px solid var(--empire-gold);
    color: var(--empire-gold);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-nav:hover {
    background: var(--empire-gold);
    color: var(--empire-dark);
}

.carousel-nav.prev { left: 2rem; }
.carousel-nav.next { right: 2rem; }

/* Gallery Mode (Infinite Scroll) */
.gallery-container {
    display: none;
    padding: 100px 2rem 2rem;
    columns: 4;
    column-gap: 1.5rem;
}

.gallery-container.active {
    display: block;
}

.art-card {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.art-card:hover {
    transform: translateY(-5px);
    border-color: var(--empire-gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.art-card.pinned {
    border-color: var(--empire-crimson);
    order: -1;
}

.art-card img {
    width: 100%;
    display: block;
    transition: transform 0.3s ease;
}

.art-card:hover img {
    transform: scale(1.05);
}

.art-meta {
    padding: 1rem;
}

.art-meta h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.artist {
    color: var(--empire-text-muted);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* Ad Injection Cards */
.ad-card {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(139, 0, 0, 0.2));
    border: 2px solid var(--empire-gold);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ad-card::before {
    content: 'PROMOTION';
    position: absolute;
    top: 10px;
    right: -30px;
    background: var(--empire-gold);
    color: var(--empire-dark);
    padding: 0.25rem 2rem;
    font-size: 0.7rem;
    transform: rotate(45deg);
}

.ad-card img {
    max-width: 100%;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.ad-card h4 {
    color: var(--empire-gold);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border: 2px solid var(--empire-gold);
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    color: var(--empire-gold);
    font-size: 3rem;
    cursor: pointer;
    background: none;
    border: none;
}

@media (max-width: 1200px) { .gallery-container { columns: 3; } }
@media (max-width: 768px) { 
    .gallery-container { columns: 2; padding-top: 80px; }
    .carousel-slide { flex: 0 0 90vw; }
    .slide-info h3 { font-size: 1.5rem; }
}
