/* Style Minimaliste Noir & Blanc - Page Animation */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600;700&display=swap');

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #000000;
    --white: #FFFFFF;
    --gray: #808080;
}

body {
    font-family: 'IBM Plex Mono', monospace;
    background: var(--black);
    color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Elements */
.background-stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('galaxie.jpeg');
    opacity: 0.3;
    z-index: -2;
}

.background-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: -1;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
    border: 2px solid var(--white);
    background: var(--black);
}

.title {
    font-family: 'IBM Plex Mono', monospace;
    margin-bottom: 10px;
}

.title-main {
    display: block;
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.title-sub {
    display: block;
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    font-weight: 400;
    color: var(--white);
    letter-spacing: 0.2em;
    margin-top: 5px;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--gray);
}

/* Main Content */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

/* Animation Section */
.animation-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.canvas-container {
    position: relative;
    background: var(--black);
    padding: 20px;
    border: 2px solid var(--white);
}

#planetCanvas {
    display: block;
    background: var(--black);
}

.canvas-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    pointer-events: none;
}

.star-info {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--black);
    padding: 10px 15px;
    border: 2px solid var(--white);
}

.star-name {
    font-size: 0.9rem;
    color: var(--white);
    font-weight: 700;
}

.star-temp {
    font-size: 0.8rem;
    color: var(--white);
}

.controls-3d {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

.camera-info {
    background: var(--black);
    padding: 8px 12px;
    border: 2px solid var(--white);
    font-size: 0.8rem;
    color: var(--white);
    display: flex;
    gap: 8px;
    align-items: center;
}

.camera-info span:first-child {
    color: var(--gray);
}

#cameraMode {
    font-weight: 700;
    color: var(--white);
}

/* Info Section */
.info-section {
    display: flex;
    flex-direction: column;
}

.info-card {
    background: var(--black);
    padding: 30px;
    border: 2px solid var(--white);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--white);
}

.badges {
    display: flex;
    gap: 10px;
    align-items: center;
}

.planet-name {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.8rem;
    color: var(--white);
    font-weight: 700;
    text-transform: uppercase;
}

.mission-badge {
    background: var(--white);
    color: var(--black);
    padding: 8px 16px;
    border: 2px solid var(--white);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.confirmed-badge {
    background: var(--black);
    color: var(--white);
    padding: 8px 16px;
    border: 2px solid var(--white);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.info-item {
    background: var(--black);
    padding: 15px;
    border: 2px solid var(--white);
    transition: all 0.2s ease;
}

.info-item:hover {
    background: var(--white);
    color: var(--black);
}

.info-item:hover .info-label,
.info-item:hover .info-value {
    color: var(--black);
}

.info-label {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-value {
    font-size: 1.2rem;
    color: var(--white);
    font-weight: 700;
    font-family: 'IBM Plex Mono', monospace;
}

/* Star Characteristics */
.star-characteristics {
    background: var(--black);
    padding: 20px;
    border: 2px solid var(--white);
}

.star-characteristics h3 {
    color: var(--white);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-align: center;
    text-transform: uppercase;
}

.star-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.star-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 2px solid var(--white);
}

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

.star-label {
    color: var(--gray);
    font-size: 0.9rem;
}

.star-value {
    color: var(--white);
    font-weight: 700;
    font-family: 'IBM Plex Mono', monospace;
}

/* Controls */
.controls-section {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.controls-info {
    display: flex;
    justify-content: center;
}

.auto-change-indicator {
    background: var(--black);
    padding: 12px 20px;
    border: 2px solid var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'IBM Plex Mono', monospace;
}

.indicator-text {
    color: var(--gray);
    font-size: 0.9rem;
}

.countdown {
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
    min-width: 30px;
    text-align: center;
}

.explore-btn {
    background: var(--black);
    color: var(--white);
    border: 2px solid var(--white);
    padding: 18px 35px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'IBM Plex Mono', monospace;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 20px auto 0 auto;
}

.explore-btn:hover {
    background: var(--white);
    color: var(--black);
}

.explore-btn:active {
    transform: scale(0.98);
}

.btn-icon {
    font-size: 1.3rem;
}

.btn-text {
    position: relative;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .animation-section {
        order: 2;
    }
    
    .info-section {
        order: 1;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .star-grid {
        grid-template-columns: 1fr;
    }
    
    .card-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    #planetCanvas {
        width: 100%;
        height: auto;
    }
    
    .canvas-container {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .title-main {
        font-size: 2.5rem;
    }
    
    .title-sub {
        font-size: 1.2rem;
    }
    
    .info-card {
        padding: 20px;
    }
    
    .explore-btn {
        padding: 15px 25px;
        font-size: 1rem;
    }
}

/* Loading Animation */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 2px solid var(--white);
    border-top-color: var(--black);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Focus */
*:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

/* GRADIENT DE TEMPÉRATURE */
.temp-gradient {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--white);
}

.temp-gradient::after {
    content: '';
    width: 100px;
    height: 15px;
    border: 2px solid var(--white);
}

.star-temp-gradient::after {
    background: linear-gradient(to right, 
        rgb(204, 51, 51), 
        rgb(255, 77, 77), 
        rgb(255, 153, 77), 
        rgb(255, 255, 179), 
        rgb(255, 255, 255)
    );
}

.planet-temp-gradient::after {
    background: linear-gradient(to right, 
        rgb(179, 179, 179), 
        rgb(153, 153, 255), 
        rgb(102, 153, 255), 
        rgb(255, 153, 77), 
        rgb(255, 102, 102)
    );
}