/* =============================================================================
   ORBITALPEDIA.CSS
   Spaceflight.ro · Orbitalpedia
   Path: /assets/css/orbitalpedia.css
============================================================================= */


/* =============================================================================
   1. RESET & BASE
============================================================================= */

:root {
    --btn-gap: 12px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: Cousine, monospace;
    background: #050b14;
    -webkit-text-size-adjust: 100%;
}


/* =============================================================================
   2. HEADER
============================================================================= */

.orbitalpedia-header {
    position: relative;
    width: 100%;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(120, 180, 255, 0.10);
    background: linear-gradient(180deg, rgba(10, 18, 35, 0.88), rgba(5, 10, 20, 0.55));
    backdrop-filter: blur(10px);
    z-index: 5;
}

.header-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.spaceflight-logo {
    margin: 0;
    font-family: Cousine, monospace;
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 8px;
    color: #d7ecff;
    text-shadow:
        0 0 10px rgba(120, 190, 255, 0.35),
        0 0 25px rgba(0, 140, 255, 0.25);
}

.header-subtitle {
    margin-top: 6px;
    font-size: 11px;
    letter-spacing: 6px;
    color: rgba(180, 220, 255, 0.72);
}

.header-glow {
    position: absolute;
    width: 700px;
    height: 200px;
    background: radial-gradient(ellipse, rgba(80, 160, 255, 0.18), transparent 70%);
    filter: blur(40px);
    animation: headerGlow 8s ease-in-out infinite;
}

@keyframes headerGlow {
    0%, 100% { opacity: 0.45; transform: scale(1); }
    50%       { opacity: 0.85; transform: scale(1.08); }
}


/* =============================================================================
   3. SPACE BACKGROUND
============================================================================= */

.space-background {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(80, 140, 255, 0.22), transparent 35%),
        radial-gradient(circle at 85% 75%, rgba(0, 180, 255, 0.16), transparent 30%),
        radial-gradient(circle at 50% 50%, rgba(0, 70, 140, 0.22), transparent 60%),
        linear-gradient(180deg, #07111f 0%, #050c17 35%, #030811 100%);
    pointer-events: none;
}


/* =============================================================================
   4. STARS
============================================================================= */

.stars {
    position: absolute;
    inset: 0;
    background-repeat: repeat;
    animation: driftStars linear infinite;
}

.stars-small {
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.9) 1px, transparent 1px),
        radial-gradient(rgba(255, 255, 255, 0.6) 1px, transparent 1px),
        radial-gradient(rgba(120, 220, 255, 0.5) 1px, transparent 1px);
    background-size: 140px 140px, 210px 210px, 320px 320px;
    background-position: 0 0, 40px 70px, 130px 40px;
    opacity: 0.85;
    animation-duration: 220s;
}

.stars-medium {
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.8) 1.5px, transparent 1.5px),
        radial-gradient(rgba(120, 220, 255, 0.4) 2px, transparent 2px);
    background-size: 260px 260px, 420px 420px;
    background-position: 100px 40px, 220px 180px;
    opacity: 0.35;
    animation-duration: 340s;
    animation-direction: reverse;
}

@keyframes driftStars {
    from { transform: translateY(0); }
    to   { transform: translateY(-200px); }
}


/* =============================================================================
   5. NEBULA
============================================================================= */

.nebula {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.65;
}

.nebula-1 {
    width: 900px;
    height: 900px;
    left: -250px;
    top: -200px;
    background: radial-gradient(circle,
        rgba(90, 160, 255, 0.50),
        rgba(0, 180, 255, 0.18),
        transparent 72%
    );
}

.nebula-2 {
    width: 750px;
    height: 750px;
    right: -180px;
    bottom: -180px;
    background: radial-gradient(circle,
        rgba(0, 180, 255, 0.30),
        rgba(120, 220, 255, 0.10),
        transparent 70%
    );
}


/* =============================================================================
   6. SPACE TEXTURE & RIGHT HAZE
============================================================================= */

.space-texture {
    position: absolute;
    inset: 0;
    background-image: url('https://www.transparenttextures.com/patterns/stardust.png');
    opacity: 0.34;
    mix-blend-mode: screen;
    filter: brightness(1.4) contrast(1.2);
    pointer-events: none;
}

