/* =====================================================
   PÁGINA 404 - AQUAFLEX AQUECEDORES
   Prefixo: p404- (para evitar conflitos)
   ===================================================== */

/* ===== IMPORTAÇÃO DE FONTES ===== */
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap");

/* ===== VARIÁVEIS ===== */
.p404-section {
    --p404-orange: #ff5500;
    --p404-orange-light: #ff7700;
    --p404-green: #28a745;
    --p404-green-dark: #1e7e34;
    --p404-blue: #2693FF;
    --p404-heading: #010f34;
    --p404-body: #788094;
    --p404-white: #ffffff;
    --p404-gray: #f5f7fa;
}

/* ===== SEÇÃO PRINCIPAL ===== */
.p404-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
    font-family: "DM Sans", sans-serif;
}

/* ===== CONTAINER ===== */
.p404-container {
    max-width: 700px;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* ===== EFEITO LUZ PASSANDO ===== */
.p404-light-sweep {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 85, 0, 0.08),
        rgba(38, 147, 255, 0.08),
        transparent
    );
    transform: skewX(-20deg);
    animation: p404-sweep 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes p404-sweep {
    0% {
        left: -100%;
    }
    50% {
        left: 150%;
    }
    100% {
        left: 150%;
    }
}

/* ===== CONTEÚDO PRINCIPAL ===== */
.p404-content {
    background: var(--p404-white);
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 
        0 20px 60px rgba(1, 15, 52, 0.1),
        0 0 0 1px rgba(255, 85, 0, 0.1);
    position: relative;
    overflow: hidden;
}

/* Linha decorativa superior */
.p404-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--p404-orange), var(--p404-blue), var(--p404-green));
}

/* ===== NÚMERO 404 ===== */
.p404-number-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.p404-number {
    font-family: "Outfit", sans-serif;
    font-size: 100px;
    font-weight: 800;
    color: var(--p404-heading);
    line-height: 1;
    text-shadow: 3px 3px 0 rgba(255, 85, 0, 0.2);
}

/* ===== CONTAINER DA GOTA (INTERATIVO) ===== */
.p404-drop-container {
    position: relative;
    width: 90px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.p404-drop-icon {
    font-size: 50px;
    color: var(--p404-blue);
    cursor: pointer;
    transition: all 0.3s ease;
    animation: p404-bounce 2s ease-in-out infinite;
    position: relative;
    z-index: 3;
}

.p404-drop-icon:hover {
    transform: scale(1.15);
    color: var(--p404-orange);
}

.p404-drop-icon:active {
    transform: scale(0.9);
}

@keyframes p404-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* ===== TANQUE DE ÁGUA ===== */
.p404-tank {
    width: 60px;
    height: 50px;
    background: rgba(38, 147, 255, 0.1);
    border: 3px solid var(--p404-blue);
    border-radius: 0 0 12px 12px;
    border-top: none;
    position: relative;
    overflow: hidden;
    margin-top: -5px;
}

.p404-tank-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0%;
    background: linear-gradient(180deg, var(--p404-blue), #1a75d9);
    transition: height 0.4s ease;
    border-radius: 0 0 8px 8px;
}

.p404-tank-fill.p404-full {
    background: linear-gradient(180deg, var(--p404-green), var(--p404-green-dark));
}

/* Bolhas no tanque */
.p404-tank-bubbles {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    pointer-events: none;
}

.p404-tank-bubbles span {
    position: absolute;
    bottom: -10px;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    opacity: 0;
}

.p404-tank-bubbles span:nth-child(1) {
    left: 20%;
    animation: p404-bubble 2s ease-in-out infinite 0.2s;
}

.p404-tank-bubbles span:nth-child(2) {
    left: 50%;
    animation: p404-bubble 2s ease-in-out infinite 0.6s;
}

.p404-tank-bubbles span:nth-child(3) {
    left: 75%;
    animation: p404-bubble 2s ease-in-out infinite 1s;
}

@keyframes p404-bubble {
    0% {
        bottom: 0;
        opacity: 0;
    }
    20% {
        opacity: 0.8;
    }
    100% {
        bottom: 100%;
        opacity: 0;
    }
}

/* Dica de clique */
.p404-click-hint {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: var(--p404-body);
    white-space: nowrap;
    animation: p404-fade-pulse 2s ease-in-out infinite;
}

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

/* ===== CONTADOR ===== */
.p404-counter {
    font-family: "Outfit", sans-serif;
    font-size: 14px;
    color: var(--p404-body);
    margin-bottom: 25px;
    padding: 8px 20px;
    background: var(--p404-gray);
    border-radius: 20px;
    display: inline-block;
}

.p404-counter #dropCount {
    font-weight: 700;
    color: var(--p404-blue);
    font-size: 18px;
}

