/* 🌞 DONKI Viewer - Clima Espacial */

.donki-section {
    background: linear-gradient(180deg, #1a0033 0%, #2d004d 50%, #4a0066 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.donki-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 193, 7, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(156, 39, 176, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.donki-section .section-title {
    color: white;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.donki-section .section-description {
    text-align: center;
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 60px;
}

/* Alertas Ativos */
.alerts-container {
    margin-bottom: 60px;
}

.alerts-container h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #ffc107;
}

.active-alerts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.alert-card {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid #ffc107;
    padding: 25px;
    border-radius: 12px;
    display: flex;
    gap: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.alert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.alert-card:hover::before {
    left: 100%;
}

.alert-card.minor {
    border-left-color: #4caf50;
}

.alert-card.moderate {
    border-left-color: #ffc107;
    animation: pulse-moderate 2s ease-in-out infinite;
}

.alert-card.strong {
    border-left-color: #ff9800;
    animation: pulse-strong 1.5s ease-in-out infinite;
}

.alert-card.severe {
    border-left-color: #f44336;
    animation: pulse-severe 1s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(244, 67, 54, 0.3);
}

.alert-card.extreme {
    border-left-color: #d50000;
    animation: pulse-extreme 0.8s ease-in-out infinite;
    box-shadow: 0 0 40px rgba(213, 0, 0, 0.5);
}

@keyframes pulse-moderate {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(255, 193, 7, 0.2);
    }

    50% {
        box-shadow: 0 0 30px rgba(255, 193, 7, 0.4);
    }
}

@keyframes pulse-strong {

    0%,
    100% {
        box-shadow: 0 0 25px rgba(255, 152, 0, 0.3);
    }

    50% {
        box-shadow: 0 0 35px rgba(255, 152, 0, 0.5);
    }
}

@keyframes pulse-severe {

    0%,
    100% {
        box-shadow: 0 0 30px rgba(244, 67, 54, 0.3);
    }

    50% {
        box-shadow: 0 0 45px rgba(244, 67, 54, 0.6);
    }
}

@keyframes pulse-extreme {

    0%,
    100% {
        box-shadow: 0 0 40px rgba(213, 0, 0, 0.5);
    }

    50% {
        box-shadow: 0 0 60px rgba(213, 0, 0, 0.8);
    }
}

.alert-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.alert-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: white;
}

.severity-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.severity-badge.minor {
    background: #4caf50;
}

.severity-badge.moderate {
    background: #ffc107;
    color: #000;
}

.severity-badge.strong {
    background: #ff9800;
}

.severity-badge.severe {
    background: #f44336;
}

.severity-badge.extreme {
    background: #d50000;
    animation: blink 1s ease-in-out infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.alert-content p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 8px;
}

.alert-time {
    font-size: 0.85rem;
    opacity: 0.7;
}

.no-alerts {
    text-align: center;
    padding: 40px;
    font-size: 1.2rem;
    opacity: 0.7;
}

/* Timeline de Eventos */
.timeline-container {
    margin-bottom: 60px;
}

.timeline-container h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #ffc107;
}

.events-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.event-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 15px;
    transition: all 0.3s ease;
}

.event-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
}

.event-flare {
    border-left: 3px solid #ffc107;
}

.event-storm {
    border-left: 3px solid #f44336;
}

.event-cme {
    border-left: 3px solid #2196f3;
}

.event-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.event-info h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: white;
}

.event-class {
    display: block;
    font-size: 0.85rem;
    color: #ffc107;
    margin-bottom: 5px;
    font-weight: 600;
}

.event-time {
    display: block;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Estatísticas */
.donki-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.donki-stat {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.donki-stat:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.05);
}

.donki-stat .value {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(45deg, #ffc107, #ff9800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.donki-stat .label {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Animações de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-card,
.event-card,
.donki-stat {
    animation: fadeInUp 0.6s ease backwards;
}

.alert-card:nth-child(1) {
    animation-delay: 0.1s;
}

.alert-card:nth-child(2) {
    animation-delay: 0.2s;
}

.alert-card:nth-child(3) {
    animation-delay: 0.3s;
}

/* Responsive */
@media (max-width: 991px) {
    .donki-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .donki-section {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    .donki-section .section-title {
        font-size: 2rem;
    }

    .donki-stats {
        grid-template-columns: 1fr;
    }

    .active-alerts {
        grid-template-columns: 1fr;
    }

    .events-timeline {
        grid-template-columns: 1fr;
    }
}