.right-haze {
    position: absolute;
    top: -10%;
    right: -15%;
    width: 900px;
    height: 1400px;
    background: radial-gradient(circle at 40% 50%,
        rgba(90, 190, 255, 0.12),
        rgba(0, 120, 255, 0.04),
        transparent 70%
    );
    filter: blur(90px);
    opacity: 0.7;
    pointer-events: none;
    animation:
        hazeFloat 16s ease-in-out infinite,
        hazePulse 9s ease-in-out infinite;
    z-index: 0;
}

@keyframes hazeFloat {
    0%   { transform: translate3d(0, 0, 0); }
    50%  { transform: translate3d(-20px, 15px, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

@keyframes hazePulse {
    0%, 100% { opacity: 0.45; }
    50%       { opacity: 0.75; }
}


/* =============================================================================
   7. CONTENT WRAPPER
============================================================================= */

#content {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
    overflow-y: visible;
}

header {
    width: 100%;
    height: 100px;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* =============================================================================
   8. INTERFACE BUTTONS (back / key)
============================================================================= */

.back-button,
.right-button {
    position: fixed;
    top: 26px;
    height: 42px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1px solid rgba(140, 200, 255, 0.10);
    background: linear-gradient(180deg, rgba(18, 28, 48, 0.82), rgba(8, 14, 24, 0.68));
    backdrop-filter: blur(12px);
    color: #d7ecff;
    font-family: Cousine, monospace;
    font-size: 12px;
    letter-spacing: 0.5px;
    cursor: pointer;
    z-index: 50;
    transition:
        transform 0.18s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.back-button { left: 20px; }

.right-button {
    right: 20px;
    width: 42px;
    padding: 0;
    font-size: 16px;
}

.back-button:hover,
.right-button:hover {
    transform: translateY(-2px);
    border-color: rgba(120, 190, 255, 0.35);
    background: linear-gradient(180deg, rgba(60, 120, 220, 0.22), rgba(20, 40, 90, 0.18));
    box-shadow: 0 0 18px rgba(80, 160, 255, 0.18);
}


/* =============================================================================
   9. NAV BAR
============================================================================= */

nav {
    position: relative;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--btn-gap);
    margin: 18px auto 0 auto;
    padding: 18px 20px 16px 20px;
    width: fit-content;
    max-width: calc(100% - 40px);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(20, 30, 50, 0.72), rgba(8, 14, 26, 0.58));
    border: 1px solid rgba(140, 200, 255, 0.10);
    box-shadow:
        0 0 30px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(16px);
    overflow: visible;
}

nav .menu-inner {
    display: flex;
    overflow-x: unset;
    overflow-y: visible;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

button,
a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.7rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    color: #d7e8ff;
    font-size: 13px;
    letter-spacing: 0.4px;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
    flex: 0 0 auto;
}

button:hover,
a:hover {
    transform: translateY(-2px);
    background: linear-gradient(180deg, rgba(120, 190, 255, 0.18), rgba(60, 120, 220, 0.10));
    border-color: rgba(120, 190, 255, 0.35);
    box-shadow: 0 0 18px rgba(80, 160, 255, 0.18);
}

#yearsBtn.active        { background: hsl(50 80% 50% / 0.7); color: var(--gray-12); }
.active-decade          { background: hsl(200 80% 50% / 0.4); font-weight: bold; }
.year-btn.active-year   { background-color: #ae0000 !important; color: #fff !important; }


/* =============================================================================
   10. FRAMES CONTAINER
============================================================================= */

#frames-container {
    display: flex;
    gap: 20px;
    flex: 1;
    min-height: 0;
    margin: 18px 20px 48px 20px;
    align-items: flex-start;
}


/* =============================================================================
   11. FRAME LEFT
============================================================================= */

.frame-left {
    flex: 2;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 30px;
    padding: 18px 14px 14px 14px;
    background: linear-gradient(135deg, rgba(18, 30, 52, 0.72), rgba(8, 16, 30, 0.82));
    border: 1px solid rgba(120, 190, 255, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        inset 0 0 80px rgba(80, 160, 255, 0.05),
        0 0 30px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 200, 180, 0.35) transparent;
    overscroll-behavior: contain;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 20px, black calc(100% - 20px), transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, black 20px, black calc(100% - 20px), transparent 100%);
    -webkit-mask-clip: padding-box;
    mask-clip: padding-box;
}

.frame-left::-webkit-scrollbar       { width: 8px; }
.frame-left::-webkit-scrollbar-track { background: transparent; }

.frame-left::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(0, 200, 180, 0.45), rgba(0, 120, 110, 0.45));
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.frame-left::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(0, 229, 204, 0.75), rgba(0, 160, 145, 0.75));
}

