/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Background com imagem e opacidade baixa */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/fundo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: -1;
}

/* Background responsivo para mobile */
@media (max-width: 768px) {
    .background-overlay {
        background-image: url('images/fundomobile.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
}

/* Popup de Cookies */
.cookie-popup {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    max-width: 500px;
    width: 90%;
    animation: popupSlideIn 0.3s ease-out;
    /* Garantir centralização absoluta */
    margin: 0 !important;
    padding: 0;
    /* Força centralização em hospedagem */
    right: auto !important;
    bottom: auto !important;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.cookie-content {
    padding: 30px;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #000;
}

.cookie-content h2 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #000;
    margin-bottom: 15px;
    text-align: center;
}

.cookie-content p {
    color: #666;
    line-height: 1.5;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.privacy-link {
    color: #007bff;
    text-decoration: underline;
    font-weight: 500;
}

.privacy-link:hover {
    color: #0056b3;
    text-decoration: none;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.accept-btn {
    background: #000;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
    flex: 1;
    max-width: 150px;
}

.accept-btn:hover {
    background: #333;
}

.decline-btn {
    background: #f5f5f5;
    color: #666;
    border: 2px solid #ddd;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 150px;
}

.decline-btn:hover {
    background: #e0e0e0;
    border-color: #bbb;
}

/* Responsividade */
@media (max-width: 768px) {
    .cookie-popup {
        width: 95% !important;
        max-width: 400px !important;
        margin: 0 !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        position: fixed !important;
        right: auto !important;
        bottom: auto !important;
    }
    
    .cookie-content {
        padding: 20px;
    }
    
    .cookie-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .accept-btn,
    .decline-btn {
        max-width: 100%;
    }
}

/* Ajustes específicos para mobile muito pequeno */
@media (max-width: 480px) {
    .cookie-popup {
        width: 90% !important;
        max-width: 350px !important;
        margin: 0 !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        position: fixed !important;
        right: auto !important;
        bottom: auto !important;
    }
    
    .cookie-content {
        padding: 15px;
    }
    
    .cookie-content h2 {
        font-size: 1.3rem;
    }
    
    .cookie-content p {
        font-size: 0.9rem;
    }
}
