/* ===== RESET E ESTILOS GLOBAIS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    width: 100%;
    margin: 0 auto;
    line-height: 1.6;
    min-height: 100vh;
}

object {
    z-index: 1;
}

/* ===== HEADER ===== */
.header {
    text-align: center;
    padding: 30px 0;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.header p {
    font-size: 1.1rem;
}

/* ===== CONTAINER PRINCIPAL ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* ===== LAUNCH CARDS - SISTEMA DE COLUNAS OTIMIZADO ===== */
.launch-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 40px;
    justify-items: center;
}



/* Layout de coluna única para telas maiores */
@media (min-width: 1800px) {
    .launch-cards {
        grid-template-columns: repeat(auto-fit, minmax(550px, 1fr));
    }
    
    /* Quando há apenas um card, centraliza e usa largura maior */
    .launch-cards .launch-card:only-child {
        max-width: 850px;
        grid-column: 1 / -1;
        justify-self: center;
    }
    
    /* Estilo para o último card ímpar (aplicado via JS) */
    .launch-cards .last-odd-card {
        grid-column: 1 / -1;
        justify-self: center;
        /* A largura será definida via JavaScript */
    }
}

/* Layout de duas colunas para telas muito grandes */
@media (min-width: 2000px) {
    .launch-cards {
        grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    }
}

/* ===== CARD INDIVIDUAL ===== */
.launch-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    max-width: 750px;
    width: 100%;
}

.launch-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

/* Estrutura do Card */
.card-header {
    padding: 20px 25px 15px;
}

.mission-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-align: left;
}

.mission-name i {
    font-style: italic;
}

.mission-description {
    line-height: 1.6;
    margin-top: 10px;
    text-align: left;
    width: 100%;
    max-height: 120px;
    overflow-y: auto;
    padding-left: 3px;
}

.card-body {
    padding: 20px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Grid de Informações */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.9rem;
    margin-bottom: -2px;
    letter-spacing: 0.5px;
    text-align: left;
}

.info-value {
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
}

/* ===== BOTÕES E AÇÕES ===== */
.card-footer {
    padding: 20px 25px;
    gap: 15px;
    align-items: stretch;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn {
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn i {
    font-size: 15px; 
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, #666, transparent);
    transform: skewX(-25deg);
    pointer-events: none;
}

.btn:hover::before {
    animation: brilhoDourado .8s ease forwards;
}

.btn:hover {
    transform: scale(1.03);
}

/* ===== COUNTDOWN ===== */
.countdown {
    border-radius: 8px;
    padding: 15px;
    margin-top: auto;
    max-width: 400px;
    width: 80%;
    margin: 0 auto;
}

.countdown-time {
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 5px;
}

.time-unit {
    font-size: 0.8rem;
    margin-left: 2px;
    font-weight: 500;
}

.countdown-label {
    text-align: center;
    font-size: 1.1rem;
}

/* ===== PATCH OVERLAY ===== */
.patch-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.patch-modal {
    position: relative;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    max-width: 90vw;
    max-height: 90vh;
    animation: scaleIn 0.3s ease;
}

.patch-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 1001;
}

.patch-close-btn:hover {
    transform: scale(1.1);
}

.patch-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.patch-img {
    max-width: 300px;
    max-height: 300px;
}

.patch-info {
    text-align: left;
}


.patch-info p {
    font-size: 0.9rem;
}


/* Loading animation */
.patch-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    min-height: 200px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.patch-loading p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Fade in animation for image */
.patch-img.loaded {
    animation: fadeInScale 0.5s ease;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== SOBREPOSIÇÃO MODERNA ===== */
#sobreposicao {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease-out;
}

#caixa {
    background: linear-gradient(
        135deg,
        #1a1a1a 0%,
        #2d2d2d 50%,
        #1a1a1a 100%
    );
    color: #ffffff;
    padding: 30px;
    border-radius: 16px;
    width: 85%;
    max-width: 600px;
    position: relative;
    text-align: left;
    border: 1px solid #404040;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: slideUp 0.3s ease-out;
}

#caixa .texto {
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 15px;
    line-height: 1.6;
    font-size: 14px;
}

#caixa h3 {
    color: #ffffff;
    margin: 0 0 20px 0;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    border-bottom: 2px solid #404040;
    padding-bottom: 10px;
}

#caixa p {
    margin: 15px 0;
    color: #e0e0e0;
    line-height: 1.6;
}

#caixa strong {
    color: #ffffff;
    font-weight: 600;
}

#caixa a {
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid #666;
    transition: all 0.3s ease;
    padding-bottom: 1px;
}

#caixa a:hover {
    color: #f0f0f0;
    border-bottom-color: #ffffff;
}

#fechar {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #555;
    color: #ffffff;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

#fechar:hover {
    background: #666;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* ===== ALERTAS ===== */
.custom-alert {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #222;
    color: #ccc;
    padding: 20px 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    border: 1px solid #444;
    animation: slideIn 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
}

/* ===== ESTILOS DE TABELAS ===== */
.titulo {
    background-color: black;
    color: white;
    font-weight: bold;
}

