/**
 * Keptone Cookie Consent Banner Styles
 * RGPD Compliant Cookie Banner
 */

/* Cookie Banner Container */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: linear-gradient(135deg, rgba(0, 15, 35, 0.98) 0%, rgba(0, 30, 60, 0.98) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.4);
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    backdrop-filter: blur(10px);
}

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

/* Banner Content */
.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

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

.cookie-banner-text h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #fff;
}

.cookie-banner-text p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 10px 0;
    color: rgba(255, 255, 255, 0.85);
}

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

.cookie-banner-links a {
    font-size: 0.85rem;
    color: var(--blue-accent, #0084ff) !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cookie-banner-links a:hover {
    color: #66b3ff !important;
    text-decoration: underline;
}

/* Banner Actions */
.cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

/* Cookie Buttons */
.cookie-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    white-space: nowrap;
}

.cookie-btn-primary {
    background-color: var(--primary-color, #ff0000);
    color: #fff !important;
}

.cookie-btn-primary:hover {
    background-color: #cc0000;
    transform: translateY(-1px);
}

.cookie-btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.cookie-btn-outline {
    background-color: transparent;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.cookie-btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Customize Panel */
.cookie-customize-panel {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-category {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-category:last-of-type {
    border-bottom: none;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

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

.cookie-category-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #fff;
}

.cookie-category-info p {
    font-size: 0.85rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

.cookie-category-toggle {
    flex-shrink: 0;
}

.cookie-always-active {
    font-size: 0.85rem;
    color: var(--blue-accent, #0084ff);
    font-weight: 500;
}

/* Toggle Switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

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

.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: 26px;
}

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

.cookie-switch input:checked + .cookie-slider {
    background-color: var(--primary-color, #ff0000);
}

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

.cookie-customize-actions {
    padding-top: 15px;
    text-align: right;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .cookie-banner-content {
        padding: 15px 20px;
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-banner-text {
        min-width: 100%;
    }
    
    .cookie-banner-actions {
        justify-content: stretch;
    }
    
    .cookie-btn {
        flex: 1;
        text-align: center;
    }
    
    .cookie-customize-panel {
        padding: 0 20px 15px;
    }
    
    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media screen and (max-width: 480px) {
    .cookie-banner-actions {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
    }
}