.frame-left > * { position: relative; z-index: 1; }

.frame-left::before { display: none; }

.frame-left::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.10),
        rgba(255, 255, 255, 0.02),
        rgba(120, 190, 255, 0.08)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.frame-left p {
    font-family: Cousine, monospace;
    text-align: center;
    margin-top: 20px;
}

.scroll-fade-top {
    position: sticky;
    top: 0;
    height: 42px;
    margin-bottom: -42px;
    background: linear-gradient(180deg,
        rgba(10, 18, 34, 1) 0%,
        rgba(10, 18, 34, 0.92) 25%,
        rgba(10, 18, 34, 0.55) 60%,
        rgba(10, 18, 34, 0.00) 100%
    );
    pointer-events: none;
    z-index: 20;
    width: 100%;
    display: block;
    flex-shrink: 0;
}


/* =============================================================================
   12. FRAME RIGHT
============================================================================= */

.frame-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 10px;
    overflow: hidden;
}

.frame-top,
.frame-bottom {
    flex: none;
    border-radius: var(--radius-2);
    display: flex;
    flex-direction: column;
    padding: 15px;
    font-family: Cousine, monospace;
    font-size: 12px;
    line-height: 1.4;
    word-wrap: break-word;
    color: #ffffff;
    transform: translateX(100%);
    opacity: 0;
    animation: slideInRight 0.5s forwards;
    overflow-y: auto;
    white-space: pre-wrap;
}

.frame-top {
    flex: 0 0 30%;
    animation-delay: 0.1s;
    line-height: 1.6;
    color: rgba(220, 235, 255, 0.88);
    padding: 16px 18px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(120, 190, 255, 0.04));
    border: 1px solid rgba(120, 190, 255, 0.12);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 0 30px rgba(80, 160, 255, 0.04),
        0 8px 32px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(16px);
}

.frame-bottom {
    flex: 1;
    animation-delay: 0.2s;
    line-height: 1.6;
    color: rgba(220, 235, 255, 0.88);
    justify-content: flex-start;
    align-items: stretch;
    padding: 16px 18px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(120, 190, 255, 0.04));
    border: 1px solid rgba(120, 190, 255, 0.12);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 0 30px rgba(80, 160, 255, 0.04),
        0 8px 32px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(16px);
}


/* =============================================================================
   13. DATA TABLE — BASE
============================================================================= */

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: Cousine;
    font-size: 10px;
    background: transparent;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 1;
    position: relative;
}

.data-table.visible { opacity: 1; transform: translateY(0); }

.data-table th {
    padding: 10px 10px;
    border: none;
    border-bottom: 1px solid rgba(120, 190, 255, 0.12);
    background: rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(10px);
    color: rgba(220, 235, 255, 0.88);
    text-align: center;
    font-size: 10px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.data-table th.visible { opacity: 1; transform: translateY(0); }

.data-table td {
    padding: 7px 10px;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.035);
    color: rgba(220, 235, 255, 0.92);
    background-color: inherit;
}

.data-table tbody tr {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.data-table tbody tr.visible { opacity: 1; transform: translateY(0); }

.data-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(120, 190, 255, 0.08), rgba(60, 120, 220, 0.05)) !important;
    box-shadow: inset 0 0 0 1px rgba(120, 190, 255, 0.10);
    backdrop-filter: blur(8px);
    transform: translateY(-1px);
    transition: all 0.18s ease;
}

.data-table tbody tr.active-row {
    background: linear-gradient(135deg, rgba(80, 140, 255, 0.22), rgba(120, 190, 255, 0.15)) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.10),
        inset 0 0 20px rgba(80, 160, 255, 0.12),
        inset 4px 0 0 rgba(120, 190, 255, 0.9),
        0 0 18px rgba(80, 160, 255, 0.10);
    backdrop-filter: blur(14px);
    position: relative;
}

