/* Cookie Banner Component Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cookie-banner-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cookie-banner-icon {
    width: 24px;
    height: 24px;
    color: #0271FC;
    flex-shrink: 0;
}

.cookie-banner-icon svg {
    width: 100%;
    height: 100%;
}

.cookie-banner h3 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.cookie-banner-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cookie-banner-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.cookie-preferences {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cookie-category {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px;
    transition: background-color 0.2s ease;
}

.cookie-category:hover {
    background: rgba(255, 255, 255, 0.08);
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cookie-category-title {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

.cookie-category-required {
    background: rgba(2, 113, 252, 0.2);
    color: #0271FC;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.cookie-category-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

/* Cookie Toggle Styles */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    cursor: pointer;
}

.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.2);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 24px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: #0271FC;
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
    transform: translateX(20px);
}

.cookie-toggle:hover .cookie-toggle-slider {
    box-shadow: 0 0 0 8px rgba(2, 113, 252, 0.1);
}

/* Cookie Banner Actions */
.cookie-banner-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    white-space: nowrap;
}

.cookie-btn.btn-primary {
    background: linear-gradient(135deg, #0271FC 0%, #0056CC 100%);
    color: white;
}

.cookie-btn.btn-primary:hover {
    background: linear-gradient(135deg, #0056CC 0%, #004399 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(2, 113, 252, 0.3);
}

.cookie-btn.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.cookie-btn.btn-ghost {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-btn.btn-ghost:hover {
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

/* Cookie Banner Footer */
.cookie-banner-footer {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-banner-footer p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    margin: 0;
    line-height: 1.5;
}

.cookie-banner-footer a {
    color: #0271FC;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.cookie-banner-footer a:hover {
    color: #4A9BFF;
    text-decoration: underline;
}

/* Cookie Settings Button */
.cookie-settings-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #0271FC;
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-settings-btn:hover {
    background: rgba(0, 0, 0, 0.95);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.cookie-settings-btn svg {
    width: 20px;
    height: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner-content {
        padding: 20px 16px;
    }
    
    .cookie-preferences {
        gap: 12px;
    }
    
    .cookie-category {
        padding: 12px;
    }
    
    .cookie-banner-actions {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-settings-btn {
        bottom: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
    }
    
    .cookie-settings-btn svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .cookie-banner-content {
        padding: 16px 12px;
        gap: 16px;
    }
    
    .cookie-banner h3 {
        font-size: 16px;
    }
    
    .cookie-banner-text {
        font-size: 13px;
    }
    
    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Animation for banner entrance */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-banner.animate-in {
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus styles for accessibility */
.cookie-btn:focus,
.cookie-toggle:focus-within,
.cookie-settings-btn:focus {
    outline: 2px solid #0271FC;
    outline-offset: 2px;
}

.cookie-toggle input:focus + .cookie-toggle-slider {
    box-shadow: 0 0 0 4px rgba(2, 113, 252, 0.2);
} 