/* Cookie Banner - Nottix GDPR Compliance */

.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    flex-direction: column;
    align-items: center;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-banner-content {
    max-width: 1200px;
    width: 100%;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 280px;
}

.cookie-banner-text h3 {
    color: #ffffff;
    font-size: 1.1rem;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.cookie-banner-text p {
    color: #d1d5db;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

.cookie-banner-text a {
    color: #60a5fa;
    text-decoration: underline;
}

.cookie-banner-text a:hover {
    color: #93c5fd;
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.cookie-btn {
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
}

.cookie-btn-accept {
    background: #0066CC;
    color: white;
}

.cookie-btn-accept:hover {
    background: #0052a3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.cookie-btn-reject {
    background: transparent;
    color: #d1d5db;
    border: 1px solid #6b7280;
}

.cookie-btn-reject:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #9ca3af;
}

.cookie-btn-customize {
    background: transparent;
    color: #9ca3af;
    border: none;
    text-decoration: underline;
    padding: 10px 12px;
}

.cookie-btn-customize:hover {
    color: #d1d5db;
}

/* Preferences Panel */
.cookie-preferences {
    display: none;
    width: 100%;
    max-width: 1200px;
    padding: 0 32px 24px 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cookie-preference-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cookie-preference-item:last-of-type {
    border-bottom: none;
}

.cookie-preference-info h4 {
    color: #ffffff;
    font-size: 0.95rem;
    margin: 0 0 4px 0;
    font-weight: 500;
}

.cookie-preference-info p {
    color: #9ca3af;
    font-size: 0.85rem;
    margin: 0;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.cookie-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background-color: #4b5563;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: inline-block;
}

.cookie-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cookie-toggle input:checked + .cookie-slider {
    background-color: #0066CC;
}

.cookie-toggle input:checked + .cookie-slider::before {
    transform: translateX(20px);
}

.cookie-toggle.disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.cookie-toggle.disabled .cookie-slider {
    background-color: #0066CC;
}

.cookie-always-active {
    color: #6b7280;
    font-size: 0.8rem;
    font-style: italic;
}

.cookie-preferences-actions {
    padding-top: 16px;
    display: flex;
    justify-content: flex-end;
}

/* Floating manage button */
.cookie-manage-floating {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 99998;
}

.cookie-manage-trigger {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #0066CC;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-manage-trigger:hover {
    background: #0052a3;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        padding: 20px;
        gap: 16px;
    }

    .cookie-banner-actions {
        width: 100%;
        justify-content: stretch;
    }

    .cookie-btn {
        flex: 1;
        text-align: center;
    }

    .cookie-btn-customize {
        flex: none;
        width: 100%;
    }

    .cookie-preferences {
        padding: 0 20px 20px 20px;
    }

    .cookie-preference-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .cookie-banner-actions {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
    }
}
