/* 🌍 EPIC Viewer - Terra ao Vivo */

.earth-section {
    background: linear-gradient(180deg, #000000 0%, #0a1929 50%, #1a2332 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.earth-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(66, 153, 225, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(102, 126, 234, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

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

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

.earth-viewer {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
}

/* Imagem da Terra */
.earth-image-container {
    position: relative;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    box-shadow:
        0 0 80px rgba(66, 153, 225, 0.4),
        0 0 120px rgba(66, 153, 225, 0.2),
        inset 0 0 60px rgba(0, 0, 0, 0.5);
    background: radial-gradient(circle, #1a1a2e 0%, #000 100%);
}

#epic-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: gentle-rotate 120s linear infinite;
    transition: transform 0.5s ease;
}

@keyframes gentle-rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Destaque da Amazônia */
.amazon-highlight {
    position: absolute;
    top: 42%;
    left: 33%;
    width: 18%;
    height: 18%;
    border: 3px solid #48bb78;
    border-radius: 50%;
    box-shadow:
        0 0 20px #48bb78,
        0 0 40px rgba(72, 187, 120, 0.5),
        inset 0 0 20px rgba(72, 187, 120, 0.2);
    pointer-events: none;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

@keyframes zoom-in {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes focus-state {
    0% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

/* Transição suave do círculo */
.amazon-highlight {
    transition: top 0.6s ease, left 0.6s ease, width 0.6s ease, height 0.6s ease;
}

/* Loading Spinner */
.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    z-index: 10;
}

.loading-spinner::before {
    content: '';
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #48bb78;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-spinner::after {
    content: 'Carregando...';
    color: white;
    font-size: 0.9rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Painel de Controles e Info */
.earth-controls {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
}

.date-slider {
    margin-bottom: 25px;
}

.date-slider label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    opacity: 0.9;
}

#epic-date-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    -webkit-appearance: none;
}

#epic-date-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.5);
}

#epic-date-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    cursor: pointer;
    border: none;
}

#epic-current-date {
    display: block;
    margin-top: 15px;
    font-size: 1.1rem;
    text-align: center;
    color: #48bb78;
    font-weight: 500;
}

.earth-actions {
    display: flex;
    gap: 15px;
}

.earth-actions button {
    flex: 1;
    padding: 12px 20px;
    background: rgba(72, 187, 120, 0.2);
    border: 1px solid rgba(72, 187, 120, 0.5);
    border-radius: 8px;
    color: white;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.earth-actions button:hover {
    background: rgba(72, 187, 120, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
}

/* Estados da Amazônia */
.amazon-states {
    margin: 25px 0;
}

.amazon-states label {
    display: block;
    margin-bottom: 12px;
    font-weight: 500;
    opacity: 0.9;
}

.states-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.state-btn {
    padding: 10px 8px;
    background: rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.state-btn:hover {
    background: rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.state-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.5);
}

.state-btn.active::after {
    content: '📍';
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 1.2rem;
}

/* Outros Estados */
.other-states {
    margin: 25px 0;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.other-states label {
    display: block;
    margin-bottom: 15px;
    font-weight: 500;
    opacity: 0.9;
}

.regions-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.region-group {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    border-radius: 8px;
}

.region-label {
    display: block;
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.states-grid-compact {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

/* Cores por região */
.state-nordeste {
    background: rgba(255, 193, 7, 0.15);
    border-color: rgba(255, 193, 7, 0.3);
}

.state-nordeste:hover {
    background: rgba(255, 193, 7, 0.3);
    border-color: rgba(255, 193, 7, 0.6);
}

.state-nordeste.active {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    border-color: #ffc107;
}

.state-centro {
    background: rgba(156, 39, 176, 0.15);
    border-color: rgba(156, 39, 176, 0.3);
}

.state-centro:hover {
    background: rgba(156, 39, 176, 0.3);
    border-color: rgba(156, 39, 176, 0.6);
}

.state-centro.active {
    background: linear-gradient(135deg, #9c27b0, #e91e63);
    border-color: #9c27b0;
}

.state-sudeste {
    background: rgba(33, 150, 243, 0.15);
    border-color: rgba(33, 150, 243, 0.3);
}

.state-sudeste:hover {
    background: rgba(33, 150, 243, 0.3);
    border-color: rgba(33, 150, 243, 0.6);
}

.state-sudeste.active {
    background: linear-gradient(135deg, #2196f3, #03a9f4);
    border-color: #2196f3;
}

.state-sul {
    background: rgba(76, 175, 80, 0.15);
    border-color: rgba(76, 175, 80, 0.3);
}

.state-sul:hover {
    background: rgba(76, 175, 80, 0.3);
    border-color: rgba(76, 175, 80, 0.6);
}

.state-sul.active {
    background: linear-gradient(135deg, #4caf50, #8bc34a);
    border-color: #4caf50;
}

/* Painel de Informações */
.earth-info {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
}

.earth-info h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #48bb78;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item .label {
    opacity: 0.7;
    font-size: 0.95rem;
}

.info-item span:last-child {
    font-weight: 500;
    color: #48bb78;
}

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

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

.earth-image-container {
    animation: fadeInUp 1s ease backwards;
}

.earth-controls {
    animation: fadeInUp 1s ease 0.2s backwards;
}

.earth-info {
    animation: fadeInUp 1s ease 0.4s backwards;
}

/* Responsive */
@media (max-width: 991px) {
    .earth-viewer {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

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

    .earth-actions {
        flex-direction: column;
    }

    .amazon-highlight {
        border-width: 2px;
    }
}

/* Seção Educativa EPIC */
.epic-info-section {
    margin-top: 80px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.epic-info-section h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
    color: #48bb78;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.info-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.info-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.info-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.info-card h4 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: white;
}

.info-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
}

.info-card strong {
    color: #48bb78;
}

.epic-tech-info {
    text-align: center;
    padding: 25px;
    background: rgba(72, 187, 120, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(72, 187, 120, 0.3);
}

.epic-tech-info p {
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.6;
}

.epic-learn-more {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.epic-learn-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Responsive */
@media (max-width: 991px) {
    .earth-viewer {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .info-cards {
        grid-template-columns: 1fr;
    }
}

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

    .earth-actions {
        flex-direction: column;
    }

    .amazon-highlight {
        border-width: 2px;
    }

    .epic-info-section {
        padding: 25px 15px;
    }
}