/* Modern Cookie Banner - DaneTrades Style */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1c1d22 0%, #2a2b35 100%);
    border-top: 1px solid #1C69E5;
    box-shadow: 0 -4px 20px rgba(28, 105, 229, 0.15);
    padding: 20px;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-banner-content {
    flex: 1;
    min-width: 300px;
}

.cookie-banner-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.cookie-banner-text {
    color: #b8bcc8;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.cookie-banner-text a {
    color: #1C69E5;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cookie-banner-text a:hover {
    color: #0993B2;
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #1C69E5 0%, #0993B2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(28, 105, 229, 0.3);
}

.cookie-btn-accept:hover {
    background: linear-gradient(135deg, #0993B2 0%, #1C69E5 100%);
    box-shadow: 0 4px 12px rgba(28, 105, 229, 0.4);
    transform: translateY(-1px);
}

.cookie-btn-decline {
    background: transparent;
    color: #b8bcc8;
    border: 1px solid rgba(184, 188, 200, 0.3);
}

.cookie-btn-decline:hover {
    background: rgba(184, 188, 200, 0.1);
    color: #ffffff;
    border-color: rgba(184, 188, 200, 0.5);
}

.cookie-btn-settings {
    background: transparent;
    color: #1C69E5;
    border: 1px solid rgba(28, 105, 229, 0.3);
    font-size: 13px;
    padding: 8px 16px;
    min-width: auto;
}

.cookie-btn-settings:hover {
    background: rgba(28, 105, 229, 0.1);
    border-color: #1C69E5;
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-settings-modal.show {
    display: flex;
}

.cookie-settings-content {
    background: linear-gradient(135deg, #1c1d22 0%, #2a2b35 100%);
    border: 1px solid #1C69E5;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(28, 105, 229, 0.2);
}

.cookie-settings-header {
    margin-bottom: 20px;
}

.cookie-settings-title {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 10px 0;
    font-family: 'Inter', sans-serif;
}

.cookie-settings-description {
    color: #b8bcc8;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.cookie-category {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cookie-category-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

.cookie-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    background: #444;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cookie-toggle.active {
    background: #1C69E5;
}

.cookie-toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.cookie-toggle.active::after {
    transform: translateX(20px);
}

.cookie-toggle.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-category-description {
    color: #b8bcc8;
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
}

.cookie-settings-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 25px;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 15px;
    }
    
    .cookie-banner-container {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .cookie-banner-actions {
        justify-content: center;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 120px;
    }
    
    .cookie-settings-content {
        padding: 20px;
        margin: 10px;
    }
    
    .cookie-settings-actions {
        flex-direction: column;
    }
    
    .cookie-settings-actions .cookie-btn {
        width: 100%;
    }
}

/* Animation for smooth appearance */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-banner.show {
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}