/* ================================================
   MCN CREATE - SISTEMA DE COOKIES
   Arquivo: cookies.css
   Versão: 2.0
================================================ */

/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    color: #000;
    border-top: 1px solid #e5e5e5;
    padding: 24px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

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

.cookie-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-content {
    flex: 1;
    min-width: 300px;
}

.cookie-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.cookie-text {
    color: #666;
    line-height: 1.5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.cookie-text a {
    color: #000;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
}

.cookie-text a:hover {
    text-decoration: none;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 12px 24px;
    border: 2px solid #000;
    border-radius: 0;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: transparent;
}

.btn-accept {
    background: #000;
    color: #fff;
}

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

.btn-decline {
    background: #fff;
    color: #000;
}

.btn-decline:hover {
    background: #f5f5f5;
}

.btn-settings {
    background: #fff;
    color: #000;
}

.btn-settings:hover {
    background: #f5f5f5;
}

/* Settings Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.cookie-modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #fff;
    color: #000;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.cookie-modal.show .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #000;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

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

.cookie-category {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #e5e5e5;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.category-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.category-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 24px;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s ease;
}

.toggle-switch.active {
    background: #000;
}

.toggle-switch.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #fff;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch.active::after {
    transform: translateX(26px);
}

.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 30px;
}

/* Success message */
.success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #000;
    color: #fff;
    padding: 16px 24px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1002;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.success-message.show {
    transform: translateX(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-container {
        flex-direction: column;
        text-align: left;
        gap: 20px;
    }

    .cookie-buttons {
        justify-content: stretch;
        width: 100%;
    }

    .cookie-btn {
        flex: 1;
        min-width: 0;
    }

    .modal-content {
        margin: 10px;
        padding: 30px 20px;
    }

    .modal-buttons {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 20px;
    }

    .cookie-buttons {
        flex-direction: column;
    }

    .modal-content {
        padding: 20px;
    }

    .cookie-title {
        font-size: 1.1rem;
    }
}

/* Print styles */
@media print {
    .cookie-banner,
    .cookie-modal,
    .success-message {
        display: none !important;
    }
}