* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Space Grotesk', sans-serif;
}

:root {
    --primary-color: #00f7ff;
    --secondary-color: #ff00ff;
    --background-dark: #0a0a1a;
    --text-color: #ffffff;
    --overlay-color: rgba(10, 10, 26, 0.8);
}

body {
    background: var(--background-dark);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
}

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

.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/1231630/stars.png') repeat;
    animation: animateStars 200s linear infinite;
}

.twinkling {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/1231630/twinkling.png') repeat;
    animation: animateTwinkle 200s linear infinite;
}

@keyframes animateStars {
    from { background-position: 0 0; }
    to { background-position: -10000px 5000px; }
}

@keyframes animateTwinkle {
    from { background-position: 0 0; }
    to { background-position: -10000px 5000px; }
}

.app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--overlay-color);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nasa-logo {
    width: 60px;
    height: auto;
    filter: drop-shadow(0 0 10px var(--primary-color));
}

h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--primary-color);
}

.date-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-btn {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: var(--primary-color);
    color: var(--background-dark);
    transform: scale(1.1);
}

input[type="date"] {
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-family: 'Orbitron', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

input[type="date"]:hover {
    background: rgba(255, 0, 255, 0.1);
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.loading {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--primary-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.image-container {
    background: var(--overlay-color);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.image-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.nasa-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-wrapper:hover .nasa-image {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.image-wrapper:hover .image-overlay {
    transform: translateY(0);
}

.image-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

.image-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
}

.error {
    display: none;
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff0000;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-family: 'Orbitron', sans-serif;
}

.app-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--overlay-color);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    margin-top: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.keyboard-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-family: 'Orbitron', sans-serif;
}

.api-info {
    color: var(--secondary-color);
    font-family: 'Orbitron', sans-serif;
}

@media (max-width: 768px) {
    .app-container {
        padding: 1rem;
    }

    .app-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .date-controls {
        width: 100%;
        justify-content: center;
    }

    h1 {
        font-size: 2rem;
    }

    .app-footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .image-overlay {
        transform: translateY(0);
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
    }
} 