/* 
 * Buttons Styles
 * Стили для всех кнопок сайта
 */

/* Back Button - кнопка "Назад" для статей */
.article-back-btn {
    position: fixed;
    top: 16px;
    left: 16px;
    background: rgba(48, 86, 211, 0.9);
    border: none;
    border-radius: 32px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: white;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(48, 86, 211, 0.3);
    text-decoration: none;
}

.article-back-icon {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1); /* Делаем иконку белой */
}

.article-back-text {
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.article-back-btn:hover {
    background: rgba(48, 86, 211, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(48, 86, 211, 0.4);
    color: white;
    text-decoration: none;
}

.article-back-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(48, 86, 211, 0.3);
}

/* Адаптивные стили для кнопки "Назад" */
@media (max-width: 767px) {
    .article-back-btn {
        top: 16px;
        left: 16px;
        padding: 10px 14px;
        gap: 6px;
        background: rgba(48, 86, 211, 0.95);
    }
    
    .article-back-icon {
        width: 14px;
        height: 14px;
    }
    
    .article-back-text {
        font-size: 13px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .article-back-btn {
        top: 20px;
        left: 20px;
        padding: 12px 16px;
        gap: 8px;
    }
    
    .article-back-icon {
        width: 16px;
        height: 16px;
    }
    
    .article-back-text {
        font-size: 14px;
    }
}

@media (min-width: 1024px) {
    .article-back-btn {
        top: 24px;
        left: 24px;
        padding: 12px 18px;
        gap: 8px;
    }
    
    .article-back-icon {
        width: 16px;
        height: 16px;
    }
    
    .article-back-text {
        font-size: 14px;
    }
}

/* Общие стили для кнопок */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 32px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 8px;
}

.btn-primary {
    background: #3056D3;
    color: white;
}

.btn-primary:hover {
    background: #2541A8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(48, 86, 211, 0.3);
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #3056D3;
    border: 1px solid #3056D3;
}

.btn-secondary:hover {
    background: #3056D3;
    color: white;
    text-decoration: none;
}

.btn-ghost {
    background: transparent;
    color: #3056D3;
    border: 1px solid rgba(48, 86, 211, 0.3);
}

.btn-ghost:hover {
    background: rgba(48, 86, 211, 0.1);
    border-color: #3056D3;
    color: #3056D3;
    text-decoration: none;
}

/* Размеры кнопок */
.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 18px;
}

/* Состояния кнопок */
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}
