/* =============================================
   COOKIE CONSENT BANNER - GLOBAL
============================================= */

/* Banner principal */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--graphite);
    color: var(--white);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.5s ease;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

/* Texto do banner */
.cookie-text {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.cookie-text svg {
    fill: var(--gold);
    flex-shrink: 0;
}

.cookie-text p {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
}

.cookie-text a {
    color: var(--gold);
    text-decoration: underline;
}

.cookie-text a:hover {
    color: var(--gold-light);
}

/* Botões do banner */
.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-btn-accept,
.cookie-btn-settings {
    padding: 10px 24px;
    border-radius: var(--radius);
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.cookie-btn-accept {
    background: var(--gold);
    color: var(--graphite);
}

.cookie-btn-accept:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
}

.cookie-btn-settings {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
}

.cookie-btn-settings:hover {
    background: rgba(212, 175, 55, 0.1);
}

/* =============================================
   COOKIE MODAL (CONFIGURAÇÕES)
============================================= */

/* Modal overlay */
.cookie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    align-items: center;
    justify-content: center;
}

.cookie-modal.show {
    display: flex;
}

/* Modal content */
.cookie-modal-content {
    background: var(--white);
    border-radius: var(--radius);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-hover);
    animation: fadeInUp 0.3s ease;
}

/* Modal header */
.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.cookie-modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--graphite);
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.cookie-modal-close:hover {
    color: #dc3545;
}

/* Modal body */
.cookie-modal-body {
    padding: 20px 24px;
}

/* Opções de cookies */
.cookie-option {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.cookie-option:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.cookie-option-text strong {
    display: block;
    font-size: 14px;
    color: var(--graphite);
    margin-bottom: 4px;
}

.cookie-option-text p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Cookie Switch (toggle button) */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    flex-shrink: 0;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .cookie-slider {
    background-color: var(--gold);
}

input:checked + .cookie-slider:before {
    transform: translateX(26px);
}

input:disabled + .cookie-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Modal footer */
.cookie-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.cookie-modal-save,
.cookie-modal-accept-all {
    padding: 10px 20px;
    border-radius: var(--radius);
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.cookie-modal-save {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
}

.cookie-modal-save:hover {
    background: rgba(212, 175, 55, 0.1);
}

.cookie-modal-accept-all {
    background: var(--gold);
    color: var(--graphite);
}

.cookie-modal-accept-all:hover {
    background: var(--gold-dark);
}

/* =============================================
   RESPONSIVO
============================================= */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .cookie-text {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
    
    .cookie-option {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .cookie-btn-accept,
    .cookie-btn-settings {
        padding: 8px 18px;
        font-size: 11px;
    }
    
    .cookie-modal-footer {
        flex-direction: column;
    }
    
    .cookie-modal-save,
    .cookie-modal-accept-all {
        width: 100%;
    }
}