/* Cookie Banner Styling */
.tvz-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 999999;
    animation: slideUp 0.4s ease-out;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.tvz-cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    color: white;
}

/* Header */
.tvz-cookie-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tvz-cookie-logo {
    height: 40px;
    width: auto;
    filter: brightness(1.1);
}

.tvz-cookie-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.tvz-cookie-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Body */
.tvz-cookie-body h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: #00D084;
    font-weight: 600;
}

.tvz-cookie-body > p {
    margin-bottom: 24px;
    line-height: 1.6;
    opacity: 0.9;
}

/* Cookie Categories */
.tvz-cookie-categories {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
}

.tvz-cookie-category {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tvz-cookie-category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.tvz-cookie-category h4 {
    flex: 1;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.tvz-cookie-description {
    margin: 8px 0 0 52px;
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.4;
}

.tvz-cookie-details {
    margin: 12px 0 0 52px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    font-size: 0.85rem;
    line-height: 1.4;
}

.tvz-cookie-details p {
    margin: 0 0 8px 0;
}

.tvz-cookie-details p:last-child {
    margin-bottom: 0;
}

/* Toggle Switch */
.tvz-cookie-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.tvz-cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.tvz-cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: 0.3s;
    border-radius: 24px;
}

.tvz-cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .tvz-cookie-slider {
    background-color: #00D084;
}

input:checked + .tvz-cookie-slider:before {
    transform: translateX(20px);
}

input:disabled + .tvz-cookie-slider {
    background-color: #00D084;
    opacity: 0.7;
    cursor: not-allowed;
}

/* Info Button */
.tvz-cookie-info {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    transition: color 0.3s ease;
}

.tvz-cookie-info:hover {
    color: #00D084;
}

/* Footer */
.tvz-cookie-footer {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tvz-cookie-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.tvz-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.tvz-btn-primary {
    background-color: #00D084;
    color: white;
}

.tvz-btn-primary:hover {
    background-color: #00B874;
    transform: translateY(-1px);
}

.tvz-btn-success {
    background-color: #16a34a;
    color: white;
}

.tvz-btn-success:hover {
    background-color: #15803d;
    transform: translateY(-1px);
}

.tvz-btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tvz-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.tvz-cookie-links {
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.8;
}

.tvz-cookie-links a {
    color: #00D084;
    text-decoration: none;
    transition: color 0.3s ease;
}

.tvz-cookie-links a:hover {
    color: #00B874;
    text-decoration: underline;
}

.tvz-cookie-links span {
    margin: 0 8px;
    opacity: 0.5;
}

/* Cookie Settings Button (floating) */
.tvz-cookie-settings-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999998;
    animation: fadeIn 0.5s ease-in;
}

.tvz-cookie-settings-btn button {
    background-color: #00D084;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 208, 132, 0.3);
    transition: all 0.3s ease;
}

.tvz-cookie-settings-btn button:hover {
    background-color: #00B874;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 208, 132, 0.4);
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .tvz-cookie-content {
        padding: 16px;
    }
    
    .tvz-cookie-logo {
        height: 32px;
    }
    
    .tvz-cookie-body h3 {
        font-size: 1.25rem;
    }
    
    .tvz-cookie-actions {
        flex-direction: column;
    }
    
    .tvz-btn {
        width: 100%;
        text-align: center;
    }
    
    .tvz-cookie-description {
        margin-left: 0;
        margin-top: 12px;
    }
    
    .tvz-cookie-details {
        margin-left: 0;
    }
    
    .tvz-cookie-category-header {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .tvz-cookie-settings-btn {
        bottom: 80px; /* Vermijd conflict met cookie banner */
    }
}

@media (max-width: 480px) {
    .tvz-cookie-banner {
        max-height: 95vh;
    }
    
    .tvz-cookie-content {
        padding: 12px;
    }
    
    .tvz-cookie-categories {
        gap: 12px;
    }
    
    .tvz-cookie-category {
        padding: 12px;
    }
}

/* Dark mode compatibility */
@media (prefers-color-scheme: dark) {
    .tvz-cookie-banner {
        background: rgba(20, 20, 20, 0.95);
    }
}
