/**
 * Cookie Consent Banner Styles
 */

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-consent-text {
    flex: 1;
    min-width: 300px;
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-consent-text a {
    color: var(--accent-purple);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.cookie-consent-text a:hover {
    color: var(--accent-blue);
}

.cookie-consent-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.cookie-consent-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    white-space: nowrap;
}

.cookie-consent-btn-accept {
    background: var(--accent-purple);
    color: white;
}

.cookie-consent-btn-accept:hover {
    background: var(--accent-blue);
    transform: translateY(-1px);
}

.cookie-consent-btn-decline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.cookie-consent-btn-decline:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.cookie-consent-btn-settings {
    background: transparent;
    color: var(--accent-purple);
    border: 1px solid var(--accent-purple);
}

.cookie-consent-btn-settings:hover {
    background: var(--accent-purple);
    color: white;
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.cookie-settings-content {
    background: var(--bg-primary);
    border-radius: 1rem;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

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

.cookie-settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.cookie-settings-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.cookie-settings-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.cookie-settings-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.cookie-settings-section {
    margin-bottom: 1.5rem;
}

.cookie-settings-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.cookie-settings-section-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.cookie-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

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

.cookie-toggle-name {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.cookie-toggle-description {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.cookie-toggle-switch {
    position: relative;
    width: 3rem;
    height: 1.5rem;
    background: var(--border-color);
    border-radius: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cookie-toggle-switch.active {
    background: var(--accent-purple);
}

.cookie-toggle-switch::after {
    content: '';
    position: absolute;
    top: 0.125rem;
    left: 0.125rem;
    width: 1.25rem;
    height: 1.25rem;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.cookie-toggle-switch.active::after {
    transform: translateX(1.5rem);
}

.cookie-settings-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.cookie-settings-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.cookie-settings-btn-save {
    background: var(--accent-purple);
    color: white;
}

.cookie-settings-btn-save:hover {
    background: var(--accent-blue);
}

.cookie-settings-btn-cancel {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.cookie-settings-btn-cancel:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Mobile styles */
@media (max-width: 768px) {
    .cookie-consent-banner {
        padding: 1rem;
    }
    
    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .cookie-consent-text {
        min-width: auto;
        text-align: center;
    }
    
    .cookie-consent-buttons {
        justify-content: center;
    }
    
    .cookie-settings-content {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .cookie-settings-footer {
        flex-direction: column;
    }
}

/* Dark theme adjustments */
[data-theme="dark"] .cookie-consent-banner {
    background: rgba(30, 30, 30, 0.95);
    border-top-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .cookie-settings-content {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
}

/* Animation for cookie icon */
@keyframes cookie-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.cookie-consent-icon {
    animation: cookie-bounce 2s infinite;
    margin-right: 0.5rem;
}