.data-table tbody tr.active-row td { color: #ffffff !important; }


/* =============================================================================
   14. DATA TABLE — ZEBRA STRIPING
============================================================================= */

.data-table tbody tr.row-odd  { background: rgba(255, 255, 255, 0.018); }
.data-table tbody tr.row-even { background: rgba(255, 255, 255, 0.035); }


/* =============================================================================
   15. DATA TABLE — CYAN / TEAL ROW TINTS
============================================================================= */

/* Odd rows — very subtle teal wash */
.data-table tbody tr.row-odd td {
    background: rgba(0, 180, 160, 0.028) !important;
    color: rgba(200, 240, 235, 0.85);
}

/* Even rows — slightly stronger teal */
.data-table tbody tr.row-even td {
    background: rgba(0, 180, 160, 0.055) !important;
    color: rgba(200, 240, 235, 0.85);
}

/* Mission name column — bright cyan */
.data-table td:nth-child(6) {
    color: #5eeee0 !important;
    font-weight: bold;
    letter-spacing: 0.2px;
}

/* Active row — teal glow */
.data-table tbody tr.active-row {
    background: rgba(0, 180, 160, 0.20) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.10),
        inset 0 0 20px rgba(0, 200, 180, 0.12),
        inset 4px 0 0 rgba(0, 229, 204, 0.9),
        0 0 18px rgba(0, 180, 160, 0.10);
}

.data-table tbody tr.active-row td {
    color: #ffffff !important;
}

/* Table header — teal accent */
.data-table th {
    color: rgba(0, 210, 190, 0.70) !important;
    border-bottom: 1px solid rgba(0, 200, 180, 0.15) !important;
    background: rgba(0, 200, 180, 0.04) !important;
}


/* =============================================================================
   16. DATA TABLE — COLUMN SPECIFICS
============================================================================= */

.data-table td:nth-child(6) {
    font-weight: 700;
    color: #dcecff;
    letter-spacing: 0.2px;
}

.data-table td:nth-child(1),
.data-table td:nth-child(2),
.data-table td:nth-child(3),
.data-table td:nth-child(4),
.data-table td:nth-child(5),
.data-table td:nth-child(7),
.data-table td:nth-child(8) {
    color: rgba(220, 235, 255, 0.82);
}


/* =============================================================================
   17. EXPANDABLE ROWS
============================================================================= */

.data-table tbody tr.expandable { cursor: pointer; }

.data-table tbody tr.details-row td {
    padding: 0;
    border: none;
    background: transparent !important;
}

.details-container {
    max-height: 0;
    overflow: hidden;
    margin: 0 10px;
    border-radius: 20px;
    background: transparent;
    border: 1px solid rgba(120, 190, 255, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        inset 0 0 30px rgba(80, 160, 255, 0.04),
        0 10px 30px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: max-height 0.35s ease;
    position: relative;
}

.details-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 8%;
    width: 84%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(120, 190, 255, 0.18), transparent);
    opacity: 0.8;
}

.data-table tbody tr.details-row {
    height: 0;
    background: transparent !important;
    opacity: 1 !important;
    transform: none !important;
}

.data-table tbody tr.expandable.expanded + tr.details-row .details-container {
    margin: 6px 10px 12px 10px;
    max-height: 1000px;
}

/* reusable-launch left accent */
.data-table tbody tr.reusable-launch td:first-child { position: relative; }

.data-table tbody tr.reusable-launch td:first-child::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18%;
    width: 2px;
    height: 64%;
    border-radius: 999px;
    background: linear-gradient(180deg,
        rgba(80, 255, 160, 0.10),
        rgba(80, 255, 160, 0.75),
        rgba(80, 255, 160, 0.10)
    );
    box-shadow: 0 0 10px rgba(80, 255, 160, 0.35);
    pointer-events: none;
}

.details-content {
    padding: 8px 10px;
    font-size: 10px;
    color: #cfd8e3;
}

.details-container { pointer-events: none; }


/* =============================================================================
   18. REUSABLE CARD (booster details)
============================================================================= */

.reusable-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px;
    margin-top: 5px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(120, 190, 255, 0.03));
    border: 1px solid rgba(120, 190, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    font-size: 12px;
    position: relative;
    overflow: hidden;
}

