/* Space API Dashboard Styles */

.space-api-dashboard {
    background: linear-gradient(135deg, rgba(8, 10, 25, 0.85), rgba(18, 22, 40, 0.95));
    border: 2px solid rgba(186, 148, 79, 0.3);
    border-radius: 18px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(186, 148, 79, 0.2);
}

.dashboard-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 4px;
    color: #ffffff;
    margin: 0;
}

.refresh-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(186, 148, 79, 0.2);
    border: 2px solid rgba(186, 148, 79, 0.4);
    border-radius: 8px;
    color: #ba944f;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Raleway', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.refresh-btn:hover {
    background: rgba(186, 148, 79, 0.3);
    border-color: rgba(186, 148, 79, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(186, 148, 79, 0.3);
}

.dashboard-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(186, 148, 79, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Raleway', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tab-btn:hover {
    border-color: rgba(186, 148, 79, 0.4);
    color: rgba(255, 255, 255, 0.9);
}

.tab-btn.active {
    background: rgba(186, 148, 79, 0.2);
    border-color: rgba(186, 148, 79, 0.6);
    color: #ba944f;
}

.dashboard-content {
    min-height: 400px;
}

.loading-state,
.error-state {
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(255, 255, 255, 0.8);
}

.loading-state .spinner {
    border: 4px solid rgba(186, 148, 79, 0.2);
    border-top: 4px solid #ba944f;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-state {
    color: #ff6b6b;
}

.data-content {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.data-section {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(186, 148, 79, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
}

.data-section h3 {
    font-family: 'Raleway', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #ba944f;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Exoplanets List */
.exoplanets-list,
.launches-list,
.news-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.exoplanet-item,
.launch-item,
.news-item {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(186, 148, 79, 0.1);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.exoplanet-item:hover,
.launch-item:hover,
.news-item:hover {
    border-color: rgba(186, 148, 79, 0.4);
    transform: translateX(5px);
}

.planet-name,
.launch-name,
.news-title {
    font-family: 'Raleway', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.planet-name {
    color: #ba944f;
}

.planet-details,
.launch-details,
.news-date {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
}

.planet-details span {
    padding: 0.25rem 0.75rem;
    background: rgba(186, 148, 79, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(186, 148, 79, 0.2);
}

.launch-item.upcoming {
    border-left: 4px solid #4cd137;
}

.launch-date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.news-source {
    font-size: 0.8rem;
    color: rgba(186, 148, 79, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.news-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: #ba944f;
}

/* Full View Styles */
.exoplanets-full,
.launches-full,
.news-full {
    animation: fadeIn 0.5s ease;
}

.exoplanets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.launches-section {
    margin-bottom: 2rem;
}

.launches-section h3 {
    margin-bottom: 1rem;
}

.view-more-btn {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(186, 148, 79, 0.1);
    border: 1px solid rgba(186, 148, 79, 0.3);
    border-radius: 6px;
    color: #ba944f;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Raleway', sans-serif;
}

.view-more-btn:hover {
    background: rgba(186, 148, 79, 0.2);
    border-color: rgba(186, 148, 79, 0.5);
}

.no-data {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding: 2rem;
    font-style: italic;
}

.last-updated {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(186, 148, 79, 0.2);
}

/* APOD Styles */
.apod-full {
    animation: fadeIn 0.5s ease;
}

.apod-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(186, 148, 79, 0.2);
    border-radius: 12px;
    padding: 2rem;
}

.apod-date {
    color: rgba(186, 148, 79, 0.8);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.apod-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: #ba944f;
    margin-bottom: 1.5rem;
}

.apod-image {
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
}

.apod-image img {
    width: 100%;
    height: auto;
    display: block;
}

.apod-image iframe {
    width: 100%;
    min-height: 400px;
    border: none;
}

.apod-explanation {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin: 1.5rem 0;
    font-size: 1rem;
}

.apod-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-top: 1rem;
    font-style: italic;
}

.apod-hd-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: rgba(186, 148, 79, 0.2);
    border: 1px solid rgba(186, 148, 79, 0.4);
    border-radius: 6px;
    color: #ba944f;
    text-decoration: none;
    transition: all 0.3s ease;
}

.apod-hd-link:hover {
    background: rgba(186, 148, 79, 0.3);
    border-color: rgba(186, 148, 79, 0.6);
}

/* NEO Styles */
.neo-full {
    animation: fadeIn 0.5s ease;
}

.neo-stats {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(186, 148, 79, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.stat-item strong {
    color: #ba944f;
}

.neo-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.neo-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(186, 148, 79, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.neo-item.hazardous {
    border-left: 4px solid #ff6b6b;
    background: rgba(255, 107, 107, 0.05);
}

.neo-item:hover {
    border-color: rgba(186, 148, 79, 0.4);
    transform: translateX(5px);
}

.neo-name {
    font-family: 'Raleway', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #ba944f;
    margin-bottom: 1rem;
}

.neo-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.neo-details span {
    padding: 0.25rem 0.75rem;
    background: rgba(186, 148, 79, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(186, 148, 79, 0.2);
}

.hazard-badge {
    background: rgba(255, 107, 107, 0.2) !important;
    border-color: rgba(255, 107, 107, 0.4) !important;
    color: #ff6b6b !important;
    font-weight: 600;
}

/* Telescope Styles */
.telescopes-full {
    animation: fadeIn 0.5s ease;
}

.telescope-section {
    margin-bottom: 3rem;
}

.telescope-section h3 {
    font-family: 'Raleway', sans-serif;
    font-size: 1.8rem;
    font-weight: 400;
    color: #ba944f;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.telescope-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.telescope-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(186, 148, 79, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.telescope-item:hover {
    border-color: rgba(186, 148, 79, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.telescope-title {
    font-family: 'Raleway', sans-serif;
    font-size: 1.3rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 1rem;
}

.telescope-image {
    width: 100%;
    border-radius: 8px;
    margin: 1rem 0;
    overflow: hidden;
}

.telescope-image img {
    width: 100%;
    height: auto;
    display: block;
}

.telescope-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 1rem 0;
}

.telescope-link {
    display: inline-block;
    margin-top: 1rem;
    color: #ba944f;
    text-decoration: none;
    transition: color 0.3s ease;
}

.telescope-link:hover {
    color: #d4b86a;
}

.telescope-date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.telescopes-preview {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.telescope-item.small {
    padding: 0.75rem;
    font-size: 0.9rem;
}

/* ESA Styles */
.esa-full {
    animation: fadeIn 0.5s ease;
}

.esa-section {
    margin-bottom: 3rem;
}

.esa-section h3 {
    font-family: 'Raleway', sans-serif;
    font-size: 1.8rem;
    font-weight: 400;
    color: #ba944f;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .dashboard-header h2 {
        font-size: 2rem;
        text-align: center;
    }

    .dashboard-tabs {
        justify-content: center;
    }

    .tab-btn {
        flex: 1;
        min-width: 100px;
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    .data-grid {
        grid-template-columns: 1fr;
    }

    .exoplanets-grid {
        grid-template-columns: 1fr;
    }

    .apod-title {
        font-size: 1.5rem;
    }

    .apod-image iframe {
        min-height: 250px;
    }

    .neo-details {
        flex-direction: column;
    }
}

