/* estrutura.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 20px 0;
    position: relative;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 700px;
    margin: 0 auto;
}

/* Sistema de abas */
.tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px 0;
    gap: 8px;
}

.tab-btn {
    padding: 10px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 1rem;
}

.tab-btn:hover {
    transform: translateY(-2px);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

/* Grid de eventos */
.events-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.events-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 100%;
}

/* Cards de evento */
.event-card {
    border-radius: var(--border-radius);
    padding: 15px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    min-height: 400px;
}

.event-card:hover,
.moon-phase:hover {
    transform: translateY(-5px);
}

/* Cards sem imagem - para conjunções */
.event-card.no-image {
    min-height: 280px;
    max-width: 280px;
}

.event-card.no-image .event-header {
    margin-bottom: 12px;
}

.event-card.no-image .event-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.event-card.no-image .event-date {
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.event-card.no-image .event-details {
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.event-card.no-image .event-details p {
    margin-bottom: 6px;
}

.event-card.no-image .event-actions {
    padding-top: 8px;
}

/* Estrutura do card */
.event-header {
    justify-content: space-between;
    align-items: left;
    margin-bottom: 15px;
}

.event-date {
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 8px;
}

.event-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.event-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.event-image:hover {
    transform: scale(1.02);
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease;
}

.event-details {
    margin-bottom: 15px;
    font-size: 0.95rem;
    opacity: 0.9;
    flex-grow: 1;
}

.event-details p {
    margin-bottom: 8px;
}

.event-description {
    margin-top: 10px;
    font-style: italic;
    opacity: 0.8;
    font-size: 0.9rem;
}

.event-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 10px;
}

.btn {
    padding: 6px 10px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-share {
    padding: 6px 10px;
    opacity: 0.7;
}

.btn-share:hover {
    opacity: 1;
}

.btn-share .share-icon {
    font-size: 0.9rem;
}

/* Fases da Lua */
.moon-section {
    max-width: 100%;
    margin: 0 auto;
}

.moon-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 30px;
}

.moon-phases {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 100%;
}

.moon-phase {
    border-radius: var(--border-radius);
    padding: 15px;
    text-align: left;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 200px;
    min-height: 220px;
    transition: var(--transition);
}

.moon-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 10px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.moon-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
}

.moon-phase-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.phase-name {
    font-weight: bold;
    margin-bottom: 6px;
    font-size: 1rem;
    text-align: center;
}

.phase-date {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 8px;
    text-align: center;
}

.phase-details {
    margin-bottom: 12px;
    flex-grow: 1;
    font-size: 0.85rem;
    line-height: 1.4;
}

.phase-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    border-top: 1px solid;
    font-size: 0.95rem;
    opacity: 0.7;
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Mensagem sem eventos */
.no-events {
    text-align: center;
    padding: 40px;
    opacity: 0.7;
    font-style: italic;
    width: 100%;
    font-size: 1.1rem;
}

/* Sistema de notificação */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* Modal de imagem */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 2001;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Status de evento */
.event-status {
    border-left: 4px solid;
    padding: 8px 12px;
    margin-bottom: 12px;
    border-radius: 6px;
    font-size: 0.85em;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.event-status strong {
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.event-status.ongoing {
    animation: pulse 2s infinite;
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .tabs {
    display: flex;
    overflow-x: auto;
    padding: 15px 10px;
    gap: 8px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE */
    white-space: nowrap;
}

.tabs::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.tab-btn {
    flex: 0 0 auto;
    padding: 10px 15px;
    font-size: 0.85rem;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}




    
    .event-card {
        min-height: auto;
        max-width: 100%;
    }
    
    .event-card.no-image {
        min-height: 250px;
        max-width: 100%;
    }
    
    .event-card.no-image .event-title {
        font-size: 1.1rem;
    }
    
    .event-title {
        font-size: 1.2rem;
    }
    
    .event-details {
        font-size: 0.9rem;
    }
    
    .moon-phase {
        min-height: 200px;
        width: 180px;
        align-items: center;
        gap: 3px;
    }
    
    .moon-icon {
        width: 60px;
        height: 60px;
        margin: 0;
        flex-shrink: 0;
    }
    
    .phase-name {
        margin-bottom: 4px;
    }
    
    .phase-date {
        margin-bottom: 6px;
    }
    
    .phase-details {
        font-size: 0.82rem;
        margin-bottom: 10px;
    }
    
    .modal-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .close-modal {
        font-size: 30px;
        top: 10px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
    
    .event-status {
        padding: 6px 10px;
        font-size: 0.8em;
    }
    
    .event-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .event-date {
        align-self: flex-start;
    }
}

.modo{
    cursor: pointer;
}

@media (max-width: 420px) {
     .modo {
         top: -35px;
         position: relative;
    }
}

.hidden{
    display: none;
}

.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;
}