/**
 * Homepage Interactive Styles
 * Advanced interactive features
 */

/* Interactive Map Section */
.interactive-map-section {
    position: relative;
    overflow: visible;
}

/* Live Stats Section */
.live-stats-section {
    position: relative;
}

.stat-card-advanced.card-3d-interactive {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.stat-card-advanced.card-3d-interactive:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 60px rgba(212, 165, 116, 0.4);
}

/* Interactive Filters */
#interactiveFilters .filter-btn {
    transition: all 0.3s ease;
}

#interactiveFilters .filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 165, 116, 0.3);
}

#interactiveFilters .filter-btn.active {
    background: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: white !important;
    box-shadow: 0 5px 20px rgba(212, 165, 116, 0.5);
}

/* Dimension Explorer Cards */
.dimension-explorer-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.dimension-explorer-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 30px 80px rgba(212, 165, 116, 0.5);
}

.dimension-explorer-card .dimension-link {
    transition: all 0.3s ease;
}

.dimension-explorer-card:hover .dimension-link {
    background: var(--color-accent);
    color: var(--color-bg) !important;
    transform: scale(1.05);
}

/* Interactive Timeline */
.timeline-section {
    position: relative;
}

#interactiveTimeline {
    position: relative;
}

.timeline-node {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    background: var(--color-bg-card);
    border: 3px solid var(--color-accent);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.timeline-node:hover {
    transform: translate(-50%, -50%) scale(1.3);
    box-shadow: 0 0 30px rgba(212, 165, 116, 0.8);
    background: var(--color-accent);
}

.timeline-node.active {
    transform: translate(-50%, -50%) scale(1.5);
    box-shadow: 0 0 40px rgba(212, 165, 116, 1);
    background: var(--color-accent);
}

.timeline-year {
    font-weight: 900;
    font-size: 0.9rem;
    color: var(--color-text);
}

.timeline-content {
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-bg-card);
    padding: 1.5rem;
    border-radius: 15px;
    min-width: 200px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    border: 1px solid var(--color-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.timeline-node:hover .timeline-content,
.timeline-node.active .timeline-content {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
}

.timeline-content h4 {
    color: var(--color-accent);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.timeline-content p {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Particle Container */
.particle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    border-radius: inherit;
}

/* Interactive Buttons */
.btn-interactive {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-interactive:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 165, 116, 0.4);
}

.btn-interactive:active {
    transform: translateY(0);
}

/* Scroll Effect Sections */
.scroll-effect-section {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Parallax Elements */
.parallax-element {
    will-change: transform;
}

/* Filterable Items */
.filterable-item {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card 3D Interactive */
.card-3d-interactive {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.1s ease-out;
}

/* Live Update Animation */
.live-update {
    transition: transform 0.2s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .timeline-node {
        width: 50px;
        height: 50px;
    }

    .timeline-content {
        min-width: 150px;
        padding: 1rem;
        font-size: 0.85rem;
    }

    #interactiveFilters {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-btn {
        width: 100%;
    }
}

