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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    /* background: linear-gradient(to bottom, #0a0e27 0%, #1a1f3a 100%); */
    background: linear-gradient(rgba(10, 10, 10, 0.85), rgba(26, 26, 46, 0.85)), url('/images/alien-with-telescope.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #e0e0e0;
    min-height: 100vh;
    padding: 2rem 1rem;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(100, 149, 237, 0.3);
}

h1 {
    font-size: 3rem;
    color: #6495ed;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(100, 149, 237, 0.5);
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #6495ed;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(100, 149, 237, 0.5);
}

.subtitle {
    font-size: 1.2rem;
    color: #a0a0a0;
}

a {
    color: #87ceeb;
    text-decoration: none;
}

.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.nav-btn {
    padding: 0.875rem 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.nav-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.nav-btn:active {
    transform: translateY(-1px);
}

.stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #87ceeb;
}

.stat-label {
    font-size: 0.9rem;
    color: #a0a0a0;
    margin-top: 0.3rem;
}

.view-toggle {
    text-align: center;
    margin-bottom: 2rem;
}

.toggle-btn {
    background: rgba(100, 149, 237, 0.2);
    border: 2px solid #6495ed;
    color: #6495ed;
    padding: 0.75rem 2rem;
    margin: 0 0.5rem;
    cursor: pointer;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    background: rgba(100, 149, 237, 0.3);
    transform: translateY(-2px);
}

.toggle-btn.active {
    background: #6495ed;
    color: #0a0e27;
}

.search-box {
    text-align: center;
    margin-bottom: 2rem;
}

#searchInput {
    width: 100%;
    max-width: 500px;
    padding: 1rem;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(100, 149, 237, 0.3);
    border-radius: 8px;
    color: #e0e0e0;
    outline: none;
}

#searchInput:focus {
    border-color: #6495ed;
}

#searchInput::placeholder {
    color: #808080;
}

.featured-stars {
    display: flex;
    gap: 1.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
    justify-content: center;
}

.featured-stars .card {
    flex: 0 1 auto;
    max-width: 400px;
    min-width: 320px;
}

/* On smaller screens, stack featured cards */
@media (max-width: 900px) {
    .featured-stars {
        flex-direction: column;
        align-items: center;
    }

    .featured-stars .card {
        width: 100%;
        max-width: 500px;
    }
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(100, 149, 237, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.card:hover {
    background: rgba(100, 149, 237, 0.1);
    border-color: #6495ed;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(100, 149, 237, 0.3);
}

.card h3 {
    color: #87ceeb;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    text-transform: capitalize;
}

.card-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.card-link {
    flex: 1;
    min-width: 100px;
    padding: 0.6rem 1rem;
    background: rgba(100, 149, 237, 0.2);
    border: 1px solid rgba(100, 149, 237, 0.4);
    border-radius: 6px;
    color: #87ceeb;
    text-decoration: none;
    text-align: center;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.card-link:hover {
    background: #6495ed;
    color: #0a0e27;
    border-color: #6495ed;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: #808080;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .stats {
        gap: 1.5rem;
    }

    .grid {
        grid-template-columns: 1fr;
    }
}

/* Accessibility - visually hidden but available to screen readers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