.reusable-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14%;
    width: 3px;
    height: 72%;
    border-radius: 999px;
    background: linear-gradient(180deg,
        rgba(255, 198, 0, 0.10),
        rgba(255, 198, 0, 0.95),
        rgba(255, 198, 0, 0.10)
    );
    box-shadow: 0 0 12px rgba(255, 198, 0, 0.30);
}

.reuse-grid {
    display: grid;
    grid-template-columns: 56px 1fr 1fr;
    gap: 15px;
    align-items: center;
}

.reuse-icon {
    width: 100%;
    max-width: 90px;
    max-height: 90px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35));
}

.reuse-block          { font-size: 13px; line-height: 1.5; }
.reuse-block strong   { color: #ffc600; }
.reuse-status-ok      { color: #4caf50; font-weight: bold; }
.reuse-status-fail    { color: #ff5252; font-weight: bold; }

.landing-row {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 3px;
    gap: 5px;
}

.landing-icon {
    width: 70px;
    height: 50px;
    opacity: 0.9;
    flex-shrink: 0;
}


/* =============================================================================
   19. INLINE BADGES & STATUS DOTS
============================================================================= */

.orbital, .suborbital, .success, .fail, .gray, .part {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 25%;
}

/* TYPE badge — teal-tinted to match scheme */
.orbital    {
    width: 15px; height: 13px;
    background: #063a3a;
    color: #00e5cc;
    border: 1px solid rgba(0, 200, 180, 0.45);
    font-size: 8px;
    font-weight: bold;
}
.suborbital {
    width: 15px; height: 13px;
    background: #3a2500;
    color: #ffc940;
    border: 1px solid rgba(255, 180, 0, 0.45);
}

/* STATUS dots — slightly larger with glows */
.success {
    width: 12px; height: 12px;
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.75);
}
.fail {
    width: 12px; height: 12px;
    background: #ef4444;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.75);
}
.gray {
    width: 12px; height: 12px;
    background: #4a5568;
    box-shadow: none;
}
.part {
    width: 12px; height: 12px;
    background: #dfa027;
    box-shadow: 0 0 5px rgba(223, 160, 39, 0.55);
}


/* =============================================================================
   20. STATS CARDS
============================================================================= */

.stats-card {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    background: transparent;
    box-shadow: none;
    flex: 1 1 auto;
    align-content: stretch;
    height: 100%;
}

.stats-item {
    flex: 1 1 45%;
    min-width: 140px;
    align-self: stretch;
    padding: 12px 14px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(120, 190, 255, 0.03));
    border: 1px solid rgba(120, 190, 255, 0.10);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        inset 0 0 20px rgba(80, 160, 255, 0.03),
        0 4px 16px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.stats-item::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 32px; height: 2px;
    background: linear-gradient(90deg, rgba(0, 200, 180, 0.7), transparent);
}

.stats-item::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 2px; height: 32px;
    background: linear-gradient(180deg, rgba(0, 200, 180, 0.7), transparent);
}

.stats-item strong {
    display: block;
    color: rgba(0, 210, 190, 0.65);
    font-size: 9px;
    letter-spacing: 1.2px;
    margin-bottom: 8px;
    font-weight: 400;
}

.stats-item span,
.stats-item .stat-value {
    font-size: 14px;
    font-weight: bold;
    display: inline;
    color: #ffffff;
    white-space: nowrap;
    text-shadow:
        0 0 10px rgba(0, 200, 180, 0.8),
        0 0 25px rgba(0, 160, 140, 0.4),
        0 0 50px rgba(0, 120, 110, 0.2);
    letter-spacing: 2px;
}


/* =============================================================================
   21. SEARCH
============================================================================= */

#search-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 4px;
    flex-wrap: nowrap;
}

#search-input {
    width: 320px;
    max-width: 42vw;
    height: 42px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(120, 190, 255, 0.12);
    background: linear-gradient(180deg, rgba(10, 18, 35, 0.78), rgba(5, 10, 20, 0.62));
    color: #d7ecff;
    font-family: Cousine, monospace;
    font-size: 13px;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

#search-input:focus {
    border-color: rgba(120, 190, 255, 0.45);
    box-shadow: 0 0 12px rgba(80, 160, 255, 0.18);
}

#search-input::placeholder { color: rgba(210, 230, 255, 0.32); }

#search-btn {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 14px;
    font-size: 15px;
    flex-shrink: 0;
}

