/* NASA Space Explorer Theme - Complete CSS */

:root {
    --primary-color: #0066cc;
    --secondary-color: #ff6b35;
    --accent-color: #ffd23f;
    --dark-bg: #0a0e27;
    --light-bg: #f8f9fa;
    --text-light: #ffffff;
    --text-dark: #2c3e50;
    --space-gradient: linear-gradient(135deg, #0a0e27 0%, #1a1a2e 50%, #16213e 100%);
    --card-shadow: 0 10px 30px rgba(0, 102, 204, 0.1);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--space-gradient);
    color: var(--text-light);
    min-height: 100vh;
}

/* Navigation */
.navbar {
    background: rgba(10, 14, 39, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--accent-color) !important;
}

.nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color) !important;
    transform: translateY(-2px);
}

/* Icon-only navbar styling */
.navbar-nav .nav-link {
    padding: 0.5rem 1rem !important;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    transform: translateY(-2px);
    color: var(--accent-color) !important;
}

.navbar-nav .nav-item {
    margin: 0 0.2rem;
}

.navbar-nav .nav-link i {
    width: 20px;
    text-align: center;
}

/* Hero Section */
.hero-section {
    padding: 100px 0;
    text-align: center;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 53, 0.3) 0%, transparent 50%),
        var(--space-gradient);
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

/* Cards */
.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
    color: white !important;
}

.card-title {
    color: white !important;
    font-weight: 600;
}

.card-text {
    color: rgba(255, 255, 255, 0.9) !important;
}

.text-muted {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Ensure all text is white */
p, span, div, h1, h2, h3, h4, h5, h6, small, .card-text {
    color: white !important;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.2);
    border-color: rgba(255, 210, 63, 0.3);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 102, 204, 0.3);
}

/* Mission Cards */
.mission-card {
    border-left: 4px solid var(--accent-color);
    margin-bottom: 1rem;
}

.mission-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

/* Status Badges */
.mission-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-complete, .status-completed {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid #28a745;
}

.status-active {
    background: rgba(0, 123, 255, 0.2);
    color: #007bff;
    border: 1px solid #007bff;
}

.status-planned {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid #ffc107;
}

.status-unknown {
    background: rgba(108, 117, 125, 0.2);
    color: #6c757d;
    border: 1px solid #6c757d;
}

/* Feature Icons */
.feature-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* Search and Filter Styles */
.search-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 8px;
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 210, 63, 0.25);
    color: white;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Form Controls */
.form-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 8px;
}

.form-select:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 210, 63, 0.25);
    color: white;
}

.form-select option {
    background: var(--dark-bg);
    color: white;
}

/* Pagination */
.pagination .page-link {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    margin: 0 2px;
    border-radius: 8px;
}

.pagination .page-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-color);
    color: white;
}

.pagination .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Compact Mission Cards */
.mission-card-compact {
    height: 400px;
    display: flex;
    flex-direction: column;
}

.mission-card-compact .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.mission-card-compact .mission-image {
    height: 120px;
    width: 100%;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.mission-card-compact .card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.mission-card-compact .card-text {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.mission-details-compact {
    margin-top: auto;
    font-size: 0.8rem;
}

.mission-details-compact .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

/* Button Styles */
.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 20px;
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 0.8);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
    color: white;
}

/* Telescope Cards */
.telescope-card {
    border-left: 4px solid var(--accent-color);
    margin-bottom: 1rem;
}

.telescope-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.telescope-stats {
    font-size: 0.9rem;
}

.telescope-stats .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.telescope-stats .text-light {
    color: rgba(255, 255, 255, 0.95) !important;
}

/* Credit box styling */
.credit-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    display: inline-block;
}

.credit-box small {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
}

/* Contributor cards */
.contributor-icon {
    margin-bottom: 1rem;
}

.contributor-icon i {
    transition: all 0.3s ease;
}

.card:hover .contributor-icon i {
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .mission-card-compact {
        height: auto;
        min-height: 350px;
    }
    
    .card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .mission-card-compact .card-title {
        font-size: 0.9rem;
    }
    
    .mission-card-compact .card-text {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }
}

/* Loading and Animation Effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s ease-in-out infinite;
}

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

/* Filter and Search Section */
.filter-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.filter-section h5 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.empty-state i {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.empty-state h4 {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: rgba(255, 255, 255, 0.6);
}

/* Special Effects */
.glow-on-hover {
    transition: all 0.3s ease;
}

.glow-on-hover:hover {
    box-shadow: 0 0 20px rgba(255, 210, 63, 0.4);
    border-color: rgba(255, 210, 63, 0.6);
}

/* Footer */
.footer {
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.border-glow {
    border: 1px solid rgba(255, 210, 63, 0.3);
    box-shadow: 0 0 20px rgba(255, 210, 63, 0.1);
}

/* Rocket Images */
.rocket-image {
    background: transparent !important;
    background-color: transparent !important;
    mix-blend-mode: normal;
}

.card-img-top.rocket-image {
    background: transparent !important;
    background-color: transparent !important;
}

.rocket-card .card-img-top {
    background: transparent !important;
    background-color: transparent !important;
}
