/* css/star-map.css */

.star-map-container {
    position: relative;
    width: 100%;
    height: 500px;
    background: #000;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.star-map-container canvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: default;
}

/* Info Panel Overlay */
.constellation-info {
    margin-top: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--venezuela-yellow);
    min-height: 100px;
    transition: all 0.3s ease;
}

.constellation-info h3 {
    color: var(--venezuela-yellow);
    margin-bottom: 10px;
    font-size: 1.5em;
}

.star-details p {
    margin-bottom: 5px;
    color: #eee;
}

/* Constellation List Buttons */
.constellation-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.constellation-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.constellation-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.constellation-btn.active {
    background: var(--venezuela-yellow);
    color: var(--nasa-blue);
    border-color: var(--venezuela-yellow);
    font-weight: bold;
}

/* Constellation Cards Grid */
.constellations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.constellation-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.constellation-card:hover {
    transform: translateY(-5px);
    border-color: var(--venezuela-yellow);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.constellation-card h3 {
    color: var(--venezuela-yellow);
    margin-bottom: 15px;
    font-size: 1.4em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.constellation-meta {
    margin-bottom: 15px;
    font-size: 0.9em;
    color: #ccc;
}

.mythology {
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
}

.stars-list h4 {
    color: var(--venezuela-blue);
    margin-bottom: 10px;
    font-size: 1em;
}

.star-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9em;
}

.star-item:last-child {
    border-bottom: none;
}

.star-item strong {
    color: #fff;
}

.star-item span {
    color: #aaa;
    font-size: 0.85em;
}

/* Events Timeline */
.events-timeline {
    position: relative;
    padding: 20px 0;
}

.events-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.event-card {
    position: relative;
    margin-left: 50px;
    margin-bottom: 30px;
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.event-card::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 20px;
    width: 12px;
    height: 12px;
    background: var(--venezuela-yellow);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--venezuela-yellow);
}

.event-date {
    display: inline-block;
    background: rgba(11, 61, 145, 0.5);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.85em;
    color: var(--venezuela-yellow);
    margin-bottom: 10px;
}

.event-card h4 {
    color: white;
    margin-bottom: 5px;
    font-size: 1.2em;
}

.event-card p {
    color: #ccc;
    font-size: 0.95em;
}

/* Responsive */
@media (max-width: 768px) {
    .star-map-container {
        height: 350px;
    }
    
    .constellation-list {
        justify-content: center;
    }
    
    .events-timeline::before {
        left: 10px;
    }
    
    .event-card {
        margin-left: 35px;
    }
    
    .event-card::before {
        left: -31px;
    }
}