/* ===== TÍTULO ===== */
.p404-title {
    font-family: "Outfit", sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--p404-heading);
    margin: 0 0 15px 0;
}

/* ===== TEXTO ===== */
.p404-text {
    font-size: 16px;
    color: var(--p404-body);
    line-height: 1.6;
    margin: 0 0 30px 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== BOTÕES ===== */
.p404-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.p404-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 10px;
    font-family: "Outfit", sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.p404-btn i {
    font-size: 18px;
}

/* Botão Home */
.p404-btn-home {
    background: var(--p404-white);
    color: var(--p404-heading);
    border: 2px solid var(--p404-heading);
}

.p404-btn-home:hover {
    background: var(--p404-heading);
    color: var(--p404-white);
}

/* Botão WhatsApp */
.p404-btn-whatsapp {
    background: linear-gradient(135deg, var(--p404-green) 0%, var(--p404-green-dark) 100%);
    color: var(--p404-white);
    border: 2px solid transparent;
}

.p404-btn-whatsapp:hover {
    background: linear-gradient(135deg, var(--p404-green-dark) 0%, #155724 100%);
    color: var(--p404-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
}

/* ===== MENSAGEM DE SUCESSO ===== */
.p404-success-message {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
    padding: 15px 25px;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(30, 126, 52, 0.1) 100%);
    border: 2px solid var(--p404-green);
    border-radius: 12px;
    animation: p404-success-appear 0.5s ease;
}

.p404-success-message.p404-show {
    display: flex;
}

.p404-success-message i {
    font-size: 22px;
    color: var(--p404-green);
}

.p404-success-message span {
    font-family: "Outfit", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--p404-green-dark);
}

@keyframes p404-success-appear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== EFEITO DE GOTA CAINDO ===== */
.p404-drop-falling {
    position: absolute;
    font-size: 16px;
    color: var(--p404-blue);
    pointer-events: none;
    animation: p404-drop-fall 0.6s ease-in forwards;
    z-index: 10;
}

@keyframes p404-drop-fall {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(50px) scale(0.5);
    }
}

/* ===== RESPONSIVO - TABLET ===== */
@media (max-width: 768px) {
    .p404-section {
        padding: 40px 15px;
        min-height: 60vh;
    }
    
    .p404-content {
        padding: 40px 25px;
    }
    
    .p404-number {
        font-size: 70px;
    }
    
    .p404-drop-icon {
        font-size: 40px;
    }
    
    .p404-tank {
        width: 50px;
        height: 40px;
    }
    
    .p404-title {
        font-size: 24px;
    }
    
    .p404-text {
        font-size: 15px;
    }
    
    .p404-btn {
        padding: 12px 22px;
        font-size: 14px;
    }
}

/* ===== RESPONSIVO - MOBILE ===== */
@media (max-width: 480px) {
    .p404-section {
        padding: 30px 10px;
    }
    
    .p404-content {
        padding: 30px 20px;
        border-radius: 16px;
    }
    
    .p404-number-wrapper {
        gap: 5px;
    }
    
    .p404-number {
        font-size: 55px;
    }
    
    .p404-drop-container {
        width: 70px;
        height: 100px;
    }
    
    .p404-drop-icon {
        font-size: 35px;
    }
    
    .p404-tank {
        width: 45px;
        height: 35px;
    }
    
    .p404-title {
        font-size: 20px;
    }
    
    .p404-text {
        font-size: 14px;
        margin-bottom: 25px;
    }
    
    .p404-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .p404-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }
    
    .p404-counter {
        font-size: 13px;
        padding: 6px 16px;
    }
    
    .p404-success-message {
        flex-direction: column;
        text-align: center;
        padding: 15px 20px;
    }
    
    .p404-success-message span {
        font-size: 13px;
    }
}

/* ===== ACESSIBILIDADE - REDUZIR MOVIMENTO ===== */
@media (prefers-reduced-motion: reduce) {
    .p404-light-sweep,
    .p404-drop-icon,
    .p404-tank-bubbles span,
    .p404-click-hint {
        animation: none;
    }
    
    .p404-drop-icon {
        transform: none;
    }
}