/**
 * LGPD Cookie Banner Styles
 * Sistema de Cookies e Privacidade - Kombex
 */

/* ==================== Banner Principal ==================== */
.lgpd-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 99999;
    padding: 20px 0;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.lgpd-banner__container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 25px;
    position: relative;
}

.lgpd-banner__close {
    position: absolute;
    top: -10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s ease;
}

.lgpd-banner__close:hover {
    color: #000;
    transform: rotate(90deg);
}

.lgpd-banner__content {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex: 1;
}

.lgpd-banner__icon {
    font-size: 40px;
    color: #ff6b35;
    flex-shrink: 0;
}

.lgpd-banner__text {
    flex: 1;
}

.lgpd-banner__title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.lgpd-banner__description {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

.lgpd-banner__link {
    color: #0066cc;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.lgpd-banner__link:hover {
    color: #004499;
}

.lgpd-banner__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

/* ==================== Botões ==================== */
.lgpd-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.lgpd-btn--accept {
    background: #0066cc;
    color: #fff;
}

.lgpd-btn--accept:hover {
    background: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.lgpd-btn--reject {
    background: #f0f0f0;
    color: #333;
}

.lgpd-btn--reject:hover {
    background: #e0e0e0;
}

.lgpd-btn--preferences {
    background: transparent;
    color: #0066cc;
    border: 2px solid #0066cc;
    padding: 10px 20px;
}

.lgpd-btn--preferences:hover {
    background: #0066cc;
    color: #fff;
}

.lgpd-btn--primary {
    background: #0066cc;
    color: #fff;
}

.lgpd-btn--primary:hover {
    background: #0052a3;
}

.lgpd-btn--secondary {
    background: #f0f0f0;
    color: #333;
}

.lgpd-btn--secondary:hover {
    background: #e0e0e0;
}

/* ==================== Modal ==================== */
.lgpd-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

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

.lgpd-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.lgpd-modal__container {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease-out;
}

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

.lgpd-modal__header {
    padding: 25px 30px;
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lgpd-modal__title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.lgpd-modal__close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.lgpd-modal__content {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

.lgpd-modal__intro {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-left: 4px solid #0066cc;
    border-radius: 6px;
}

.lgpd-modal__intro p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

/* ==================== Cookie Categories ==================== */
.lgpd-cookie-category {
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.lgpd-cookie-category:hover {
    border-color: #0066cc;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.1);
}

.lgpd-cookie-category__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.lgpd-cookie-category__info {
    flex: 1;
}

.lgpd-cookie-category__title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lgpd-cookie-category__title i {
    color: #0066cc;
}

.lgpd-cookie-category__description {
    font-size: 14px;
    color: #666;
    margin: 0 0 10px 0;
    line-height: 1.5;
}

.lgpd-cookie-category__details {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.lgpd-cookie-category__details p {
    font-size: 13px;
    color: #777;
    margin: 0;
    line-height: 1.6;
}

/* ==================== Toggle Switch ==================== */
.lgpd-toggle {
    position: relative;
}

.lgpd-toggle input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
}

.lgpd-toggle label {
    display: block;
    width: 60px;
    height: 30px;
    background: #ccc;
    border-radius: 30px;
    cursor: pointer;
    position: relative;
    transition: background 0.3s ease;
}

.lgpd-toggle__slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.lgpd-toggle input:checked + label {
    background: #0066cc;
}

.lgpd-toggle input:checked + label .lgpd-toggle__slider {
    transform: translateX(30px);
}

.lgpd-toggle--disabled label {
    cursor: not-allowed;
    opacity: 0.6;
}

/* ==================== Modal Footer ==================== */
.lgpd-modal__footer {
    padding: 20px 30px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* ==================== Floating Button ==================== */
.lgpd-floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #0066cc;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
    transition: all 0.3s ease;
    z-index: 99998;
    animation: bounce 2s infinite;
}

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

.lgpd-floating-btn:hover {
    background: #0052a3;
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
    animation: none;
}

/* ==================== Responsive ==================== */
@media (max-width: 992px) {
    .lgpd-banner__container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .lgpd-banner__actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .lgpd-btn {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .lgpd-banner {
        padding: 15px 0;
    }
    
    .lgpd-banner__container {
        padding: 0 15px;
        gap: 15px;
    }
    
    .lgpd-banner__icon {
        font-size: 30px;
    }
    
    .lgpd-banner__title {
        font-size: 16px;
    }
    
    .lgpd-banner__description {
        font-size: 13px;
    }
    
    .lgpd-banner__actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .lgpd-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .lgpd-modal__container {
        width: 95%;
        max-height: 95vh;
    }
    
    .lgpd-modal__header {
        padding: 20px;
    }
    
    .lgpd-modal__title {
        font-size: 18px;
    }
    
    .lgpd-modal__content {
        padding: 20px;
    }
    
    .lgpd-cookie-category {
        padding: 15px;
    }
    
    .lgpd-cookie-category__header {
        flex-direction: column;
    }
    
    .lgpd-modal__footer {
        flex-direction: column;
        padding: 15px 20px;
    }
    
    .lgpd-modal__footer .lgpd-btn {
        width: 100%;
    }
    
    .lgpd-floating-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .lgpd-banner__content {
        flex-direction: column;
        gap: 12px;
    }
    
    .lgpd-banner__icon {
        font-size: 24px;
    }
    
    .lgpd-banner__title {
        font-size: 15px;
    }
    
    .lgpd-banner__description {
        font-size: 12px;
    }
}

/* ==================== Print Styles ==================== */
@media print {
    .lgpd-banner,
    .lgpd-modal,
    .lgpd-floating-btn {
        display: none !important;
    }
}

