
.astronauts-explorer {
    padding-bottom: 20px;
}


/* Hero / Header Section */
.astro-hero {
    padding: 60px 20px 40px;
    background: linear-gradient(to bottom, rgba(8,11,18,0.5), transparent);
    text-align: center;
}
.astro-hero h1 {
    font-family: var(--fn-display);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}
.astro-hero p {
    color: var(--muted);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* Filter Bar */
.astro-filter-bar {
    max-width: 1000px;
    margin: 0 auto 40px;
    padding: 0 20px;
}
.filter-glass {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.search-group {
    position: relative;
    flex: 1;
}
.search-group i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 18px;
}
.astro-input {
    width: 100%;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 14px 20px 14px 50px;
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: all 0.3s;
}
.astro-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(0,210,255,0.1);
    background: rgba(0,0,0,0.3);
}

.select-group {
    position: relative;
    width: 100%;
}
.astro-select {
    width: 100%;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 14px 20px;
    color: #fff;
    font-size: 15px;
    appearance: none;
    outline: none;
}
.select-group::after {
    content: '↓';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}

@media (min-width: 768px) {
    .filter-glass {
        flex-direction: row;
        align-items: center;
        padding: 10px 10px 10px 20px;
    }
    .select-group {
        width: 250px;
    }
    .btn-filter {
        padding: 14px 30px;
        border-radius: 14px;
        background: var(--accent);
        color: #000;
        font-weight: 700;
        border: none;
        cursor: pointer;
        transition: all 0.2s;
    }
    .btn-filter:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px var(--accent-glow);
    }
}

/* Grid Layout */
.astro-grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Desktop Cards */
.astro-cards {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

.astro-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.astro-card:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.15);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.photo-box {
    aspect-ratio: 4/5;
    position: relative;
    overflow: hidden;
    background: #000;
}
.photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}
.astro-card:hover .photo-box img {
    transform: scale(1.05);
}

.astro-card-info {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.astro-card-name {
    font-family: var(--fn-display);
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 4px;
    color: #fff;
}
.astro-card-country {
    font-family: var(--fn-mono);
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}
.astro-card-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.meta-label { font-size: 8px; color: var(--muted); text-transform: uppercase; }
.meta-value { font-size: 13px; font-weight: 700; color: var(--accent); }

/* Mobile List */
.astro-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.astro-list-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px;
    text-decoration: none;
    color: inherit;
}

.list-thumb {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    background: #000;
}

.list-info {
    flex: 1;
}
.list-name { font-family: var(--fn-display); font-size: 15px; font-weight: 700; }
.list-agency { font-size: 12px; color: var(--muted); }

@media (min-width: 768px) {
    .astro-cards { display: grid; }
    .astro-list { display: none; }
}

/* Pagination */
.astro-pagination {
    margin-top: 30px;
    margin-bottom: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.pg-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    font-family: var(--fn-mono);
    transition: all 0.2s;
}
.pg-btn:hover:not(.disabled) {
    background: rgba(255,255,255,0.08);
    border-color: var(--accent);
}
.pg-btn.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    font-weight: 800;
}
.pg-btn.disabled {
    opacity: 0.3;
    pointer-events: none;
}
.pg-nav {
    width: auto;
    padding: 0 20px;
}

/* Detail Page */
.astro-detail-view {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}
.detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
@media (min-width: 768px) {
    .detail-grid { grid-template-columns: 350px 1fr; }
}

.detail-sidebar {
    position: relative;
    margin-bottom: 20px;
}
@media (min-width: 768px) {
    .detail-sidebar {
        position: sticky;
        top: 110px;
        margin-bottom: 0;
    }
}

.detail-photo {
    width: 100%;
    border-radius: 32px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    margin-bottom: 30px;
}

.detail-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.stat-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    padding: 15px;
    border-radius: 20px;
    text-align: center;
}

.detail-main h1 {
    font-family: var(--fn-display);
    font-size: clamp(32px, 6vw, 56px);
    line-height: 1;
    margin-bottom: 20px;
}
.detail-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}
.detail-badge {
    background: rgba(0,210,255,0.1);
    border: 1px solid rgba(0,210,255,0.2);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 50px;
    font-family: var(--fn-mono);
    font-size: 11px;
    text-transform: uppercase;
}

.detail-section {
    margin-bottom: 30px;
    background: rgba(14, 20, 32, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 40px;
    border-radius: 28px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);

}

.section-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-family: var(--fn-display);
    font-size: 20px;
    color: var(--accent);
}
.section-head::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(0,210,255,0.2), transparent);
}

.bio-text {
    font-size: 17px;
    line-height: 1.8;
    color: rgba(255,255,255,0.8);
}
.info-table { width: 100%; border-collapse: collapse; }
.info-table tr { border-bottom: 1px solid rgba(255,255,255,0.03); }
.info-table td { padding: 12px 0; font-size: 15px; }
.td-label { width: 140px; color: var(--muted); font-family: var(--fn-mono); font-size: 11px; text-transform: uppercase; }
.td-value { color: #fff; font-weight: 500; }
