/* Cookie Consent Banner Styles */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary, #1a1a1a);
    border-top: 1px solid var(--border-color, #333);
    padding: 1.5rem;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

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

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

.cookie-consent-text h3 {
    margin: 0 0 0.5rem;
    color: var(--text-primary, #fff);
    font-size: 1.25rem;
}

.cookie-consent-text p {
    margin: 0 0 0.5rem;
    color: var(--text-secondary, #ccc);
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-policy-link {
    color: var(--accent-color, #00ff88);
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.cookie-policy-link:hover {
    border-bottom-color: var(--accent-color, #00ff88);
}

.ccpa-notice {
    margin: 0.75rem 0 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 153, 0, 0.1);
    border-left: 3px solid #ff9900;
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--text-primary, #fff);
}

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

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.cookie-btn-settings {
    background: transparent;
    color: var(--text-primary, #fff);
    border: 1px solid var(--border-color, #666);
}

.cookie-btn-settings:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-primary, #fff);
}

.cookie-btn-reject {
    background: var(--bg-secondary, #2a2a2a);
    color: var(--text-primary, #fff);
}

.cookie-btn-reject:hover {
    background: var(--bg-tertiary, #3a3a3a);
}

.cookie-btn-accept {
    background: var(--accent-color, #00ff88);
    color: var(--bg-primary, #1a1a1a);
    font-weight: 600;
}

.cookie-btn-accept:hover {
    background: var(--accent-hover, #00cc6a);
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 255, 136, 0.3);
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease-out;
}

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

.cookie-settings-content {
    background: var(--bg-primary, #1a1a1a);
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: scaleIn 0.2s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

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

.cookie-settings-header h2 {
    margin: 0;
    color: var(--text-primary, #fff);
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary, #999);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary, #fff);
}

.cookie-settings-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.cookie-category {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color, #333);
}

.cookie-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.category-header h3 {
    margin: 0;
    color: var(--text-primary, #fff);
    font-size: 1.1rem;
}

.cookie-category p {
    margin: 0;
    color: var(--text-secondary, #999);
    font-size: 0.9rem;
    line-height: 1.5;
}

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

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-secondary, #666);
    transition: 0.3s;
    border-radius: 24px;
}

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

input:checked + .slider {
    background-color: var(--accent-color, #00ff88);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.switch.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.switch.disabled .slider {
    cursor: not-allowed;
}

.cookie-settings-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color, #333);
    display: flex;
    justify-content: flex-end;
}

.cookie-btn-secondary {
    background: var(--accent-color, #00ff88);
    color: var(--bg-primary, #1a1a1a);
    font-weight: 600;
}

.cookie-btn-secondary:hover {
    background: var(--accent-hover, #00cc6a);
}

/* Toast Notification */
.cookie-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bg-secondary, #2a2a2a);
    color: var(--text-primary, #fff);
    padding: 1rem 1.5rem;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transform: translateX(400px);
    transition: transform 0.3s ease-out;
    z-index: 10001;
}

.cookie-toast.show {
    transform: translateX(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-consent-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
    }
    
    .cookie-settings-content {
        width: 95%;
        margin: 1rem;
    }
    
    .cookie-toast {
        right: 1rem;
        left: 1rem;
        transform: translateY(100px);
    }
    
    .cookie-toast.show {
        transform: translateY(0);
    }
}

/* Accessibility */
.cookie-btn:focus,
.close-btn:focus,
.switch input:focus + .slider {
    outline: 2px solid var(--accent-color, #00ff88);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .cookie-consent-banner,
    .cookie-settings-modal,
    .cookie-toast {
        display: none !important;
    }
}