.linha1 {
    background-color: rgb(213, 213, 213);
    color: black;
    font-weight: bold;
    position: sticky;
    top: 0;
}

.historico tr, .historico tr:hover {
    transition: all linear .2s;
}

.nomedoevento {
    cursor: pointer;
}

/* ===== ELEMENTOS GERAIS ===== */
.none, .hidden {
    display: none;
}

#sentinela1, #sentinela2 {
    height: 10px;
    display: block;
}

a {
    text-decoration: none;
}

.outros a {
    color: gray;
}

.outros i {
    margin: 0 5px 0 5px;
}

.beammeup {
    left: 50%;
    font-size: 13px;
    transform: translateX(-50%);
    text-align: center;
    top: 7px;
    position: fixed;
    padding: 5px;
    line-height: 15px;
    border-radius: 10px;
    transition: background-color 0.2s;
}

/* ===== CRONÔMETRO ===== */
.numero-unidade {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin-right: 0.5em;
    font-size: 16px;
}

.unidade {
    font-size: 0.75em;
    line-height: 1;
}

/* ===== RODAPÉ ===== */
.footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
    color: rgba(255, 255, 255, 0.6);
}

.footer select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    padding: 8px 12px;
    margin-left: 10px;
}

    #notifica {
    position: fixed; 
    right: 10px; 
    bottom: 10px;
    width: 50px; 
    height: 50px;
}

/* ===== ANIMAÇÕES ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { 
        opacity: 0;
        transform: scale(0.8);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes brilhoDourado {
    0% { left: -75%; }
    100% { left: 125%; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===== SCROLLBAR PERSONALIZADA ===== */
#caixa .texto::-webkit-scrollbar {
    width: 6px;
}

#caixa .texto::-webkit-scrollbar-track {
    background: #2d2d2d;
    border-radius: 3px;
}

#caixa .texto::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 3px;
}

#caixa .texto::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* ===== RESPONSIVIDADE ===== */

/* Tablets e dispositivos médios */
@media (max-width: 1199px) {
    .launch-cards {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 15px;
    }
    
    .card-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .action-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Tablets pequenos */
@media (max-width: 925px) {
    .principal1 {
        text-align: justify;
        font-size: 18px;
        margin: 50px 8% 0 8%;
    }
    
    .historico {
        width: 98%;
        height: 300px;
        margin: 35px auto;
        overflow-y: auto;
    }
    
    .historico table {
        text-align: center;
        font-size: 13px;
        width: 100%;
    }
    
    .listas {
        text-align: center;
        width: 90%;
        margin: 0 auto;
        font-size: 18px;
    }
    
    .lista_tit1 {
        margin: 10px 0;
        font-size: 17px;
        padding: 5px 0;
        text-align: center;
        background-color: rgb(213, 213, 213);
        color: black;
        border-radius: 7px;
    }
    
    .info_lanc {
        display: none;
    }
    

}

/* Mobile */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .mission-name {
        font-size: 1.3rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .patch-modal {
        padding: 10px;
        margin: 10px;
        max-width: 300px;
    }
    
    .patch-img {
        max-width: 280px;
    }
    
    #caixa {
        width: 90%;
        padding: 25px 20px;
        margin: 20px;
    }
    
    #caixa h3 {
        font-size: 20px;
        margin-right: 40px;
    }
    
    #fechar {
        top: 10px;
        right: 10px;
        padding: 6px 10px;
    }
    
    .info-label {
    margin-bottom: -5px;
}

.info-value {
    margin-bottom: -5px;
}

}

/* Mobile pequeno */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .principal1 {
        font-size: 16px;
        margin: 50px 5% 0 5%;
    }
    
    .historico {
        height: 200px;
        font-size: 10px;
    }
    
    .historico td {
        padding: 5px;
    }
    
    .listas {
        font-size: 16px;
    }
    
    .lista_tit1 {
        font-size: 15px;
    }
    
    .patch-img {
        max-width: 200px;
        max-height: 200px;
    }
    
    .patch-modal {
        padding: 15px;
    }
    
    .caixa_cron {
        width: 45%;
        margin: 0 auto;
        padding: 10px;
        border-radius: 10px;
    }
 
}

/* Desktop grande */
@media (min-width: 926px) {
    .principal1 {
        text-align: justify;
        font-size: 18px;
        margin: 50px 15% 0 15%;
    }
    
    .historico {
        height: 350px;
        width: 70vw;
        max-width: 1000px;
        font-size: 15px;
        text-align: center;
        margin-top: 35px;
        overflow-y: auto;
    }
    
    .historico table {
        text-align: center;
        width: 100%;
        margin: 0 auto;
    }
    
    .tab1, .tab2 {
        margin: 20px auto;
    }
    
    .historico td {
        padding: 5px;
        border-radius: 5px;
    }
    
    .listas {
        width: 80%;
        max-width: 900px;
        margin: 0 auto;
        font-size: 16px;
    }
    
    .lista_tit1 {
        width: 400px;
        margin: 20px auto;
        padding: 5px 0;
        font-size: 18px;
        text-align: center;
        border-radius: 5px;
    }
   
}



    
    