/* Moon Information Styles - moon2026 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap');

.moon-card {
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    border-radius: 16px;
    padding: 12px 15px; /* Further reduced padding */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
    overflow: hidden;
    position: relative;
    text-align: left !important;
}

.moon-card:hover {
    transform: translateY(-5px);
}

.moon-content {
    display: flex;
    align-items: center; /* Center vertically relative to image */
    justify-content: space-between;
    gap: 10px;
}

.moon-info {
    flex: 1;
    min-width: 0; /* Allow text to wrap correctly */
}

.moon-image-container {
    flex: 0 0 100px; /* Reduced fixed width */
    text-align: right;
}

.moon-image-container img {
    width: 90px; /* Slightly smaller moon image */
    height: 90px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    object-fit: cover;
}

.moon-details {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.moon-detail-item {
    margin-bottom: 2px;
}

.moon-detail-label {
    font-weight: 600;
    color: #34495e;
}

/* Timeline */
.moon-timeline {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.moon-timeline-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #ecf0f1;
    z-index: 1;
}

.moon-timeline-phase {
    width: 30px;
    height: 30px;
    background: transparent;
    border-radius: 50%;
    z-index: 2;
    position: relative;
    cursor: help;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.moon-timeline-phase img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    opacity: 0.6;
    filter: grayscale(0.5);
}

.moon-timeline-phase.active img {
    opacity: 1;
    filter: grayscale(0);
    width: 30px;
    height: 30px;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}

/* Triangle Marker */
.moon-timeline-phase.active::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #3498db;
    z-index: 3;
}

.moon-timeline-phase:hover::after {
    content: attr(data-title);
    position: absolute;
    bottom: 45px;
    left: 50%;
    transform: translateX(-50%);
    background: #2c3e50;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    z-index: 3;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Dark mode compatibility if needed */
.dark-theme .moon-card {
    background: #1a1a1a;
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.dark-theme .moon-title { color: #ecf0f1; }
.dark-theme .moon-detail-label { color: #bdc3c7; }
.dark-theme .moon-timeline-track { background: #2c3e50; }
