/* ====================================
   CB-LASWERKEN COOKIE CONSENT MODULE
   Universele cookie banner en modal
   Gebruik op alle pagina's!
   ==================================== */

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    font-family: 'Comfortaa', cursive;
}

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

.cookie-banner-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 25px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.cookie-banner-text {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex: 1;
}

.cookie-banner-text > i {
    font-size: 2.5rem;
    color: #f39c12;
    flex-shrink: 0;
    margin-top: 5px;
}

.cookie-banner-text h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 8px;
    font-weight: 700;
}

.cookie-banner-text p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.cookie-banner-actions {
    display: flex;
    gap: 15px;
}

.btn-cookie-settings,
.btn-cookie-accept {
    padding: 12px 25px;
    border-radius: 50px;
    font-family: 'Comfortaa', cursive;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    border: none;
    font-size: 1rem;
}

.btn-cookie-settings {
    background: transparent;
    color: #1a2b8f;
    border: 2px solid #1a2b8f;
}

.btn-cookie-settings:hover {
    background: #1a2b8f;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 43, 143, 0.3);
}

.btn-cookie-accept {
    background: linear-gradient(135deg, #1a2b8f 0%, #4b6cb7 100%);
    color: #fff;
    box-shadow: 0 5px 20px rgba(26, 43, 143, 0.3);
}

.btn-cookie-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 43, 143, 0.4);
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Comfortaa', cursive;
}

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

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

.cookie-modal-content {
    background: #fff;
    border-radius: 30px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

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

.cookie-modal-header {
    padding: 30px 40px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header h2 {
    font-size: 1.8rem;
    color: #333;
    font-weight: 700;
}

.cookie-modal-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fafafa;
    border: none;
    color: #999;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-modal-close:hover {
    background: #1a2b8f;
    color: #fff;
    transform: rotate(90deg);
}

.cookie-modal-body {
    padding: 30px 40px;
}

.cookie-modal-body > p {
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

/* Cookie Toggle Group */
.cookie-toggle-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cookie-toggle-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    background: #fafafa;
    border-radius: 15px;
    gap: 20px;
}

.cookie-toggle-info {
    flex: 1;
}

.cookie-toggle-info h4 {
    font-size: 1.1rem;
    color: #333;
    font-weight: 700;
    margin-bottom: 8px;
}

.cookie-toggle-info p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.toggle-switch input[type="checkbox"] {
    appearance: none;
    width: 60px;
    height: 30px;
    background: #ddd;
    border-radius: 50px;
    position: relative;
    cursor: pointer;
    transition: 0.3s;
    outline: none;
}

.toggle-switch input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #1a2b8f 0%, #4b6cb7 100%);
}

.toggle-switch input[type="checkbox"]::before {
    content: '';
    position: absolute;
    width: 26px;
    height: 26px;
    background: #fff;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.toggle-switch input[type="checkbox"]:checked::before {
    left: 32px;
}

.toggle-switch.disabled input[type="checkbox"] {
    opacity: 0.6;
    cursor: not-allowed;
    background: #27ae60;
}

.toggle-label {
    font-size: 0.85rem;
    color: #27ae60;
    font-weight: 700;
}

.cookie-modal-footer {
    padding: 25px 40px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
}

.btn-cookie-save {
    padding: 15px 40px;
    background: linear-gradient(135deg, #1a2b8f 0%, #4b6cb7 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-family: 'Comfortaa', cursive;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    box-shadow: 0 5px 20px rgba(26, 43, 143, 0.3);
}

.btn-cookie-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 43, 143, 0.4);
}

/* Cookie Notification */
.cookie-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #fff;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Comfortaa', cursive;
    font-weight: 600;
    z-index: 10001;
    animation: slideInRight 0.4s ease;
}

.cookie-notification.success {
    border-left: 4px solid #27ae60;
    color: #27ae60;
}

.cookie-notification i {
    font-size: 1.3rem;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .cookie-banner-content {
        flex-direction: column;
        padding: 20px 30px;
    }

    .cookie-banner-text {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

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

    .btn-cookie-settings,
    .btn-cookie-accept {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .cookie-banner-text > i {
        font-size: 2rem;
    }

    .cookie-banner-text h3 {
        font-size: 1.1rem;
    }

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

    .cookie-modal-header {
        padding: 25px;
    }

    .cookie-modal-body {
        padding: 20px 25px;
    }

    .cookie-modal-footer {
        padding: 20px 25px;
    }

    .cookie-toggle-item {
        flex-direction: column;
        gap: 15px;
    }

    .cookie-notification {
        bottom: 20px;
        right: 20px;
        left: 20px;
    }
}

@media (max-width: 480px) {
    .btn-cookie-settings,
    .btn-cookie-accept {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}
