/**
 * SSANet - Estilos da Home Page
 */

body { 
    font-family: 'Poppins', sans-serif; 
}

/* Relógio no Header */
.header-clock {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 212, 255, 0.1);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
    border: 1px solid rgba(0, 212, 255, 0.2);
    margin-right: 1rem;
}

.header-clock i {
    font-size: 0.9rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.header.scrolled .header-clock {
    background: rgba(0, 102, 204, 0.1);
    border-color: rgba(0, 102, 204, 0.2);
    color: var(--primary-dark);
}

@media (max-width: 768px) {
    .header-clock {
        display: none;
    }
}

/* Modal Teste de Velocidade */
.speed-test-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.speed-test-modal.active {
    display: flex;
}

.speed-test-content {
    background: #fff;
    border-radius: 16px;
    width: 95%;
    max-width: 900px;
    height: 85vh;
    max-height: 700px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.speed-test-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #0066cc, #0099ff);
    border-radius: 16px 16px 0 0;
}

.speed-test-header h3 {
    color: #fff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.speed-test-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.speed-test-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.speed-test-body {
    flex: 1;
    padding: 0;
    overflow: hidden;
}

.speed-test-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.speed-test-footer {
    padding: 0.75rem 1.5rem;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    border-radius: 0 0 16px 16px;
    text-align: center;
}

.speed-test-footer small {
    color: #6b7280;
    font-size: 0.8rem;
}

.speed-test-footer i {
    color: #0066cc;
}

@media (max-width: 768px) {
    .speed-test-content {
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }
    .speed-test-header {
        border-radius: 0;
    }
    .speed-test-footer {
        border-radius: 0;
    }
}