#search-btn:hover { background: #e2e2e2; color: black; }

.search-summary {
    font-size: 11px;
    letter-spacing: 1px;
    color: rgba(120, 190, 255, 0.7);
    padding: 8px 4px 12px 4px;
    text-align: center;
}


/* =============================================================================
   22. RIGHT ACTION BUTTON
============================================================================= */

.right-action-btn {
    background: linear-gradient(180deg, rgba(60, 120, 220, 0.22), rgba(20, 40, 90, 0.18));
    color: #d7ecff;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(120, 190, 255, 0.25);
    cursor: pointer;
    opacity: 0;
    transform: translateY(-10px);
    animation: fadeInSlideDown 0.5s forwards;
    transition: background 0.2s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    backdrop-filter: blur(12px);
    letter-spacing: 0.5px;
    font-family: Cousine, monospace;
    font-size: 12px;
}

.right-action-btn:hover {
    background: linear-gradient(180deg, rgba(80, 160, 255, 0.28), rgba(40, 80, 180, 0.22));
    border-color: rgba(120, 190, 255, 0.5);
    box-shadow: 0 0 18px rgba(80, 160, 255, 0.2);
    color: #ffffff;
}


/* =============================================================================
   23. ANIMATIONS
============================================================================= */

@keyframes slideInRight {
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeInSlideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* =============================================================================
   24. FOOTER
============================================================================= */

.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    z-index: 25;
    font-size: 10px;
    letter-spacing: 2px;
    color: rgba(180, 220, 255, 0.38);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(5, 10, 20, 0.55));
    backdrop-filter: blur(4px);
    pointer-events: none;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(120, 190, 255, 0.25), transparent);
}


/* =============================================================================
   25. RESPONSIVE — LANDSCAPE
============================================================================= */

@media screen and (orientation: landscape) {
    #frames-container { flex-direction: row; align-items: stretch; }
    .frame-left  { flex: 2.2; }
    .frame-right { flex: 1; min-width: 340px; max-width: 420px; }
}


/* =============================================================================
   26. RESPONSIVE — PORTRAIT
============================================================================= */

@media screen and (orientation: portrait) {
    #frames-container {
        flex-direction: column;
        gap: 14px;
        margin: 14px 14px 42px 14px;
    }

    .frame-left {
        flex: 1 1 auto;
        min-height: 0;
        width: 100%;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .frame-right { flex: none; width: 100%; max-width: 100%; min-height: 240px; }

    nav { max-width: calc(100% - 16px); padding: 12px; }

    .menu-inner {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: visible;
        padding-top: 4px;
        scrollbar-width: none;
    }

    .menu-inner::-webkit-scrollbar { display: none; }

    #search-input { width: 180px; max-width: 48vw; }
}


/* =============================================================================
   27. RESPONSIVE — MOBILE (max 768px)
============================================================================= */

@media (max-width: 768px) {
    html, body {
        overflow-y: auto;
        overflow-x: hidden;
        height: auto;
        min-height: 100%;
    }

    #content { height: auto; min-height: 100vh; overflow: visible; }

    #frames-container {
        flex-direction: column;
        height: auto;
        margin: 14px 10px 60px 10px;
        overflow: visible;
    }

    .frame-left  { height: auto; min-height: 300px; overflow: visible; }
    .frame-right { height: auto; overflow: visible; }

    .table-scroll-wrapper {
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        scrollbar-width: thin;
        scrollbar-color: rgba(0, 200, 180, 0.35) transparent;
    }

    .table-scroll-wrapper::-webkit-scrollbar       { height: 4px; }
    .table-scroll-wrapper::-webkit-scrollbar-track { background: transparent; }
    .table-scroll-wrapper::-webkit-scrollbar-thumb {
        background: linear-gradient(90deg, rgba(0, 200, 180, 0.45), rgba(0, 120, 110, 0.45));
        border-radius: 999px;
    }

    .data-table { min-width: 600px; }

    .orbitalpedia-header { height: 80px; }
    .spaceflight-logo    { font-size: 28px; letter-spacing: 4px; }
    .header-subtitle     { font-size: 9px; letter-spacing: 3px; }

    .site-footer {
        text-align: center;
        padding: 8px 10px;
        height: auto;
    }

    .footer-rights { display: block; align-items: center; }
}
