/**
 * ====================================
 * BANNER DE COOKIES RGPD
 * ====================================
 */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.98) 0%, rgba(20, 20, 20, 0.98) 100%);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 2px solid var(--color-secondary);
}

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

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 200px;
}

.cookie-banner-text h4 {
    color: var(--color-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.15rem;
    font-family: 'Playfair Display', serif;
}

.cookie-banner-text p {
    color: #ddd;
    font-size: 0.75rem;
    line-height: 1.3;
    margin: 0;
}

.cookie-banner-text a {
    color: var(--color-secondary);
    text-decoration: underline;
    transition: color 0.3s;
}

.cookie-banner-text a:hover {
    color: var(--color-light);
}

.cookie-banner-buttons {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Montserrat', sans-serif;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: var(--color-secondary);
    color: var(--color-dark);
}

.cookie-btn-accept:hover {
    background: var(--color-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.cookie-btn-decline {
    background: transparent;
    color: var(--color-light);
    border: 2px solid var(--color-light);
}

.cookie-btn-decline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cookie-btn-settings {
    background: transparent;
    color: var(--color-secondary);
    border: 2px solid var(--color-secondary);
}

.cookie-btn-settings:hover {
    background: rgba(212, 175, 55, 0.1);
}

/* Modal de Configurações de Cookies */
.cookie-settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cookie-settings-modal.show {
    display: flex;
}

.cookie-settings-content {
    background: var(--color-dark);
    border: 2px solid var(--color-secondary);
    border-radius: 10px;
    padding: 1.25rem;
    max-width: 450px;
    width: 100%;
    max-height: 70vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.cookie-settings-content h3 {
    color: var(--color-secondary);
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.cookie-category {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border-left: 3px solid var(--color-secondary);
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
}

.cookie-category-header h4 {
    color: var(--color-light);
    font-size: 0.95rem;
    margin: 0;
}

.cookie-category-description {
    color: #aaa;
    font-size: 0.8rem;
    line-height: 1.4;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #555;
    transition: 0.4s;
    border-radius: 24px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: var(--color-secondary);
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
    transform: translateX(22px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-settings-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

/* Responsivo */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 0.4rem 0.6rem;
    }

    .cookie-banner-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .cookie-banner-text h4 {
        font-size: 0.8rem;
        margin-bottom: 0.1rem;
    }

    .cookie-banner-text p {
        font-size: 0.7rem;
    }

    .cookie-banner-buttons {
        width: 100%;
        gap: 0.4rem;
    }

    .cookie-btn {
        flex: 1;
        min-width: 80px;
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
    }

    .cookie-settings-content {
        padding: 1rem;
        max-width: 95%;
    }

    .cookie-settings-content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .cookie-category {
        margin-bottom: 0.75rem;
        padding: 0.6rem;
    }

    .cookie-category-header h4 {
        font-size: 0.85rem;
    }

    .cookie-category-description {
        font-size: 0.75rem;
    }

    .cookie-toggle {
        width: 40px;
        height: 20px;
    }

    .cookie-toggle-slider:before {
        height: 14px;
        width: 14px;
    }

    .cookie-toggle input:checked + .cookie-toggle-slider:before {
        transform: translateX(20px);
    }

    .cookie-settings-actions {
        gap: 0.4rem;
        margin-top: 1rem;
    }
}

/**
 * ====================================
 * BOTÃO WHATSAPP FLUTUANTE
 * ====================================
 */

.whatsapp-float {
    position: fixed;
    bottom: 95px;
    right: 30px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.whatsapp-float.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 26px;
    height: 26px;
    fill: white;
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: white;
    color: #333;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 180px;
}

.whatsapp-tooltip-title {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 4px;
    color: #25D366;
}

.whatsapp-tooltip-schedule {
    font-size: 12px;
    color: #666;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid white;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    right: 75px;
}

@keyframes whatsapp-pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7);
    }
}

@keyframes whatsapp-entrance {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    60% {
        transform: scale(1.2) rotate(20deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 95px;
        right: 20px;
        width: 50px;
        height: 50px;
        z-index: 10000 !important;
    }

    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }

    .whatsapp-tooltip {
        display: none;
    }
}

/* Mobile Pequeno */
@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 90px;
        right: 15px;
        width: 52px;
        height: 52px;
        z-index: 10000 !important;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

/**
 * ====================================
 * SELETOR DE IDIOMA
 * ====================================
 */

.language-selector {
    position: relative;
    display: inline-block;
    margin-left: 8px;
}

.language-btn {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    backdrop-filter: blur(10px);
    min-width: 80px;
}

.language-btn:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.language-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.language-current {
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
}

.language-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
    width: 10px !important;
    height: 10px !important;
}

.language-dropdown.show ~ .language-btn .language-arrow {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(20, 20, 20, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    min-width: 160px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
}

.language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    padding: 12px 16px;
    color: var(--color-light);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    position: relative;
}

.language-option:hover {
    background: rgba(212, 175, 55, 0.15);
}

.language-option.active {
    background: rgba(212, 175, 55, 0.2);
    color: var(--color-secondary);
    font-weight: 600;
}

.lang-flag {
    font-size: 1.2em;
    flex-shrink: 0;
}

.lang-name {
    flex: 1;
}

.lang-check {
    opacity: 0;
    color: var(--color-secondary);
    font-weight: bold;
    transition: opacity 0.2s ease;
}

.language-option.active .lang-check {
    opacity: 1;
}

.language-option img {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
}

/* Mobile */
@media (max-width: 768px) {
    .language-selector {
        margin-left: 0;
        margin-top: 1rem;
        width: 100%;
    }
    
    .language-btn {
        width: 100%;
        justify-content: center;
    }
    
    .language-dropdown {
        left: 0;
        right: 0;
        width: 100%;
    }
}


/**
 * ====================================
 * FIM DO ARQUIVO
 * ====================================
 */

