/* ========================================
   BANNER DE CONTROLE DE COOKIES
   Prefixo: cookies-
   Cores da marca: #012A55 (azul), #FC791A (laranja), #15B239 (verde)
   ======================================== */

/* ========== BANNER PRINCIPAL ========== */
.cookies-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #012A55 0%, #024080 100%);
    color: #ffffff;
    padding: 20px 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 999999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 3px solid #15B239;
}

.cookies-banner.show {
    transform: translateY(0);
}

.cookies-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

/* ========== CONTEÚDO DO BANNER ========== */
.cookies-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 300px;
}

.cookies-icon {
    font-size: 48px;
    color: #FC791A;
    flex-shrink: 0;
    animation: cookies-bounce 2s infinite;
}

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

.cookies-text {
    flex: 1;
}

.cookies-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.cookies-description {
    font-size: 14px;
    line-height: 1.6;
    color: #e0e0e0;
    margin: 0;
}

.cookies-link {
    color: #15B239;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.cookies-link:hover {
    color: #FC791A;
}

/* ========== AÇÕES/BOTÕES ========== */
.cookies-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.cookies-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cookies-btn-accept {
    background: #15B239;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(21, 178, 57, 0.3);
}

.cookies-btn-accept:hover {
    background: #12a032;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(21, 178, 57, 0.4);
}

.cookies-btn-necessary {
    background: #ffffff;
    color: #012A55;
    border: 2px solid #ffffff;
}

.cookies-btn-necessary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.cookies-btn-settings {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.cookies-btn-settings:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.cookies-btn-secondary {
    background: #FC791A;
    color: #ffffff;
}

.cookies-btn-secondary:hover {
    background: #e66d15;
    transform: translateY(-2px);
}

/* ========== MODAL DE CONFIGURAÇÕES ========== */
.cookies-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookies-modal.show {
    display: flex;
    animation: cookies-fadeIn 0.3s ease-out;
}

@keyframes cookies-fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.cookies-modal-content {
    background: #ffffff;
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    animation: cookies-slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes cookies-slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Header do Modal */
.cookies-modal-header {
    padding: 25px 30px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #012A55 0%, #024080 100%);
    border-radius: 16px 16px 0 0;
}

.cookies-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.cookies-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Body do Modal */
.cookies-modal-body {
    padding: 30px;
}

.cookies-modal-intro {
    font-size: 15px;
    line-height: 1.6;
    color: #5C6574;
    margin-bottom: 25px;
}

/* Opções de Cookies */
.cookies-option {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.cookies-option:hover {
    border-color: #012A55;
    box-shadow: 0 4px 15px rgba(1, 42, 85, 0.1);
}

.cookies-option-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.cookies-option-info {
    flex: 1;
}

.cookies-option-title {
    font-size: 16px;
    font-weight: 700;
    color: #012A55;
    margin: 0 0 8px 0;
}

.cookies-option-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #5C6574;
    margin: 0;
}

/* Toggle Switch */
.cookies-toggle {
    position: relative;
    flex-shrink: 0;
}

.cookies-toggle input[type="checkbox"] {
    display: none;
}

.cookies-toggle-label {
    display: block;
    width: 60px;
    height: 32px;
    background: #d1d5db;
    border-radius: 50px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cookies-toggle-label.disabled {
    cursor: not-allowed;
    opacity: 0.6;
    background: #15B239;
}

.cookies-toggle-switch {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.cookies-toggle input[type="checkbox"]:checked + .cookies-toggle-label {
    background: #15B239;
}

.cookies-toggle input[type="checkbox"]:checked + .cookies-toggle-label .cookies-toggle-switch {
    transform: translateX(28px);
}

.cookies-toggle-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 11px;
    color: #ffffff;
    font-weight: 600;
    white-space: nowrap;
}

/* Footer do Modal */
.cookies-modal-footer {
    padding: 20px 30px;
    border-top: 2px solid #f0f0f0;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    background: #f8f9fa;
    border-radius: 0 0 16px 16px;
}

/* ========== BOTÃO FLUTUANTE DE GERENCIAR ========== */
.cookies-manage-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: #012A55;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(1, 42, 85, 0.3);
    z-index: 999998;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookies-manage-float:hover {
    background: #024080;
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 6px 20px rgba(1, 42, 85, 0.4);
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */

/* Tablets */
@media (max-width: 991px) {
    .cookies-container {
        flex-direction: column;
        gap: 20px;
    }

    .cookies-content {
        text-align: center;
        flex-direction: column;
    }

    .cookies-actions {
        width: 100%;
        justify-content: center;
    }

    .cookies-modal-content {
        max-width: 90%;
    }
}

/* Smartphones */
@media (max-width: 767px) {
    .cookies-banner {
        padding: 15px 0;
    }

    .cookies-container {
        padding: 0 15px;
    }

    .cookies-icon {
        font-size: 36px;
    }

    .cookies-title {
        font-size: 18px;
    }

    .cookies-description {
        font-size: 13px;
    }

    .cookies-actions {
        flex-direction: column;
        width: 100%;
    }

    .cookies-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }

    .cookies-modal-content {
        max-width: 95%;
        max-height: 95vh;
    }

    .cookies-modal-header {
        padding: 20px;
    }

    .cookies-modal-title {
        font-size: 20px;
    }

    .cookies-modal-body {
        padding: 20px;
    }

    .cookies-option {
        padding: 15px;
    }

    .cookies-option-header {
        flex-direction: column;
        gap: 15px;
    }

    .cookies-toggle {
        align-self: flex-start;
    }

    .cookies-modal-footer {
        flex-direction: column;
        padding: 15px 20px;
    }

    .cookies-modal-footer .cookies-btn {
        width: 100%;
    }

    .cookies-manage-float {
        bottom: 15px;
        left: 15px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

/* Smartphones pequenos */
@media (max-width: 575px) {
    .cookies-content {
        gap: 15px;
    }

    .cookies-icon {
        font-size: 32px;
    }

    .cookies-title {
        font-size: 16px;
    }

    .cookies-description {
        font-size: 12px;
    }

    .cookies-option-title {
        font-size: 15px;
    }

    .cookies-option-desc {
        font-size: 13px;
    }
}

/* ========== ANIMAÇÕES EXTRAS ========== */
@keyframes cookies-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.cookies-btn-accept:active {
    animation: cookies-pulse 0.3s ease;
}

/* ========== FIM DOS ESTILOS ========== */