/* Cookie Consent Banner Styles */
.cookie-consent-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    animation: slideUp 0.5s ease-out;
}

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

.cookie-banner {
    background: rgba(13, 17, 23, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(124, 58, 237, 0.3);
    padding: 24px;
    max-width: 100%;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cookie-banner-top {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.cookie-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-text {
    flex: 1;
    color: #f0f6fc;
}

.cookie-text h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #f0f6fc;
}

.cookie-text p {
    margin: 0 0 8px 0;
    color: #8b949e;
    font-size: 0.95rem;
    line-height: 1.6;
}

.cookie-links {
    display: flex;
    gap: 16px;
    font-size: 0.875rem;
}

.cookie-links a {
    color: #a78bfa;
    text-decoration: none;
    transition: color 0.2s;
}

.cookie-links a:hover {
    color: #7c3aed;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.cookie-button {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-family: inherit;
}

.cookie-button-primary {
    background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

.cookie-button-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.cookie-button-secondary {
    background: rgba(48, 54, 61, 0.8);
    color: #f0f6fc;
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.cookie-button-secondary:hover {
    background: rgba(48, 54, 61, 1);
    border-color: #7c3aed;
}

.cookie-button-outline {
    background: transparent;
    color: #8b949e;
    border: 1px solid #30363d;
}

.cookie-button-outline:hover {
    color: #f0f6fc;
    border-color: #8b949e;
}

/* Cookie Settings Modal */
.cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

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

.cookie-modal {
    background: #0d1117;
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 16px;
    border-bottom: 1px solid rgba(124, 58, 237, 0.2);
}

.cookie-modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #f0f6fc;
    margin: 0;
}

.cookie-modal-close {
    background: transparent;
    border: none;
    color: #8b949e;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
}

.cookie-modal-close:hover {
    background: rgba(139, 148, 158, 0.2);
    color: #f0f6fc;
}

.cookie-modal-body {
    padding: 24px;
}

.cookie-category {
    background: rgba(22, 27, 34, 0.6);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.cookie-category-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.cookie-category-toggle {
    position: relative;
    width: 52px;
    height: 28px;
    background: #30363d;
    border-radius: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.cookie-category-toggle.active {
    background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
}

.cookie-category-toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.cookie-category-toggle.active::after {
    transform: translateX(24px);
}

.cookie-category-title {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    color: #f0f6fc;
}

.cookie-category-description {
    color: #8b949e;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 8px;
}

.cookie-category-details {
    font-size: 0.85rem;
    color: #6e7681;
}

.cookie-modal-footer {
    display: flex;
    gap: 12px;
    padding: 16px 24px 24px;
    border-top: 1px solid rgba(124, 58, 237, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 16px;
    }

    .cookie-banner-top {
        flex-direction: column;
        gap: 12px;
    }

    .cookie-icon {
        display: none;
    }

    .cookie-text h2 {
        font-size: 1.1rem;
    }

    .cookie-text p {
        font-size: 0.9rem;
    }

    .cookie-links {
        flex-direction: column;
        gap: 8px;
    }

    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cookie-button {
        width: 100%;
    }

    .cookie-modal {
        max-height: 95vh;
    }

    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding: 16px;
    }
}

/* Accessibility */
.cookie-button:focus,
.cookie-category-toggle:focus,
.cookie-modal-close:focus {
    outline: 2px solid #7c3aed;
    outline-offset: 2px;
}

.cookie-modal[aria-hidden="true"] {
    display: none;
}
