/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 11, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border, rgba(255, 255, 255, 0.1));
    z-index: 9999;
    padding: 1.5rem 0;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.02;
    z-index: 1;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.cookie-banner-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.cookie-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--gradient, linear-gradient(135deg, #ff4757, #ffa502));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: cookiePulse 2s ease-in-out infinite;
}

.cookie-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

@keyframes cookiePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 71, 87, 0);
    }
}

.cookie-content {
    flex: 1;
    min-width: 0;
}

.cookie-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary, #ffffff);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.cookie-text {
    color: var(--text-secondary, rgba(255, 255, 255, 0.8));
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-text a {
    color: var(--primary, #ff4757);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.cookie-text a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.cookie-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.cookie-btn:hover::before {
    left: 100%;
}

.cookie-btn-accept {
    background: var(--gradient, linear-gradient(135deg, #ff4757, #ffa502));
    color: white;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.4);
}

.cookie-btn-deny {
    background: transparent;
    color: var(--text-secondary, rgba(255, 255, 255, 0.8));
    border: 1px solid var(--border, rgba(255, 255, 255, 0.2));
}

.cookie-btn-deny:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary, #ffffff);
    border-color: var(--primary, #ff4757);
    transform: translateY(-1px);
}

.cookie-btn-settings {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary, #ffffff);
    border: 1px solid var(--border, rgba(255, 255, 255, 0.2));
}

.cookie-btn-settings:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary, #ff4757);
    transform: translateY(-1px);
}

/* Cookie Settings Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2rem;
}

.cookie-modal.show {
    opacity: 1;
    visibility: visible;
}

.cookie-modal-content {
    background: var(--bg-card, rgba(15, 15, 16, 0.95));
    border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
    border-radius: 1.5rem;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-modal.show .cookie-modal-content {
    transform: scale(1) translateY(0);
}

.cookie-modal-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.1));
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cookie-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary, #ffffff);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cookie-modal-close {
    background: transparent;
    border: none;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-secondary, rgba(255, 255, 255, 0.6));
}

.cookie-modal-close:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary, #ffffff);
}

.cookie-modal-body {
    padding: 2rem;
}

.cookie-category {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
    border-radius: 1rem;
    transition: all 0.2s ease;
}

.cookie-category:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--primary, #ff4757);
}

.cookie-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.cookie-category-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary, #ffffff);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-toggle {
    position: relative;
    width: 50px;
    height: 26px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border, rgba(255, 255, 255, 0.2));
}

.cookie-toggle.active {
    background: var(--gradient, linear-gradient(135deg, #ff4757, #ffa502));
    border-color: transparent;
}

.cookie-toggle.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-toggle.active .cookie-toggle-slider {
    transform: translateX(24px);
}

.cookie-category-description {
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.cookie-details {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0.5rem;
    padding: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary, rgba(255, 255, 255, 0.6));
    line-height: 1.4;
}

.cookie-modal-footer {
    padding: 1.5rem 2rem 2rem;
    border-top: 1px solid var(--border, rgba(255, 255, 255, 0.1));
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.cookie-privacy-link {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-privacy-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--primary, #ff4757);
    border-color: var(--primary, #ff4757);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cookie-banner-container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .cookie-content {
        order: 1;
    }
    
    .cookie-icon {
        order: 0;
        width: 40px;
        height: 40px;
    }
    
    .cookie-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .cookie-actions {
        order: 2;
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }
    
    .cookie-btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .cookie-title {
        font-size: 1rem;
    }
    
    .cookie-text {
        font-size: 0.875rem;
    }
    
    .cookie-modal {
        padding: 1rem;
    }
    
    .cookie-modal-content {
        max-height: 90vh;
    }
    
    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding: 1.5rem;
    }
    
    .cookie-modal-header {
        padding-bottom: 1rem;
    }
    
    .cookie-modal-title {
        font-size: 1.25rem;
    }
    
    .cookie-category {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .cookie-modal-footer {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .cookie-privacy-link {
        position: static;
        margin-top: 1rem;
        align-self: center;
    }
}

/* Animation for cookies falling */
@keyframes cookieFall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.cookie-animation {
    position: fixed;
    top: -50px;
    pointer-events: none;
    z-index: 9998;
    color: var(--primary, #ff4757);
    animation: cookieFall 3s linear infinite;
}

/* Utility classes */
.cookie-badge {
    background: var(--primary, #ff4757);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    margin-left: 0.5rem;
}

.cookie-required {
    background: #27ae60;
}

.cookie-marketing {
    background: #f39c12;
}

.cookie-analytics {
    background: #3498db;
}