/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(10, 14, 26, 0.98) 0%, rgba(10, 14, 26, 0.99) 100%);
    backdrop-filter: blur(20px);
    border-top: 2px solid var(--primary-cyan);
    padding: 25px 20px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

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

.cookie-consent-text {
    flex: 1;
}

.cookie-consent-text h3 {
    color: var(--primary-cyan);
    font-size: 1.2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-consent-text p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.cookie-consent-text a {
    color: var(--primary-cyan);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.cookie-consent-text a:hover {
    color: var(--primary-purple);
}

.cookie-consent-actions {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    color: white;
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
}

.cookie-btn-decline {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
}

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

.cookie-btn-settings {
    background: transparent;
    color: var(--primary-cyan);
    border: 1px solid var(--primary-cyan);
    padding: 12px 20px;
}

.cookie-btn-settings:hover {
    background: rgba(0, 217, 255, 0.1);
}

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

.cookie-settings-modal.show {
    display: flex;
}

.cookie-settings-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 40px;
}

.cookie-settings-content h2 {
    color: var(--primary-cyan);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.cookie-settings-content > p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.cookie-category {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}

.cookie-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

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

.cookie-toggle {
    position: relative;
    width: 50px;
    height: 26px;
}

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

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: 0.4s;
    border-radius: 34px;
    border: 1px solid var(--glass-border);
}

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

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    border-color: var(--primary-cyan);
}

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

.cookie-toggle input:disabled + .cookie-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

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

.cookie-category-required {
    display: inline-block;
    background: rgba(0, 217, 255, 0.2);
    color: var(--primary-cyan);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 10px;
}

.cookie-settings-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.cookie-settings-actions .cookie-btn {
    flex: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-consent-actions {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
    }

    .cookie-settings-content {
        padding: 25px;
    }

    .cookie-settings-content h2 {
        font-size: 1.5rem;
    }

    .cookie-settings-actions {
        flex-direction: column;
    }

    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Cookie Icon Animation */
@keyframes cookieBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.cookie-consent-text h3 svg {
    animation: cookieBounce 2s ease-in-out infinite;
}

/* Scrollbar Styling for Modal */
.cookie-settings-content::-webkit-scrollbar {
    width: 8px;
}

.cookie-settings-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.cookie-settings-content::-webkit-scrollbar-thumb {
    background: var(--primary-cyan);
    border-radius: 10px;
}

.cookie-settings-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-purple);
}
