/**
 * ===================================
 * Аудит-Pro - Cookie Consent 
 * ===================================
 */

/* Cookie Consent Banner - Левый нижний угол */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: white;
    border: 2px solid #6366f1;
    border-radius: 12px;
    padding: 1.5rem;
    z-index: 10000;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
    transform: translateX(-120%);
    transition: transform 0.4s ease;
    font-family: 'Inter', sans-serif;
}

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

.cookie-consent-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #6b7280;
    font-size: 20px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.cookie-consent-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.cookie-consent-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    animation: cookiePulse 2s infinite;
}

@keyframes cookiePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    }
}

.cookie-consent-icon i {
    color: white;
    font-size: 18px;
}

.cookie-consent-text {
    color: #1f2937;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    pointer-events: none;
}

.cookie-consent-text strong {
    color: #6366f1;
    font-weight: 600;
}

.cookie-consent-text a {
    color: #6366f1 !important;
    text-decoration: underline !important;
    cursor: pointer !important;
    position: relative;
    z-index: 10;
    pointer-events: auto !important;
}

.cookie-consent-text a:hover {
    color: #8b5cf6 !important;
    text-decoration: none !important;
}

.cookie-consent-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    min-width: 100px;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.cookie-btn-reject {
    background: white;
    color: #6366f1;
    border: 2px solid #6366f1;
}

.cookie-btn-reject:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

/* Мобильная адаптивность */
@media (max-width: 768px) {
    .cookie-consent {
        bottom: 10px;
        left: 10px;
        right: 10px;
        max-width: none;
        transform: translateY(120%);
    }
    
    .cookie-consent.show {
        transform: translateY(0);
    }
    
    .cookie-consent-text {
        font-size: 0.85rem;
    }
    
    .cookie-consent-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .cookie-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cookie-consent {
        padding: 1rem;
        bottom: 5px;
        left: 5px;
        right: 5px;
    }
    
    .cookie-consent-icon {
        width: 35px;
        height: 35px;
        margin-bottom: 0.75rem;
    }
    
    .cookie-consent-icon i {
        font-size: 16px;
    }
    
    .cookie-consent-text {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .cookie-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}
